[Piglit] [PATCH 1/2] s3tc-targeted: Reduce requirements to the minimal set
Nanley Chery
nanleychery at gmail.com
Fri Jul 21 21:54:53 UTC 2017
Enable this test to run on more system configurations.
Suggested-by: Ian Romanick <idr at freedesktop.org>
Signed-off-by: Nanley Chery <nanley.g.chery at intel.com>
---
tests/texturing/s3tc-targeted.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/texturing/s3tc-targeted.c b/tests/texturing/s3tc-targeted.c
index 179ea27af..c8e3f4bde 100644
--- a/tests/texturing/s3tc-targeted.c
+++ b/tests/texturing/s3tc-targeted.c
@@ -35,8 +35,8 @@
PIGLIT_GL_TEST_CONFIG_BEGIN
- /* We need OpenGL 1.3 for the *TexImage* functions used in this file. */
- config.supports_gl_compat_version = 13;
+ /* We need OpenGL 1.1 for GL_EXT_texture_compression_s3tc */
+ config.supports_gl_compat_version = 11;
config.requires_displayed_window = false;
PIGLIT_GL_TEST_CONFIG_END
@@ -46,8 +46,8 @@ test_block(GLenum internal_fmt, const char * base_fmt_str,
const uint8_t * dxt1_block, uint16_t expected_result)
{
/* Upload the DXT1 block. */
- glCompressedTexImage2D(GL_TEXTURE_2D, 0, internal_fmt, 1, 1, 0,
- 8 /* 64 bits */, dxt1_block);
+ glCompressedTexImage2DARB(GL_TEXTURE_2D, 0, internal_fmt, 1, 1, 0,
+ 8 /* 64 bits */, dxt1_block);
/* Decompress the only defined pixel in the DXT1 block. */
uint16_t actual_pixel = 0xBEEF;
--
2.13.3
More information about the Piglit
mailing list