summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_vec4.cpp
diff options
context:
space:
mode:
authorAntia Puentes <[email protected]>2018-04-28 14:09:19 +0200
committerAntia Puentes <[email protected]>2018-05-02 11:20:48 +0200
commit6ba9088d9c692bfdafdf354ee96f662166582a79 (patch)
treed4fd6870446e81c8cd3057f7829e4b67e4933448 /src/intel/compiler/brw_vec4.cpp
parent9e6b886cf25f88eea584d38c6763dbded99bd064 (diff)
intel/compiler: Add uses_is_indexed_draw flag
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_vec4.cpp')
-rw-r--r--src/intel/compiler/brw_vec4.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_vec4.cpp b/src/intel/compiler/brw_vec4.cpp
index 1e384f5bf4d..e583c549204 100644
--- a/src/intel/compiler/brw_vec4.cpp
+++ b/src/intel/compiler/brw_vec4.cpp
@@ -2838,6 +2838,10 @@ brw_compile_vs(const struct brw_compiler *compiler, void *log_data,
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;