diff options
author | Eric Anholt <[email protected]> | 2012-05-14 08:51:03 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-05-17 10:05:24 -0700 |
commit | 9c4e9ce051bb43861adb4f8cd8e88a733c2f3ed1 (patch) | |
tree | ea43393406b7d73a2e02c448ab7fe35dc9c3749e /src/glsl | |
parent | bbbc7c7d566905920967f56648fc26abcb37f4a1 (diff) |
glsl: Fix assertion failure on handling switch on uint expressions.
Fixes piglit glsl-1.30/execution/switch/fs-uint.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/ast_to_hir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index c59e5e6f37f..998f8dd2b46 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 = |