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: