mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
gallium/tgsi: add prim id to tgsi_get_gl_varying_semantic()
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
fc59546e9a
commit
3d21eb3b7d
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue