From 1842961e58ccb3e1036bb9657416cf89c3982c50 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Fri, 20 Mar 2020 15:25:11 +0100 Subject: [PATCH] ir3: Also don't propagate immediate offset with LDC Part-of: --- src/freedreno/ir3/ir3_cp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/freedreno/ir3/ir3_cp.c b/src/freedreno/ir3/ir3_cp.c index 5cac9c6b2d4..26c653afbd5 100644 --- a/src/freedreno/ir3/ir3_cp.c +++ b/src/freedreno/ir3/ir3_cp.c @@ -244,10 +244,10 @@ static bool valid_flags(struct ir3_instruction *instr, unsigned n, if (instr->opc == OPC_STG && (instr->flags & IR3_INSTR_G) && (n != 2)) return false; - /* as with atomics, ldib on a6xx can only have immediate for - * SSBO slot argument + /* as with atomics, ldib and ldc on a6xx can only have immediate + * for SSBO slot argument */ - if ((instr->opc == OPC_LDIB) && (n != 0)) + if ((instr->opc == OPC_LDIB || instr->opc == OPC_LDC) && (n != 0)) return false; } -- 2.30.2