diff options
author | Zack Rusin <[email protected]> | 2010-07-13 21:54:14 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2010-07-13 21:54:14 -0400 |
commit | 582132aaef3fa6fa912f27c75c3b3e5bd89d3714 (patch) | |
tree | 2c6cb9a4c6b0558b1741430c5a6aa727cf73b261 /src/mesa/program/prog_instruction.h | |
parent | 9fa64ea67544d252c6713e21d3b9c17a2bbb0603 (diff) | |
parent | 1491c6aa2de17760ab157a3fe71e45006e4eecf6 (diff) |
Merge branch 'mesa-2d-registers'
Diffstat (limited to 'src/mesa/program/prog_instruction.h')
-rw-r--r-- | src/mesa/program/prog_instruction.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mesa/program/prog_instruction.h b/src/mesa/program/prog_instruction.h index bc980c6a7f6..dacbc33704b 100644 --- a/src/mesa/program/prog_instruction.h +++ b/src/mesa/program/prog_instruction.h @@ -271,6 +271,22 @@ struct prog_src_register * instruction which allows per-component negation. */ GLuint Negate:4; + + /** + * Is the register two-dimensional. + * Two dimensional registers are of the + * REGISTER[index][index2] format. + * They are used by the geometry shaders where + * the first index is the index within an array + * and the second index is the semantic of the + * array, e.g. gl_PositionIn[index] would become + * INPUT[index][gl_PositionIn] + */ + GLuint HasIndex2:1; + GLuint RelAddr2:1; + GLint Index2:(INST_INDEX_BITS+1); /**< Extra bit here for sign bit. + * May be negative for relative + * addressing. */ }; |