Add missing glMemoryBarrier between SSBO write and GetBufferSubData
- Dec 09, 2022
-
-
Kenneth Graunke authored
In order for glGetBufferSubData to see the results from the SSBO writes in the previous draw's shaders, it's necessary to call glMemoryBarrier(GL_BUFFER_UPDATE_BARRIER_BIT). Fixes failures on iris when preferring GPU blits for GetBufferSubData (to avoid uncached VRAM reads on discrete cards). Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
c669792b
-