From: Kristian H. Kristensen Date: Fri, 10 Jan 2020 21:59:43 +0000 (-0800) Subject: freedreno/ir3: Set IR3_REG_HALF flag on src as well in immediate MOV X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d55dfef78237380d3734f2341818daa299a7f330;p=mesa.git 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 Part-of: --- 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; }