From 40ae3e0fb60285856b1eba30f6393476435f7251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Thu, 5 Jan 2017 13:28:41 +0200 Subject: [PATCH] HACK - trigger buffer exchange in dEQP-EGL.functional.buffer_age MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (Investigating for a real solution for this.) Signed-off-by: Tapani Pälli --- modules/egl/teglBufferAgeTests.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/egl/teglBufferAgeTests.cpp b/modules/egl/teglBufferAgeTests.cpp index 523e8d8..4792cc2 100644 --- a/modules/egl/teglBufferAgeTests.cpp +++ b/modules/egl/teglBufferAgeTests.cpp @@ -567,6 +567,14 @@ TestCase::IterateResult BufferAgeTest::iterate (void) // do verification in the second half if (currentBufferAge > 0) //buffer contain previous content, need to verify { + // dummy clear to trigger buffer exchange (current front/back) as + // swapbuffers has not really done it + m_gl.enable(GL_SCISSOR_TEST); + m_gl.scissor(0, 0, 0, 0); + m_gl.clearColor(1.0, 0.0, 1.0, 1.0); + m_gl.clear(GL_COLOR_BUFFER_BIT); + m_gl.disable(GL_SCISSOR_TEST); + const vector framesOnBuffer = getFramesOnBuffer(bufferAges, frameNdx); readPixels(m_gl, ¤tBuffer); clearColorReference(&refBuffer, clearColor); -- 2.9.3