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/program/prog_print.c | |
parent | 79ab5b9798c911e7612e26616df82e98372549bf (diff) | |
download | external_mesa3d-56643096f1eb01eefa1a532ac096b32d23b6b8ba.zip external_mesa3d-56643096f1eb01eefa1a532ac096b32d23b6b8ba.tar.gz external_mesa3d-56643096f1eb01eefa1a532ac096b32d23b6b8ba.tar.bz2 |
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/program/prog_print.c')
-rw-r--r-- | src/mesa/program/prog_print.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/program/prog_print.c b/src/mesa/program/prog_print.c index 6ab199a..6056c45 100644 --- a/src/mesa/program/prog_print.c +++ b/src/mesa/program/prog_print.c @@ -924,6 +924,8 @@ _mesa_fprint_program_parameters(FILE *f, fprintf(f, "NumParameters=%d\n", prog->NumParameters); fprintf(f, "NumAttributes=%d\n", prog->NumAttributes); fprintf(f, "NumAddressRegs=%d\n", prog->NumAddressRegs); + fprintf(f, "IndirectRegisterFiles: 0x%x (0b%s)\n", + prog->IndirectRegisterFiles, binary(prog->IndirectRegisterFiles)); fprintf(f, "SamplersUsed: 0x%x (0b%s)\n", prog->SamplersUsed, binary(prog->SamplersUsed)); fprintf(f, "Samplers=[ "); |