mesa: Never advertise _S3TC compressed formats
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 19 Aug 2013 21:27:31 +0000 (14:27 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 21 Aug 2013 14:48:31 +0000 (07:48 -0700)
The NVIDIA driver doesn't expose them, and piglit's
arb_texture_compression-invalid-formats expects them to not be there.

This, with the previous commit, fixes piglit
arb_texture_compression-invalid-formats.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Cc: "9.2" <mesa-stable@lists.freedesktop.org>
src/mesa/main/texcompress.c

index 334ea4068d921bf6ffd020fb6ee99727174dd4e7..e71d0c411da3ba5b6662b8403713364204d8b803 100644 (file)
@@ -264,18 +264,6 @@ _mesa_get_compressed_formats(struct gl_context *ctx, GLint *formats)
          n += 3;
       }
    }
-   if (_mesa_is_desktop_gl(ctx)
-       && ctx->Extensions.ANGLE_texture_compression_dxt) {
-      if (formats) {
-         formats[n++] = GL_RGB_S3TC;
-         formats[n++] = GL_RGB4_S3TC;
-         formats[n++] = GL_RGBA_S3TC;
-         formats[n++] = GL_RGBA4_S3TC;
-      }
-      else {
-         n += 4;
-      }
-   }
 
    /* The GL_OES_compressed_ETC1_RGB8_texture spec says:
     *