From 0c8395e15d295d328f68574e71afaf04596e2a82 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Thu, 25 Jan 2018 19:15:39 +0100 Subject: intel/compiler: Add a uses_firstvertex flag Reviewed-by: Kenneth Graunke --- src/intel/compiler/brw_vec4.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/intel/compiler/brw_vec4.cpp') 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 @@ -2836,6 +2836,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_FIRST_VERTEX)) + prog_data->uses_firstvertex = true; + if (shader->info.system_values_read & BITFIELD64_BIT(SYSTEM_VALUE_BASE_INSTANCE)) prog_data->uses_baseinstance = true; -- cgit v1.2.3