[TEST] Another miscellaneous change 2

This commit is contained in:
CamilleLaVey
2026-07-28 01:09:16 -04:00
parent 3cd17ec392
commit bf13e7ce1d
8 changed files with 116 additions and 17 deletions
+16
View File
@@ -171,6 +171,22 @@ public:
};
std::array<ConstBufferConfig, NumConstBuffers> const_buffer_config;
static constexpr u32 NvnShaderSlotBias = 2;
u32 ResolveConstBufferIndex(u32 shader_index) const {
const u32 mask = const_buffer_enable_mask.Value();
if (((mask >> shader_index) & 1) != 0) {
return shader_index;
}
if (shader_index >= NvnShaderSlotBias) {
const u32 biased = shader_index - NvnShaderSlotBias;
if (((mask >> biased) & 1) != 0) {
return biased;
}
}
return shader_index;
}
union {
BitField<0, 20, u32> local_pos_alloc;
BitField<27, 5, u32> barrier_alloc;