TextureBarrier required for texture_view.coherency
authorNeil Monday <Neil.Monday@amd.com>
Mon, 9 Jul 2018 13:38:16 +0000 (09:38 -0400)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 12 Jul 2018 07:21:43 +0000 (03:21 -0400)
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

index 68bf5ab..80b8250 100644 (file)
@@ -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