Remove a wrong qualityWarning for fbo completeness test
authorhoulei1994 <1511060543@qq.com>
Sun, 27 Feb 2022 04:32:06 +0000 (12:32 +0800)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Fri, 1 Apr 2022 21:03:49 +0000 (21:03 +0000)
Components: OpenGL
VK-GL-CTS public issue: 296

Affects:
dEQP-GLES2.functional.fbo.completeness.attachment_combinations.*

Change-Id: Ic0ebb0d861cf9e5503d2be1368050a88d2b4d9b7

modules/glshared/glsFboCompletenessTests.cpp

index a850a87..de1daa8 100644 (file)
@@ -669,6 +669,16 @@ IterateResult TestBase::iterate (void)
                                // An incomplete status is allowed, but not _this_ incomplete status.
                                fail("Framebuffer checked as incomplete, but with wrong status");
                }
+               else if (fboStatus == GL_FRAMEBUFFER_UNSUPPORTED)
+               {
+                       // The spec requires
+                       //     "when both depth and stencil attachments are present,implementations are only required
+                       //      to support framebuffer objects where both attachments refer to the same image."
+                       //
+                       // Thus, it is acceptable for an implementation returning GL_FRAMEBUFFER_UNSUPPORTED,
+                       // and the test cannot be marked as failed.
+                       pass();
+               }
                else if (fboStatus != GL_FRAMEBUFFER_COMPLETE && reference.isFBOStatusValid(GL_FRAMEBUFFER_COMPLETE))
                        qualityWarning("Framebuffer object could have checked as complete but did not.");
                else