diff options
author | Kenneth Graunke <[email protected]> | 2015-09-23 15:40:33 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2015-09-29 14:19:32 -0700 |
commit | 476e6d732f76f1ac1c4560ccade7cbc93f985d09 (patch) | |
tree | a76ae08caf7e20d4bbce5896eb7fa9dbfe768afe /src/glsl/shader_enums.h | |
parent | cb758b892a7e62ff1f6187f2ca9ac543ff70a096 (diff) |
nir: Use a system value for gl_PrimitiveIDIn.
At least on Intel hardware, gl_PrimitiveIDIn comes in as a special part
of the payload rather than a normal input. This is typically what we
use system values for. Dave and Ilia also agree that a system value
would be nicer.
At some point, we should change it at the GLSL IR level as well. But
that requires changing most of the drivers. For now, let's at least
make NIR do the right thing, which is easy.
v2: Add a comment about not creating a temporary (suggested by Iago).
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/glsl/shader_enums.h')
-rw-r--r-- | src/glsl/shader_enums.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/shader_enums.h b/src/glsl/shader_enums.h index 99acc640496..2a5d2c5bfa7 100644 --- a/src/glsl/shader_enums.h +++ b/src/glsl/shader_enums.h @@ -399,7 +399,7 @@ typedef enum /*@{*/ SYSTEM_VALUE_TESS_COORD, SYSTEM_VALUE_VERTICES_IN, /**< Tessellation vertices in input patch */ - SYSTEM_VALUE_PRIMITIVE_ID, /**< (currently not used by GS) */ + SYSTEM_VALUE_PRIMITIVE_ID, SYSTEM_VALUE_TESS_LEVEL_OUTER, /**< TES input */ SYSTEM_VALUE_TESS_LEVEL_INNER, /**< TES input */ /*@}*/ |