mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 08:00:12 +01:00
glsl: Fix assertion failure on handling switch on uint expressions.
Fixes piglit glsl-1.30/execution/switch/fs-uint. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
bbbc7c7d56
commit
9c4e9ce051
1 changed files with 1 additions and 1 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue