aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTate Hornbeck <tateh@qti.qualcomm.com>2023-09-29 11:22:19 -0400
committerYuxin Hu <yuxinhu@google.com>2024-02-22 22:21:20 +0000
commit0f7bfc4271b7ba7d626b04e580c2a3d9f12f903d (patch)
tree72aab670a46f7d00c6f49a0642dc6c7edfe6d8e0
parent8a2d3c815e205b01a8a5c0953c2689692f1a34b0 (diff)
downloaddeqp-0f7bfc4271b7ba7d626b04e580c2a3d9f12f903d.tar.gz
Consider GL_QCOM_render_sRGB_R8_RG8 in FBO completeness
-If GL_QCOM_render_sRGB_R8_RG8 is supported then treat GL_SR8_EXT and GL_SRG8_EXT as renderable. Components: OpenGL VK-GL-CTS Issue: 4703 Affects: dEQP-GLES*.functional.fbo.completeness.renderable.*.sr8_ext dEQP-GLES*.functional.fbo.completeness.renderable.*.srg8_ext Bug: b/313329842 Test: atest CtsDeqpTestCases:dEQP-GLES3.functional.fbo.completeness.renderable.renderbuffer.color0#srg8_ext Change-Id: I6c3f481e3ee880ae178600f9b37591ff3a98c1a7 (cherry picked from commit 601028e6b50f658613eece8aaafcf8b2c943d605)
-rw-r--r--modules/glshared/glsFboCompletenessTests.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/glshared/glsFboCompletenessTests.cpp b/modules/glshared/glsFboCompletenessTests.cpp
index de1daa8c2..c979b0658 100644
--- a/modules/glshared/glsFboCompletenessTests.cpp
+++ b/modules/glshared/glsFboCompletenessTests.cpp
@@ -209,6 +209,12 @@ static const FormatKey s_extTextureSRGBRG8Formats[] =
GL_SRG8_EXT,
};
+static const FormatKey s_qcomRenderSRGBR8RG8Formats[] =
+{
+ GL_SR8_EXT,
+ GL_SRG8_EXT,
+};
+
static const FormatExtEntry s_esExtFormats[] =
{
{
@@ -389,6 +395,12 @@ static const FormatExtEntry s_esExtFormats[] =
(deUint32)TEXTURE_VALID,
GLS_ARRAY_RANGE(s_extTextureSRGBRG8Formats)
},
+
+ {
+ "GL_QCOM_render_sRGB_R8_RG8",
+ (deUint32)(REQUIRED_RENDERABLE | COLOR_RENDERABLE | RENDERBUFFER_VALID | TEXTURE_VALID),
+ GLS_ARRAY_RANGE(s_qcomRenderSRGBR8RG8Formats)
+ },
};
Context::Context (TestContext& testCtx,