mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
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:
parent
6b0ef2b462
commit
eea3674f36
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue