From: Jose Maria Casanova Crespo <jmcasan...@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 66d6a6f5ee8..19323d76510 100644
--- a/src/intel/compiler/brw_compiler.h
+++ b/src/intel/compiler/brw_compiler.h
@@ -874,6 +874,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 410922c62b2..b93c27dc1c8 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.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.11.0

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to