[Mesa-dev] [PATCH] glsl: initialise record count to 1

Timothy Arceri t_arceri at yahoo.com.au
Wed Oct 14 20:16:02 PDT 2015


This was only being done in one of the two process methods.

Fixes issue with samplers using the array size of a previous record.

Cc: Marek Olšák <maraeo at gmail.com>
Cc: Jason Ekstrand <jason at jlekstrand.net>
---
 src/glsl/link_uniforms.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp
index 0ccd9c8..e60b050 100644
--- a/src/glsl/link_uniforms.cpp
+++ b/src/glsl/link_uniforms.cpp
@@ -160,6 +160,7 @@ program_resource_visitor::process(ir_variable *var)
                 false, record_array_count);
       ralloc_free(name);
    } else {
+      this->set_record_array_count(record_array_count);
       this->visit_field(t, var->name, row_major, NULL, packing, false);
    }
 }
-- 
2.4.3



More information about the mesa-dev mailing list