intel/fs: reduce register usage for relocated constants
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 5 May 2023 10:12:25 +0000 (13:12 +0300)
committerMarge Bot <emma+marge@anholt.net>
Sun, 7 May 2023 19:38:04 +0000 (19:38 +0000)
commitfb13360546ec14353db7cd1023e9103381d7826c
treee6292bfc2b854e983920711960a2cc95b369dd7b
parent1aaf4bf40a53e8e382ba14b2470f160afd78b6cc
intel/fs: reduce register usage for relocated constants

Commit bb8e31b7ed ("anv: avoid hardcoding instruction VA constant in
shaders") had a slight negative impact on shaders (Red Dead Redemption
2 in particular). Dropping a few shaders from SIMD32 to SIMD16.

With this change, it brings back all the dropped SIMD32 shaders.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22872>
src/intel/compiler/brw_fs_nir.cpp