[Mesa-dev] [PATCH 6/9] glsl: Fix assertion failure on handling switch on uint expressions.
Eric Anholt
eric at anholt.net
Mon May 14 17:36:57 PDT 2012
Fixes piglit glsl-1.30/execution/switch/fs-uint.
---
src/glsl/ast_to_hir.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index 4521e86..45ffa16 100644
--- a/src/glsl/ast_to_hir.cpp
+++ b/src/glsl/ast_to_hir.cpp
@@ -3599,7 +3599,7 @@ ast_switch_statement::test_to_hir(exec_list *instructions,
test_expression->hir(instructions,
state);
- state->switch_state.test_var = new(ctx) ir_variable(glsl_type::int_type,
+ state->switch_state.test_var = new(ctx) ir_variable(test_val->type,
"switch_test_tmp",
ir_var_temporary);
ir_dereference_variable *deref_test_var =
--
1.7.10
More information about the mesa-dev
mailing list