mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 19:50:12 +01:00
clover/nir: Call vars_to_explicit_types for shared memory
This is required for shared memory buffers declared with an explicit size inside the kernel. Signed-off-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6367>
This commit is contained in:
parent
1e7c2d1862
commit
918e444f04
1 changed files with 3 additions and 0 deletions
|
|
@ -145,6 +145,9 @@ module clover::nir::spirv_to_nir(const module &mod, const device &dev,
|
|||
NIR_PASS_V(nir, nir_lower_vars_to_ssa);
|
||||
NIR_PASS_V(nir, nir_opt_dce);
|
||||
|
||||
NIR_PASS_V(nir, nir_lower_vars_to_explicit_types, nir_var_mem_shared,
|
||||
glsl_get_cl_type_size_align);
|
||||
|
||||
/* use offsets for shader_in and shared memory */
|
||||
nir_variable_mode modes = (nir_variable_mode)(
|
||||
nir_var_shader_in |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue