Skip to content

shader: Emit the right GLSL function when dealing with TGSI_MEMBAR_ATOMIC_BUFFER

The GLSL spec does not mention a memoryBarrierAtomic function, and the GLSL to TGSI compiler indicates that a TGSI_MEMBAR_ATOMIC_BUFFER is created from GLSL's memoryBarrierAtomicCounter.

Ref: https://gitlab.freedesktop.org/mesa/mesa/-/blob/526f7d779071e432a1205d62acd81d8d7f0c2f47/src/mesa/state_tracker/st_glsl_to_tgsi.cpp#L3737

This fixes: KHR-GL43.compute_shader.shared-struct

Signed-off-by: Rohan Garg rohan.garg@collabora.com

Merge request reports

Loading