From 4e8f4bc4b0e144cce1dacb220a4d7f2430824f3e Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 26 Sep 2024 12:48:28 -0400 Subject: [PATCH] agx: fix corner with uniform source lowering Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_lower_uniform_sources.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/asahi/compiler/agx_lower_uniform_sources.c b/src/asahi/compiler/agx_lower_uniform_sources.c index a9b94d05a64..246284af6a2 100644 --- a/src/asahi/compiler/agx_lower_uniform_sources.c +++ b/src/asahi/compiler/agx_lower_uniform_sources.c @@ -61,6 +61,10 @@ agx_instr_accepts_uniform(enum agx_opcode op, unsigned src_index, case AGX_OPCODE_FCMP_QUAD_BALLOT: case AGX_OPCODE_ICMP_QUAD_BALLOT: return false; + case AGX_OPCODE_EXPORT: + case AGX_OPCODE_PHI: + /* We would fail validation otherwise */ + return true; default: return !is_64; }