mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 06:30:10 +01:00
glsl: Add missing ir_quadop_vector constant evaluation for Boolean types
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
cf58e3f522
commit
2ec3a3e151
1 changed files with 3 additions and 0 deletions
|
|
@ -1726,6 +1726,9 @@ ir_expression::constant_expression_value(struct hash_table *variable_context)
|
|||
case GLSL_TYPE_DOUBLE:
|
||||
data.d[c] = op[c]->value.d[0];
|
||||
break;
|
||||
case GLSL_TYPE_BOOL:
|
||||
data.b[c] = op[c]->value.b[0];
|
||||
break;
|
||||
default:
|
||||
assert(0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue