mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
intel/compiler: Add uses_is_indexed_draw flag
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
9e6b886cf2
commit
6ba9088d9c
2 changed files with 5 additions and 0 deletions
|
|
@ -978,6 +978,7 @@ struct brw_vs_prog_data {
|
|||
bool uses_vertexid;
|
||||
bool uses_instanceid;
|
||||
bool uses_basevertex;
|
||||
bool uses_is_indexed_draw;
|
||||
bool uses_firstvertex;
|
||||
bool uses_baseinstance;
|
||||
bool uses_drawid;
|
||||
|
|
|
|||
|
|
@ -2837,6 +2837,10 @@ brw_compile_vs(const struct brw_compiler *compiler, void *log_data,
|
|||
BITFIELD64_BIT(SYSTEM_VALUE_BASE_VERTEX))
|
||||
prog_data->uses_basevertex = true;
|
||||
|
||||
if (shader->info.system_values_read &
|
||||
BITFIELD64_BIT(SYSTEM_VALUE_IS_INDEXED_DRAW))
|
||||
prog_data->uses_is_indexed_draw = true;
|
||||
|
||||
if (shader->info.system_values_read &
|
||||
BITFIELD64_BIT(SYSTEM_VALUE_FIRST_VERTEX))
|
||||
prog_data->uses_firstvertex = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue