intel/compiler: Use NIR_PASS instead of NIR_PASS_V
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 11 Jan 2023 19:15:27 +0000 (11:15 -0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 6 Apr 2023 19:07:50 +0000 (19:07 +0000)
commitd47f521ee4079cc296e9b10e5dc632ec6139264b
tree0017dfc8c2a1de311c664b15f417fbd59842d572
parentfb950a9edfe98dc1cc581e1aa37a41c38c2e76cb
intel/compiler: Use NIR_PASS instead of NIR_PASS_V

Reduce debug log spam by only logging the shader if a pass made some
changes. This can also elide some nir_validate calls in debug builds.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22299>
src/intel/compiler/brw_fs.cpp
src/intel/compiler/brw_nir.c