mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
broadcom/vc5: Fix a segfault on mix of booleans.
We don't have a src1 to look up if the compare instruction is "i2b".
This commit is contained in:
parent
eb765394c2
commit
353b42ccc7
1 changed files with 3 additions and 1 deletions
|
|
@ -528,7 +528,9 @@ ntq_emit_comparison(struct v3d_compile *c, struct qreg *dest,
|
|||
nir_alu_instr *sel_instr)
|
||||
{
|
||||
struct qreg src0 = ntq_get_alu_src(c, compare_instr, 0);
|
||||
struct qreg src1 = ntq_get_alu_src(c, compare_instr, 1);
|
||||
struct qreg src1;
|
||||
if (nir_op_infos[compare_instr->op].num_inputs > 1)
|
||||
src1 = ntq_get_alu_src(c, compare_instr, 1);
|
||||
bool cond_invert = false;
|
||||
|
||||
switch (compare_instr->op) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue