summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKristian H. Kristensen <hoegsberg@google.com>2020-01-10 13:59:43 -0800
committerKristian H. Kristensen <hoegsberg@google.com>2020-02-07 09:51:25 -0800
commitd55dfef78237380d3734f2341818daa299a7f330 (patch)
tree9e7f876936a88f214aafadbf9326dd7e7676a214 /src
parentfbfc8c35315f666d14c8b1f9ec71cb70d5e57d84 (diff)
freedreno/ir3: Set IR3_REG_HALF flag on src as well in immediate MOV
This lets is_same_type_reg() recognize that the dst and src of the immediate MOV are the same and unblocks fp16 constant propagation. Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3737>
Diffstat (limited to 'src')
-rw-r--r--src/freedreno/ir3/ir3.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freedreno/ir3/ir3.h b/src/freedreno/ir3/ir3.h
index f1c15ca2519..6c286dcd7dd 100644
--- a/src/freedreno/ir3/ir3.h
+++ b/src/freedreno/ir3/ir3.h
@@ -1188,7 +1188,7 @@ create_immed_typed(struct ir3_block *block, uint32_t val, type_t type)
mov->cat1.src_type = type;
mov->cat1.dst_type = type;
__ssa_dst(mov)->flags |= flags;
- ir3_reg_create(mov, 0, IR3_REG_IMMED)->uim_val = val;
+ ir3_reg_create(mov, 0, IR3_REG_IMMED | flags)->uim_val = val;
return mov;
}