freedreno/ir3/cp: fix ldib bug

Something that we didn't hit earlier because of the extra shr.b

Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@chromium.org>
This commit is contained in:
Rob Clark 2019-02-26 14:46:45 -05:00 committed by Kristian H. Kristensen
parent abfd572bd2
commit ca11f9263e

View file

@ -210,6 +210,12 @@ static bool valid_flags(struct ir3_instruction *instr, unsigned n,
if (is_atomic(instr->opc) && !(instr->flags & IR3_INSTR_G))
return false;
/* as with atomics, ldib on a6xx can only have immediate for
* SSBO slot argument
*/
if ((instr->opc == OPC_LDIB) && (n != 0))
return false;
}
break;