Merge vk-gl-cts/opengl-cts-4.6.1 into vk-gl-cts/opengl-cts-4.6.2
Change-Id: Ieaa2b74697a9a585d70b923b1c9d1caca228963d
diff --git a/external/openglcts/modules/gl/gl4cShaderImageLoadStoreTests.cpp b/external/openglcts/modules/gl/gl4cShaderImageLoadStoreTests.cpp
index 902ff31..5286838 100644
--- a/external/openglcts/modules/gl/gl4cShaderImageLoadStoreTests.cpp
+++ b/external/openglcts/modules/gl/gl4cShaderImageLoadStoreTests.cpp
@@ -7467,6 +7467,9 @@
/* Copy texture data with imageLoad() and imageStore() operations */
CopyRGBA8Texture(m_destination_texture_id, m_source_texture_id, n_layers);
+ /* Issue barrier to make data ready for read/comparison. */
+ glMemoryBarrier(GL_TEXTURE_UPDATE_BARRIER_BIT);
+
/* Compare "source" and "destination" textures */
if (false ==
CompareRGBA8Textures(m_destination_texture_id, m_source_texture_id, it->m_edge, n_layers, it->m_type))