From fb74c54eb8ab5776fc2cd2c6d0eff422a344ec78 Mon Sep 17 00:00:00 2001 From: Fei Yang Date: Mon, 2 Jul 2018 16:48:40 +0800 Subject: [PATCH] Fix dEQP-GLES3.functional.fbo.multiview.* When the width of render target is an odd value, these tests failed. The reason is these tests set default sample parameters and sample from a 512x512 surface, where the left/right views have different colors. When the width of render target is an odd value, the color of central line is undefined. As these tests' purpose is mainly want to verify whether the left/right views have the different color, but not exactly care what the central line is, a simple solution is just skip the check of central line. Components: OpenGL VK-GL-CTS issue: 1256 Affects: dEQP-GLES3.functional.fbo.multiview.* Change-Id: I62c86dc7269864a3919b11a331178bfc54d65ab0 --- modules/gles3/functional/es3fMultiviewTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gles3/functional/es3fMultiviewTests.cpp b/modules/gles3/functional/es3fMultiviewTests.cpp index 7f88926..06b1805 100644 --- a/modules/gles3/functional/es3fMultiviewTests.cpp +++ b/modules/gles3/functional/es3fMultiviewTests.cpp @@ -309,7 +309,7 @@ MultiviewCase::IterateResult MultiviewCase::iterate() failed = true; } } - else + else if (x > backbufferWidth / 2) { if (pixel.getRed() != 0 || pixel.getGreen() != 255 || pixel.getBlue() != 0) { -- 2.7.4