diff options
author | Zack Rusin <zackr@vmware.com> | 2010-07-09 21:19:28 -0400 |
---|---|---|
committer | Zack Rusin <zackr@vmware.com> | 2010-07-09 21:19:28 -0400 |
commit | b4855288e4de9001b4107d3d4c2f7aff4a4680f9 (patch) | |
tree | d85eee9091e5125d22960ae97507e12a936d614e /src/mesa/program/prog_instruction.h | |
parent | 308f52d57341bc864baf619ac0fbc2b33f5cc5a5 (diff) |
mesa: add basic support for 2D register arrays to mesa
just like in Gallium it's a basic functionality needed by a lot
of modern graphcis extensions
Diffstat (limited to 'src/mesa/program/prog_instruction.h')
-rw-r--r-- | src/mesa/program/prog_instruction.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/program/prog_instruction.h b/src/mesa/program/prog_instruction.h index bc980c6a7f..cb5beb9b00 100644 --- a/src/mesa/program/prog_instruction.h +++ b/src/mesa/program/prog_instruction.h @@ -271,6 +271,12 @@ struct prog_src_register * instruction which allows per-component negation. */ GLuint Negate:4; + + GLuint HasIndex2D:1; + GLuint RelAddr2D:1; + GLint Index2D:(INST_INDEX_BITS+1); /**< Extra bit here for sign bit. + * May be negative for relative + * addressing. */ }; |