mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-14 21:50:38 +02:00
agx: Don't destroy usub_sat with constant
Fixes KHR-GLES31.core.shader_storage_buffer_object.advanced-unsizedArrayLength-cs-std430-vec-pad Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22353>
This commit is contained in:
parent
8ec91ee16f
commit
3a87d2cfbd
1 changed files with 2 additions and 0 deletions
|
|
@ -99,6 +99,8 @@ agx_optimizer_inline_imm(agx_instr **defs, agx_instr *I, unsigned srcs,
|
|||
agx_index src = I->src[s];
|
||||
if (src.type != AGX_INDEX_NORMAL)
|
||||
continue;
|
||||
if (src.neg)
|
||||
continue;
|
||||
|
||||
agx_instr *def = defs[src.value];
|
||||
if (def->op != AGX_OPCODE_MOV_IMM)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue