mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 00:30:13 +01:00
glsl2: Fix validation for ir_unop_not.
We use vector ir_unop_not to implement builtin not(), and that seems fine.
This commit is contained in:
parent
47f3f22311
commit
e75dbf66d0
1 changed files with 2 additions and 2 deletions
|
|
@ -171,8 +171,8 @@ ir_validate::visit_leave(ir_expression *ir)
|
|||
assert(ir->operands[0]->type == ir->type);
|
||||
break;
|
||||
case ir_unop_logic_not:
|
||||
assert(ir->type == glsl_type::bool_type);
|
||||
assert(ir->operands[0]->type == glsl_type::bool_type);
|
||||
assert(ir->type->base_type == GLSL_TYPE_BOOL);
|
||||
assert(ir->operands[0]->type->base_type == GLSL_TYPE_BOOL);
|
||||
break;
|
||||
|
||||
case ir_unop_neg:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue