[Mesa-dev] [PATCH 32/45] i965/compiler: includes 16-bit vertex input
Alejandro PiƱeiro
apinheiro at igalia.com
Thu Jul 13 14:35:36 UTC 2017
From: Jose Maria Casanova Crespo <jmcasanova at igalia.com>
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.
---
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 3f38340..7da726f 100644
--- a/src/intel/compiler/brw_compiler.h
+++ b/src/intel/compiler/brw_compiler.h
@@ -843,6 +843,7 @@ struct brw_vs_prog_data {
GLbitfield64 inputs_read;
GLbitfield64 double_inputs_read;
+ GLbitfield64 half_inputs_read;
unsigned nr_attributes;
unsigned nr_attribute_slots;
diff --git a/src/intel/compiler/brw_vec4.cpp b/src/intel/compiler/brw_vec4.cpp
index 3de7d93..f9a1e0f 100644
--- a/src/intel/compiler/brw_vec4.cpp
+++ b/src/intel/compiler/brw_vec4.cpp
@@ -2767,6 +2767,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.double_inputs_read;
+ prog_data->half_inputs_read = shader->info.half_inputs_read;
brw_nir_lower_vs_inputs(shader, use_legacy_snorm_formula,
key->gl_attrib_wa_flags);
--
2.9.3
More information about the mesa-dev
mailing list