aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_vec4.cpp
diff options
context:
space:
mode:
authorNeil Roberts <[email protected]>2018-01-25 19:15:39 +0100
committerIan Romanick <[email protected]>2018-04-19 15:57:45 -0700
commit0c8395e15d295d328f68574e71afaf04596e2a82 (patch)
tree07f97fdcb5ea91c678ef07642c4398759ed47e09 /src/intel/compiler/brw_vec4.cpp
parent5ff848df7be34bdc4c2e0ad509ad43b4ae1fc3b9 (diff)
intel/compiler: Add a uses_firstvertex flag
Reviewed-by: Kenneth Graunke <[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 218925ccb12..9459d61af6c 100644
--- a/src/intel/compiler/brw_vec4.cpp
+++ b/src/intel/compiler/brw_vec4.cpp
@@ -2837,6 +2837,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_FIRST_VERTEX))
+ prog_data->uses_firstvertex = true;
+
+ if (shader->info.system_values_read &
BITFIELD64_BIT(SYSTEM_VALUE_BASE_INSTANCE))
prog_data->uses_baseinstance = true;