mesa: added gl_program::IndirectRegisterFiles field
Now drivers, etc. can know which register files are accessed with indirect addressing. Before we just checked gl_program::NumAddressRegs but didn't know if that was the constant buffer, temp regs, or what. The only user of this new field so far will be the gallium state tracker.
This commit is contained in:
@@ -835,6 +835,7 @@ srcReg: USED_IDENTIFIER /* temporaryReg | progParamSingle */
|
||||
$$.Base.File = $1->param_binding_type;
|
||||
|
||||
if ($3.Base.RelAddr) {
|
||||
state->prog->IndirectRegisterFiles |= (1 << $$.Base.File);
|
||||
$1->param_accessed_indirectly = 1;
|
||||
|
||||
$$.Base.RelAddr = 1;
|
||||
|
Reference in New Issue
Block a user