From 7045e3b3425779fc2ffddea440e72a5d1297120e Mon Sep 17 00:00:00 2001 From: Topi Pohjolainen Date: Thu, 27 Jul 2017 15:17:35 +0300 Subject: [PATCH] dbg --- cts/gles31/functional/es31fCopyImageTests.cpp | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/cts/gles31/functional/es31fCopyImageTests.cpp b/cts/gles31/functional/es31fCopyImageTests.cpp index 9578b4b..3dcb8f0 100644 --- a/cts/gles31/functional/es31fCopyImageTests.cpp +++ b/cts/gles31/functional/es31fCopyImageTests.cpp @@ -1170,7 +1170,7 @@ void verifyTextureCubemapView (tcu::TestContext& testContext, gl.texParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MAG_FILTER, GL_NEAREST); GLU_EXPECT_NO_ERROR(gl.getError(), "Failed to setup texture filtering state."); - for (int level = 0; level < getLevelCount(info); level++) + for (int level = 1; level < 2; level++) { const IVec3 levelSize = getLevelSize(info.getTarget(), info.getSize(), level); @@ -1184,7 +1184,7 @@ void verifyTextureCubemapView (tcu::TestContext& testContext, gl.texParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_BASE_LEVEL, level); gl.texParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MAX_LEVEL, level); - for (int face = 0; face < 6; face++) + for (int face = 0; face < 1; face++) { const RandomViewport viewport (renderContext.getRenderTarget(), levelSize.x(), levelSize.y(), rng.getUint32()); const string cubemapFaceName = glu::getCubeMapFaceStr(mapFaceNdxToFace(face)).toString(); @@ -1964,6 +1964,12 @@ void CopyImageTest::copyImageIter (void) { const Copy& copy = copies[copyNdx]; + if (copy.dstLevel == 0) + continue; + + if (copy.dstLevel == 6 && copy.dstPos[2] != 0) + continue; + log << TestLog::Message << "Copying area with size " << copy.size << " from source image position " << copy.srcPos << " and mipmap level " << copy.srcLevel @@ -1984,19 +1990,9 @@ TestCase::IterateResult CopyImageTest::iterate (void) // Render both images and then copy and verify again. &CopyImageTest::createImagesIter, - &CopyImageTest::verifySourceIter, - &CopyImageTest::verifyDestinationIter, &CopyImageTest::copyImageIter, - &CopyImageTest::verifySourceIter, &CopyImageTest::verifyDestinationIter, &CopyImageTest::destroyImagesIter, - - // Create images and immediately copies between thew and verify. - &CopyImageTest::createImagesIter, - &CopyImageTest::copyImageIter, - &CopyImageTest::verifySourceIter, - &CopyImageTest::verifyDestinationIter, - &CopyImageTest::destroyImagesIter }; if (m_iteration < DE_LENGTH_OF_ARRAY(methods)) -- 2.1.0