mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-09 03:20:26 +01:00
radeonsi: use nir_lower_explicit_io to get rid of mem_shared deref
We can get them through GLSL compute or SPIR-V. Reviewed-by: Mihai Preda <mhpreda@gmail.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Qiang Yu <yuq825@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19035>
This commit is contained in:
parent
55ba066d45
commit
236c7ca8b3
1 changed files with 2 additions and 0 deletions
|
|
@ -342,6 +342,8 @@ char *si_finalize_nir(struct pipe_screen *screen, void *nirptr)
|
|||
|
||||
nir_lower_io_passes(nir);
|
||||
|
||||
NIR_PASS_V(nir, nir_lower_explicit_io, nir_var_mem_shared, nir_address_format_32bit_offset);
|
||||
|
||||
/* Remove dead derefs, so that we can remove uniforms. */
|
||||
NIR_PASS_V(nir, nir_opt_dce);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue