From 51d3a376bcd1a26414ce6059bda321a7ece1027d Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 1 Mar 2024 12:22:11 -0400 Subject: [PATCH] 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 Part-of: --- src/asahi/compiler/agx_lower_uniform_sources.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asahi/compiler/agx_lower_uniform_sources.c b/src/asahi/compiler/agx_lower_uniform_sources.c index a0b9e0eb1b1..b4b41ab9116 100644 --- a/src/asahi/compiler/agx_lower_uniform_sources.c +++ b/src/asahi/compiler/agx_lower_uniform_sources.c @@ -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: