``sync``
after sending each batch, wait on the CPU for that batch to
finish rendering
+ ``swsb-stall``
+ Insert sync NOP after each instruction. This is only valid for Gfx12+.
``task``
dump shader assembly for task shaders
``tcs``
#include "brw_eu.h"
#include "brw_fs.h"
#include "brw_cfg.h"
+#include "dev/intel_debug.h"
#include "util/mesa-sha1.h"
#include "util/half_float.h"
brw_inst_set_no_dd_check(p->devinfo, last, inst->no_dd_check);
}
}
+
+ /* When enabled, insert sync NOP after every instruction and make sure
+ * that current instruction depends on the previous instruction.
+ */
+ if (INTEL_DEBUG(DEBUG_SWSB_STALL) && devinfo->ver >= 12) {
+ brw_set_default_swsb(p, tgl_swsb_regdist(1));
+ brw_SYNC(p, TGL_SYNC_NOP);
+ }
}
brw_set_uip_jip(p, start_offset);
{ "stall", DEBUG_STALL },
{ "capture-all", DEBUG_CAPTURE_ALL },
{ "perf-symbol-names", DEBUG_PERF_SYMBOL_NAMES },
+ { "swsb-stall", DEBUG_SWSB_STALL },
{ NULL, 0 }
};
#define DEBUG_MESH (1ull << 42)
#define DEBUG_CAPTURE_ALL (1ull << 43)
#define DEBUG_PERF_SYMBOL_NAMES (1ull << 44)
+#define DEBUG_SWSB_STALL (1ull << 45)
#define DEBUG_ANY (~0ull)