[Mesa-dev] [PATCH v5 02/14] i965/compiler: includes 16-bit vertex input
Jose Maria Casanova Crespo
jmcasanova at igalia.com
Fri Feb 23 13:15:51 UTC 2018
Includes the info about 16-bit vertex inputs coming from nir on brw VS
prog data, as we already do with 64-bit vertex input.
v2: Renamed half_inputs_read to inputs_read_16bit (Jason Ekstrand)
---
src/intel/compiler/brw_compiler.h | 1 +
src/intel/compiler/brw_vec4.cpp | 1 +
2 files changed, 2 insertions(+)
diff --git a/src/intel/compiler/brw_compiler.h b/src/intel/compiler/brw_compiler.h
index b1086bbcee..fab79028d6 100644
--- a/src/intel/compiler/brw_compiler.h
+++ b/src/intel/compiler/brw_compiler.h
@@ -960,6 +960,7 @@ struct brw_vs_prog_data {
GLbitfield64 inputs_read;
GLbitfield64 double_inputs_read;
+ GLbitfield64 inputs_read_16bit;
unsigned nr_attribute_slots;
diff --git a/src/intel/compiler/brw_vec4.cpp b/src/intel/compiler/brw_vec4.cpp
index e95886349d..58fa35612b 100644
--- a/src/intel/compiler/brw_vec4.cpp
+++ b/src/intel/compiler/brw_vec4.cpp
@@ -2770,6 +2770,7 @@ brw_compile_vs(const struct brw_compiler *compiler, void *log_data,
prog_data->inputs_read = shader->info.inputs_read;
prog_data->double_inputs_read = shader->info.vs.double_inputs;
+ prog_data->inputs_read_16bit = shader->info.vs.inputs_read_16bit;
brw_nir_lower_vs_inputs(shader, key->gl_attrib_wa_flags);
brw_nir_lower_vue_outputs(shader, is_scalar);
--
2.14.3
More information about the mesa-dev
mailing list