tgsi/scan: add uses_drawid
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de> Acked-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
77449d7c41
commit
9b33465481
|
@ -683,6 +683,9 @@ scan_declaration(struct tgsi_shader_info *info,
|
|||
case TGSI_SEMANTIC_BASEVERTEX:
|
||||
info->uses_basevertex = TRUE;
|
||||
break;
|
||||
case TGSI_SEMANTIC_DRAWID:
|
||||
info->uses_drawid = TRUE;
|
||||
break;
|
||||
case TGSI_SEMANTIC_PRIMID:
|
||||
info->uses_primid = TRUE;
|
||||
break;
|
||||
|
|
|
@ -118,6 +118,7 @@ struct tgsi_shader_info
|
|||
boolean uses_vertexid;
|
||||
boolean uses_vertexid_nobase;
|
||||
boolean uses_basevertex;
|
||||
boolean uses_drawid;
|
||||
boolean uses_primid;
|
||||
boolean uses_frontface;
|
||||
boolean uses_invocationid;
|
||||
|
|
|
@ -171,6 +171,9 @@ static void scan_instruction(const struct nir_shader *nir,
|
|||
case nir_intrinsic_load_base_vertex:
|
||||
info->uses_basevertex = 1;
|
||||
break;
|
||||
case nir_intrinsic_load_draw_id:
|
||||
info->uses_drawid = 1;
|
||||
break;
|
||||
case nir_intrinsic_load_primitive_id:
|
||||
info->uses_primid = 1;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue