rusticl/kernel: optimize nir between lowering io and explicit types

This is required to get rid of unneeded memory operations, like direct
scratch stores/loads to the same location.

Fixes: 66c6061491 ("rusticl/kernel: get rid of initial function_temp type lowering")
Signed-off-by: Karol Herbst <git@karolherbst.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24734>
This commit is contained in:
Karol Herbst 2023-08-16 21:25:44 +02:00 committed by Marge Bot
parent 91029b7e87
commit cc2f59d840

View file

@ -620,6 +620,8 @@ fn lower_and_optimize_nir(
Some(glsl_get_cl_type_size_align),
);
opt_nir(nir, dev);
nir_pass!(
nir,
nir_lower_explicit_io,