Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-By: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4002>
if (!ctx.info[instr->operands[0].tempId()].is_vec())
break;
Instruction* vec = ctx.info[instr->operands[0].tempId()].instr;
- assert(instr->definitions.size() == vec->operands.size());
+ if (instr->definitions.size() != vec->operands.size())
+ break;
for (unsigned i = 0; i < instr->definitions.size(); i++) {
Operand vec_op = vec->operands[i];
if (vec_op.isConstant()) {