agx: Disallow immediate bases to device_load

Lina pointed this out in review.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21326>
This commit is contained in:
Alyssa Rosenzweig 2023-02-20 12:49:13 -05:00 committed by Marge Bot
parent 6b0ef2b462
commit eea3674f36

View file

@ -137,7 +137,8 @@ agx_optimizer_inline_imm(agx_instr **defs, agx_instr *I, unsigned srcs,
I->op == AGX_OPCODE_LOCAL_ATOMIC) &&
s != 2)
continue;
if (I->op == AGX_OPCODE_LOCAL_LOAD && s != 1)
if ((I->op == AGX_OPCODE_LOCAL_LOAD || I->op == AGX_OPCODE_DEVICE_LOAD) &&
s != 1)
continue;
if (float_src) {