intel/compiler: Add swsb_stall debug option
authorSagar Ghuge <sagar.ghuge@intel.com>
Wed, 8 Mar 2023 20:31:51 +0000 (12:31 -0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 10 Mar 2023 06:55:39 +0000 (06:55 +0000)
commit9a34b2ab0e6f6fce8c959ac837c1455052618bb7
treebc8b6eaabdfc255ff88114bc13bc02e525d305ae
parentcdf63e6dce95bf7abf1f21438b08a8636b33bb48
intel/compiler: Add swsb_stall debug option

When enabled, on gfx12 plus, we will add the sync nop instruction after
each instruction to make sure that current instruction depends on the
previous instruction explicitly.

This option will help us to get a hint if something is missing or broken
in software scoreboard pass.

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21797>
docs/envvars.rst
src/intel/compiler/brw_fs_generator.cpp
src/intel/dev/intel_debug.c
src/intel/dev/intel_debug.h