intel/fs: track more steps with INTEL_DEBUG=optimizer
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sun, 6 Aug 2023 12:46:12 +0000 (15:46 +0300)
committerMarge Bot <emma+marge@anholt.net>
Thu, 10 Aug 2023 06:39:57 +0000 (06:39 +0000)
commit0e244d56e3922bcfc92d792c45b2206882988118
treea764f48f419ea6187b00aaeb53556899c27870fc
parentf9cd8446efe1a33d1de5f3d60bf957bc006fa84f
intel/fs: track more steps with INTEL_DEBUG=optimizer

One particular nice thing to have is the first generated backend IR
before validation. Especially if you made a mistake in the NIR
translation, you can at least look at it before validation tells you
off.

Then the last 2 steps of the optimize() function can be interesting to
look at.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24552>
src/intel/compiler/brw_fs.cpp
src/intel/compiler/brw_fs.h
src/intel/compiler/brw_lower_logical_sends.cpp