[Piglit] [PATCH 2/2] required-sized-formats: Add comments about requirements for GL 3.1-4.2.

Eric Anholt eric at anholt.net
Sun Nov 6 20:32:08 PST 2011


I was looking at the lists anyway, so record what I found.  I haven't
made the changes into testcases, because I haven't looked into how
context creation changes over time (I think it does at some GL
version).
---
 tests/spec/gl-3.0/required-sized-formats.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/tests/spec/gl-3.0/required-sized-formats.c b/tests/spec/gl-3.0/required-sized-formats.c
index f77ad6e..7ab148c 100644
--- a/tests/spec/gl-3.0/required-sized-formats.c
+++ b/tests/spec/gl-3.0/required-sized-formats.c
@@ -144,8 +144,13 @@ static const struct {
 	FORMAT(GL_RGBA8UI, U8, U8, U8, U8, NONE, NONE, NONE, NONE),
 	FORMAT(GL_SRGB8_ALPHA8, UN8, UN8, UN8, UN8, NONE, NONE, NONE, NONE),
 	FORMAT(GL_RGB10_A2, UN10, UN10, UN10, UN2, NONE, NONE, NONE, NONE),
+	/* GL 3.3 requires GL_RGB10_A2UI */
+	/* GL 4.2 requires GL_RGB5_A1 and GL_RGBA4 */
 
 	FORMAT(GL_R11F_G11F_B10F, F11, F11, F10, NONE, NONE, NONE, NONE, NONE),
+
+	/* GL 4.2 requires GL_RGB565 */
+
 	FORMAT(GL_RG32F, F32, F32, NONE, NONE, NONE, NONE, NONE, NONE),
 	FORMAT(GL_RG32I, I32, I32, NONE, NONE, NONE, NONE, NONE, NONE),
 	FORMAT(GL_RG32UI, U32, U32, NONE, NONE, NONE, NONE, NONE, NONE),
@@ -166,18 +171,24 @@ static const struct {
 	FORMAT(GL_R8, UN8, NONE, NONE, NONE, NONE, NONE, NONE, NONE),
 	FORMAT(GL_R8I, I8, NONE, NONE, NONE, NONE, NONE, NONE, NONE),
 	FORMAT(GL_R8UI, U8, NONE, NONE, NONE, NONE, NONE, NONE, NONE),
+
+	/* Deprecated in 3.0, dropped from core in 3.1 */
 	FORMAT(GL_ALPHA8, NONE, NONE, NONE, UN8, NONE, NONE, NONE, NONE),
 
 	/* Required color formats (texture-only): */
+
+	/* GL 3.1 requires GL_RGBA16_SNORM, GL_RGBA8_SNORM */
 	FORMAT(GL_RGB32F, F32, F32, F32, NONE, NONE, NONE, NONE, NONE),
 	FORMAT(GL_RGB32I, I32, I32, I32, NONE, NONE, NONE, NONE, NONE),
 	FORMAT(GL_RGB32UI, U32, U32, U32, NONE, NONE, NONE, NONE, NONE),
 
+	/* GL 3.1 requires GL_RGB16_SNORM */
 	FORMAT(GL_RGB16F, F16, F16, F16, NONE, NONE, NONE, NONE, NONE),
 	FORMAT(GL_RGB16I, I16, I16, I16, NONE, NONE, NONE, NONE, NONE),
 	FORMAT(GL_RGB16UI, U16, U16, U16, NONE, NONE, NONE, NONE, NONE),
 	FORMAT(GL_RGB16, UN16, UN16, UN16, NONE, NONE, NONE, NONE, NONE),
 
+	/* GL 3.1 requires GL_RGB8_SNORM */
 	FORMAT(GL_RGB8, UN8, UN8, UN8, NONE, NONE, NONE, NONE, NONE),
 	FORMAT(GL_RGB8I, I8, I8, I8, NONE, NONE, NONE, NONE, NONE),
 	FORMAT(GL_RGB8UI, U8, U8, U8, NONE, NONE, NONE, NONE, NONE),
@@ -185,8 +196,10 @@ static const struct {
 
 	FORMAT(GL_RGB9_E5, F9, F9, F9, NONE, NONE, NONE, NONE, NONE),
 
+	/* GL 3.1 requires RG16_SNORM, RG8_SNORM */
 	FORMAT(GL_COMPRESSED_RG_RGTC2, UCMP, UCMP, NONE, NONE, NONE, NONE, NONE, NONE),
 	FORMAT(GL_COMPRESSED_SIGNED_RG_RGTC2, SCMP, SCMP, NONE, NONE, NONE, NONE, NONE, NONE),
+	/* GL 3.1 requires R16_SNORM, R8_SNORM */
 	FORMAT(GL_COMPRESSED_RED_RGTC1, UCMP, NONE, NONE, NONE, NONE, NONE, NONE, NONE),
 	FORMAT(GL_COMPRESSED_SIGNED_RED_RGTC1, SCMP, NONE, NONE, NONE, NONE, NONE, NONE, NONE),
 
-- 
1.7.7



More information about the Piglit mailing list