mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
ir3/array_to_ssa: initialize ir3_instruction::data
This should have already been NULL because this looks like the first time this field is used, but that's a bit fragile. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40480>
This commit is contained in:
parent
4f0fb5784f
commit
54af9431d1
1 changed files with 3 additions and 1 deletions
|
|
@ -212,8 +212,10 @@ ir3_array_to_ssa(struct ir3 *ir)
|
|||
|
||||
foreach_block (block, &ir->block_list) {
|
||||
foreach_instr (instr, &block->instr_list) {
|
||||
if (instr->opc == OPC_META_PHI)
|
||||
if (instr->opc == OPC_META_PHI) {
|
||||
instr->data = NULL;
|
||||
continue;
|
||||
}
|
||||
|
||||
foreach_dst (reg, instr) {
|
||||
if ((reg->flags & IR3_REG_ARRAY) && !reg->tied) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue