diff options
author | Brian Paul <brianp@vmware.com> | 2010-07-30 14:24:23 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-07-30 14:29:19 -0600 |
commit | 56643096f1eb01eefa1a532ac096b32d23b6b8ba (patch) | |
tree | 0ba325dd7148936ca0e6bce0b2f3fae3bd6e68be /src/mesa/main/mtypes.h | |
parent | 79ab5b9798c911e7612e26616df82e98372549bf (diff) |
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.
Diffstat (limited to 'src/mesa/main/mtypes.h')
-rw-r--r-- | src/mesa/main/mtypes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index cbb9eb84f3..7bb554d519 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1808,6 +1808,11 @@ struct gl_program /** Which texture target is being sampled (TEXTURE_1D/2D/3D/etc_INDEX) */ gl_texture_index SamplerTargets[MAX_SAMPLERS]; + /** Bitmask of which register files are read/written with indirect + * addressing. Mask of (1 << PROGRAM_x) bits. + */ + GLbitfield IndirectRegisterFiles; + /** Logical counts */ /*@{*/ GLuint NumInstructions; |