diff --git a/src/freedreno/ir3/ir3_cp.c b/src/freedreno/ir3/ir3_cp.c index e7e5ec68c7c..e345417c914 100644 --- a/src/freedreno/ir3/ir3_cp.c +++ b/src/freedreno/ir3/ir3_cp.c @@ -470,7 +470,7 @@ reg_cp(struct ir3_cp_ctx *ctx, struct ir3_instruction *instr, /* other than category 1 (mov) we can only encode up to 10 bits: */ if (ir3_valid_flags(instr, n, new_flags) && ((instr->opc == OPC_MOV) || is_meta(instr) || - !((iim_val & ~0x3ff) && (-iim_val & ~0x3ff)))) { + !((iim_val & ~0x1ff) && (-iim_val & ~0x1ff)))) { new_flags &= ~(IR3_REG_SABS | IR3_REG_SNEG | IR3_REG_BNOT); src_reg = ir3_reg_clone(instr->block->shader, src_reg); src_reg->flags = new_flags;