lvp: fix load_helper_invocation not being lowered
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Tue, 29 Nov 2022 11:52:43 +0000 (12:52 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 20 Dec 2022 11:06:52 +0000 (11:06 +0000)
commit499e33061b5c1ccc607f7f93b7d0f6a399248422
tree47e5c5b0302807a188c40e7edf8a058cbf72118f
parent7f2ce867cf0e13a1dfb005ceb79f359a9bb3cc4d
lvp: fix load_helper_invocation not being lowered

nir_lower_is_helper_invocation should be after nir_lower_system_values
to handle possible nir_intrinsic_is_helper_invocation which may be
produced by nir_lower_system_values.

Happens with SPIR-V 1.6 for which gl_HelperInvocation is translated into
"BuiltIn HelperInvocation" + "Volatile", which nir_lower_system_values
translates into is_helper_invocation.

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19677>
src/gallium/frontends/lavapipe/lvp_pipeline.c