mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 02:30:18 +01:00
tu: 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>
This commit is contained in:
parent
8482ad0110
commit
7f2ce867cf
1 changed files with 1 additions and 2 deletions
|
|
@ -120,9 +120,8 @@ tu_spirv_to_nir(struct tu_device *dev,
|
|||
NIR_PASS_V(nir, nir_opt_copy_prop_vars);
|
||||
NIR_PASS_V(nir, nir_opt_combine_stores, nir_var_all);
|
||||
|
||||
NIR_PASS_V(nir, nir_lower_is_helper_invocation);
|
||||
|
||||
NIR_PASS_V(nir, nir_lower_system_values);
|
||||
NIR_PASS_V(nir, nir_lower_is_helper_invocation);
|
||||
|
||||
NIR_PASS_V(nir, nir_lower_frexp);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue