summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNanley Chery <nanley.g.chery@intel.com>2017-07-21 14:43:04 -0700
committerNanley Chery <nanley.g.chery@intel.com>2018-03-05 14:18:18 -0800
commit6be0d12376ac45de8659f725b06c20787052ae6f (patch)
tree091aaf148c4390f69384e71331cceb5bc29ae56d
parentb8e7cc0e59cf21fe5f98a2d8280cf9a03d02f542 (diff)
s3tc-targeted: Reduce requirements to the minimal set
Enable this test to run on more system configurations. Suggested-by: Ian Romanick <idr@freedesktop.org> Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
-rw-r--r--tests/texturing/s3tc-targeted.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/texturing/s3tc-targeted.c b/tests/texturing/s3tc-targeted.c
index ef0eaf5eb..b18bf858b 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;
config.khr_no_error_support = PIGLIT_NO_ERRORS;
@@ -47,8 +47,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;