Add GL_RGB9_E5 as renderable ext format in fbo tests
authorMohankumar Nekkarakalaya <mnekkara@qti.qualcomm.com>
Thu, 19 Aug 2021 19:05:36 +0000 (12:05 -0700)
committerPaul Thomson <paulthomson@google.com>
Fri, 3 Sep 2021 11:48:39 +0000 (11:48 +0000)
-If GL_QCOM_render_shared_exponent is supported then treat
GL_RGB9_E5 as a renderable format for fbo completeness tests

Components: OpenGL
VK-GL-CTS Issue: 3066

Affects:
dEQP-GLES3.functional.fbo.completeness.renderable.renderbuffer.color0.rgb9_e5
dEQP-GLES3.functional.fbo.completeness.renderable.texture.color0.rgb9_e5

Change-Id: I74566a5b56c7528c89ac97423c5b6f9207397c70
(cherry picked from commit d18b37f7319839e2be970a96fecdeb2cdb1db7e4)

modules/gles3/functional/es3fFboCompletenessTests.cpp

index 5a07bba2b060eeeba3bfbabeb1eb350e9acf5cd9..3a65a008454353b7fdfc286857d762e1e12d3ba5 100644 (file)
@@ -130,6 +130,11 @@ static const FormatKey s_extColorBufferFloatFormats[] =
        GL_RGBA32F, GL_RGBA16F, GL_R11F_G11F_B10F, GL_RG32F, GL_RG16F, GL_R32F, GL_R16F,
 };
 
+// GL_QCOM_render_shared_exponent
+static const FormatKey s_qcomRenderSharedExponent[] =
+{
+       GL_RGB9_E5,
+};
 // GL_OES_texture_stencil8
 static const FormatKey s_extOESTextureStencil8[] =
 {
@@ -168,6 +173,14 @@ static const FormatExtEntry s_es3ExtFormats[] =
                "DEQP_gles31_core_compatible GL_EXT_render_snorm",
                (deUint32)(REQUIRED_RENDERABLE | COLOR_RENDERABLE | TEXTURE_VALID | RENDERBUFFER_VALID),
                GLS_ARRAY_RANGE(s_extRenderSnorm)
+               },
+
+       {
+               "GL_QCOM_render_shared_exponent",
+               // This is already texture-valid in ES3, the extension just adds RBO
+               // support to RGB9_E5 and make it color-renderable.
+               (deUint32)(REQUIRED_RENDERABLE | COLOR_RENDERABLE | RENDERBUFFER_VALID | TEXTURE_VALID),
+               GLS_ARRAY_RANGE(s_qcomRenderSharedExponent)
        },
 };