From 7e3cd2412d640ca8e8e1db9362c32e75a91d5235 Mon Sep 17 00:00:00 2001 From: Neil Monday Date: Mon, 9 Jul 2018 09:38:16 -0400 Subject: [PATCH] TextureBarrier required for texture_view.coherency The third paragraph in section 9.3.1 gives conditions when texture/framebuffer texture reads/writes are undefined. I think that this test requires a TextureBarrier as described in the last bullet point. Affects: KHR-GL46.texture_view.coherency Components: OpenGL VK-GL-CTS issue: 1183 Change-Id: I231ffd5acd089ebc1a9e0265c2f4a97f2a5c525c --- external/openglcts/modules/gl/gl4cTextureViewTests.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/external/openglcts/modules/gl/gl4cTextureViewTests.cpp b/external/openglcts/modules/gl/gl4cTextureViewTests.cpp index 68bf5ab..80b8250 100644 --- a/external/openglcts/modules/gl/gl4cTextureViewTests.cpp +++ b/external/openglcts/modules/gl/gl4cTextureViewTests.cpp @@ -8323,6 +8323,8 @@ void TextureViewTestCoherency::checkProgramWriteCoherency(_texture_type texture_ gl.drawArrays(GL_TRIANGLE_STRIP, 0 /* first */, 4 /* count */); GLU_EXPECT_NO_ERROR(gl.getError(), "glDrawArrays() call failed."); + + gl.textureBarrier(); } /* Determine which texture and which mip-map level we will need to sample -- 2.7.4