mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-16 01:08:05 +02:00
jay: add JAY_DEBUG=noacc option
can help when debugging RA. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41510>
This commit is contained in:
parent
9dbaaecb74
commit
c5cee5d973
2 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue