agx: restrict high uniforms with textures

seems to cause brokenness in blender, guess this is a new ISA corner we just
found.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28483>
This commit is contained in:
Alyssa Rosenzweig 2024-03-01 12:22:11 -04:00 committed by Marge Bot
parent 51eba1c38e
commit 51d3a376bc

View file

@ -25,7 +25,7 @@ should_lower(enum agx_opcode op, agx_index uniform, unsigned src_index)
case AGX_OPCODE_IMAGE_LOAD:
case AGX_OPCODE_TEXTURE_LOAD:
case AGX_OPCODE_TEXTURE_SAMPLE:
return src_index != 1 && src_index != 2;
return !((src_index == 1 && !high) || src_index == 2);
case AGX_OPCODE_DEVICE_LOAD:
return src_index != 0 || high;
case AGX_OPCODE_DEVICE_STORE: