ir3: Use source in ir3_output_conv_src_type()

This was incorrectly converted when splitting the regs array. Noticed by
inspection.

Fixes: d3e08327cf ("ir3/core: Switch to srcs/dsts arrays")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13220>
(cherry picked from commit 0209311c6e)
This commit is contained in:
Connor Abbott 2021-10-06 12:55:23 +02:00 committed by Dylan Baker
parent b8c9d9268e
commit b9c1d7c96d
2 changed files with 2 additions and 2 deletions

View file

@ -130,7 +130,7 @@
"description": "ir3: Use source in ir3_output_conv_src_type()",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "d3e08327cf85ef0b07c8e4920c168329cf66ec41"
},

View file

@ -1409,7 +1409,7 @@ ir3_output_conv_src_type(struct ir3_instruction *instr, type_t base_type)
return TYPE_F32;
default:
return (instr->dsts[1]->flags & IR3_REG_HALF) ? half_type(base_type)
return (instr->srcs[0]->flags & IR3_REG_HALF) ? half_type(base_type)
: full_type(base_type);
}
}