Move combining clip and cull optimization before linking
authorOleksii Bozhenko <oleksii.bozhenko@globallogic.com>
Wed, 1 Mar 2023 13:04:00 +0000 (15:04 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 22 Mar 2023 19:01:40 +0000 (19:01 +0000)
commit3d2d4728aaf3b3a417ce9507481d64297766bd54
tree51c576f255f84385bf8a3f00622c223b032fc2b5
parent48e218b49d6bdfd167b755e3983bce4f14132347
Move combining clip and cull optimization before linking

As far gl_nir_link_glsl fills xfb data we should do it after lowering clip and cull in order to get correct locations.

Fixes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7152
Signed-off-by: Oleksii Bozhenko <oleksii.bozhenko@globallogic.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21625>
src/freedreno/ci/freedreno-a618-fails.txt
src/freedreno/ci/freedreno-a630-fails.txt
src/gallium/drivers/crocus/ci/crocus-hsw-fails.txt
src/intel/ci/iris-kbl-fails.txt
src/mesa/state_tracker/st_glsl_to_nir.cpp