mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 07:30:09 +01:00
ir_constant_expression: Assert that both operands share a base type.
This commit is contained in:
parent
6bc432e14e
commit
6fc983b9bb
1 changed files with 3 additions and 0 deletions
|
|
@ -141,6 +141,9 @@ ir_constant_visitor::visit(ir_expression *ir)
|
|||
return;
|
||||
}
|
||||
|
||||
if (op[1] != NULL)
|
||||
assert(op[0]->type->base_type == op[1]->type->base_type);
|
||||
|
||||
switch (ir->operation) {
|
||||
case ir_unop_logic_not:
|
||||
assert(op[0]->type->base_type == GLSL_TYPE_BOOL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue