From 004b42f49a45cd0cc49c4b06453a3089fadcef25 Mon Sep 17 00:00:00 2001 From: Shahbaz Youssefi Date: Fri, 19 Feb 2021 14:44:01 -0500 Subject: [PATCH] Fix missing barrier in texture buffer test The test does: - Draw with transform feedback - Dispatch using the same buffer as imageBuffer This is a WaR hazard that needs a glMemoryBarrier. VK-GL-CTS issue: 2809 Affects: KHR-GLES31.core.texture_buffer.texture_buffer_operations_transform_feedback Change-Id: Id092229708421002fe1b8df38028f9c6a359c242 --- .../modules/glesext/texture_buffer/esextcTextureBufferOperations.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/external/openglcts/modules/glesext/texture_buffer/esextcTextureBufferOperations.cpp b/external/openglcts/modules/glesext/texture_buffer/esextcTextureBufferOperations.cpp index 850ee45..6688b91 100644 --- a/external/openglcts/modules/glesext/texture_buffer/esextcTextureBufferOperations.cpp +++ b/external/openglcts/modules/glesext/texture_buffer/esextcTextureBufferOperations.cpp @@ -1230,6 +1230,8 @@ void TextureBufferOperationsViaTransformFeedback::initializeBufferObjectData() gl.useProgram(0); + gl.memoryBarrier(GL_SHADER_IMAGE_ACCESS_BARRIER_BIT); + m_position_location = -1; } -- 2.7.4