From c5cee5d9739381eaa805a3eee0f388a322ddd468 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 11 May 2026 12:10:20 -0400 Subject: [PATCH] jay: add JAY_DEBUG=noacc option can help when debugging RA. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Kenneth Graunke Part-of: --- src/intel/compiler/jay/jay_from_nir.c | 6 +++++- src/intel/compiler/jay/jay_private.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/intel/compiler/jay/jay_from_nir.c b/src/intel/compiler/jay/jay_from_nir.c index e928efeeb86..9bae97ba942 100644 --- a/src/intel/compiler/jay/jay_from_nir.c +++ b/src/intel/compiler/jay/jay_from_nir.c @@ -40,6 +40,7 @@ static const struct debug_named_value jay_debug_options[] = { { "printdemand", JAY_DBG_PRINTDEMAND, "Print demand per instruction" }, { "spill", JAY_DBG_SPILL, "Shrink register file to test spilling" }, { "sync", JAY_DBG_SYNC, "Sync after every instruction" }, + { "noacc", JAY_DBG_NOACC, "Disable accumulator substitution" }, DEBUG_NAMED_VALUE_END }; @@ -2681,7 +2682,10 @@ jay_compile(const struct intel_device_info *devinfo, * predication, so assign accumulators before predicating for better * results. */ - JAY_PASS(s, jay_assign_accumulators); + if (!(jay_debug & JAY_DBG_NOACC)) { + JAY_PASS(s, jay_assign_accumulators); + } + JAY_PASS(s, jay_opt_predicate); } diff --git a/src/intel/compiler/jay/jay_private.h b/src/intel/compiler/jay/jay_private.h index b6da081c46a..758716a8cb6 100644 --- a/src/intel/compiler/jay/jay_private.h +++ b/src/intel/compiler/jay/jay_private.h @@ -16,6 +16,7 @@ extern "C" { #define JAY_DBG_PRINTDEMAND BITFIELD_BIT(1) #define JAY_DBG_SPILL BITFIELD_BIT(2) #define JAY_DBG_SYNC BITFIELD_BIT(3) +#define JAY_DBG_NOACC BITFIELD_BIT(4) extern int jay_debug; bool jay_nir_lower_bool(nir_shader *nir);