diff options
author | Timothy Arceri <[email protected]> | 2017-11-13 12:12:21 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-11-15 08:26:34 +1100 |
commit | 3d21eb3b7d81f1f97673298b7fb7913a5d5e8220 (patch) | |
tree | cafa7e51692a97a2052e950026b0c568c286c675 /src/gallium/auxiliary/tgsi | |
parent | fc59546e9aaf4e13e90c06bb5ad06d77fa67d127 (diff) |
gallium/tgsi: add prim id to tgsi_get_gl_varying_semantic()
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_from_mesa.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_from_mesa.c b/src/gallium/auxiliary/tgsi/tgsi_from_mesa.c index b7a21f29bad..31be7d946b7 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_from_mesa.c +++ b/src/gallium/auxiliary/tgsi/tgsi_from_mesa.c @@ -62,6 +62,10 @@ tgsi_get_gl_varying_semantic(gl_varying_slot attr, unsigned *semantic_index) { switch (attr) { + case VARYING_SLOT_PRIMITIVE_ID: + *semantic_name = TGSI_SEMANTIC_PRIMID; + *semantic_index = 0; + break; case VARYING_SLOT_POS: *semantic_name = TGSI_SEMANTIC_POSITION; *semantic_index = 0; |