mesa/src/gallium/auxiliary/nir
Kenneth Graunke fb3e37a014 virgl, nir_to_tgsi: Add a hack for promoting partial memory barriers
Most drivers will want nir_opt_barrier_modes() to optimize out
unnecessary memory barrier modes.  However, virgl has to translate
back to GLSL, which means it can really only handle partial memory
barriers in compute shaders today, because there isn't a proper
way to express them otherwise.  Just ask nir_to_tgsi to promote
these back to full barriers as a workaround.

See KHR-GL43.shader_storage_buffer_object.advanced-readWrite-case1
on virpipe-on-gl as a case where this hack is needed.

Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24842>
2023-09-09 04:41:24 +00:00
..
nir_draw_helpers.c nir: Drop most uses if nir_instr_rewrite_src() 2023-08-18 01:00:15 +00:00
nir_draw_helpers.h gallium/draw: Enable polygon stipple NIR helpers to generate bool1 or bool32 Booleans 2023-01-28 20:42:32 -08:00
nir_to_tgsi.c virgl, nir_to_tgsi: Add a hack for promoting partial memory barriers 2023-09-09 04:41:24 +00:00
nir_to_tgsi.h virgl, nir_to_tgsi: Add a hack for promoting partial memory barriers 2023-09-09 04:41:24 +00:00
nir_to_tgsi_info.c ntt: handle interp intrinsics as derefs 2023-08-15 11:54:05 +00:00
nir_to_tgsi_info.h meson/gallium: Add an option to not use LLVM for gallium draw module 2021-02-25 17:48:16 +00:00
tgsi_to_nir.c treewide: Use nir_before/after_impl for more elaborate cases 2023-08-30 19:30:58 +00:00
tgsi_to_nir.h Revert "nir: make tgsi_varying_semantic_to_slot(..) public" 2022-02-11 08:48:10 +00:00