[Mesa-dev] [RFC PATCH 24/40] i965/vec4: Associate the uniform location with either geometry or vertex stage
Abdiel Janulgue
abdiel.janulgue at linux.intel.com
Sun Jan 4 06:04:38 PST 2015
Signed-off-by: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
---
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
index 09d79c8..0f22829 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
@@ -707,6 +707,8 @@ vec4_visitor::setup_uniform_values(ir_variable *ir)
unsigned vector_count = (MAX2(storage->array_elements, 1) *
storage->type->matrix_columns);
+ brw->uniformstagemap[u] |= (stage == MESA_SHADER_GEOMETRY ?
+ _NEW_GEOMETRY_CONSTANTS : _NEW_VERTEX_CONSTANTS);
for (unsigned s = 0; s < vector_count; s++) {
assert(uniforms < uniform_array_size);
uniform_vector_size[uniforms] = storage->type->vector_elements;
--
1.9.1
More information about the mesa-dev
mailing list