gallium: Deprecate PIPE_CAP_S3TC.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 16 Sep 2009 13:31:14 +0000 (14:31 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 16 Sep 2009 13:33:52 +0000 (14:33 +0100)
No longer used. S3TC support is queried via
pipe_screen::is_format_supported.

13 files changed:
src/gallium/drivers/cell/ppu/cell_screen.c
src/gallium/drivers/i915simple/i915_screen.c
src/gallium/drivers/i965simple/brw_screen.c
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/nv04/nv04_screen.c
src/gallium/drivers/nv10/nv10_screen.c
src/gallium/drivers/nv20/nv20_screen.c
src/gallium/drivers/nv30/nv30_screen.c
src/gallium/drivers/nv40/nv40_screen.c
src/gallium/drivers/nv50/nv50_screen.c
src/gallium/drivers/r300/r300_screen.c
src/gallium/drivers/softpipe/sp_screen.c
src/gallium/include/pipe/p_defines.h

index bd48ce7005081ee637a68aeeb9f2e858e0f4333a..9161747fdbf97e532094523726687b87e8529061 100644 (file)
@@ -64,8 +64,6 @@ cell_get_param(struct pipe_screen *screen, int param)
       return 1;
    case PIPE_CAP_GLSL:
       return 1;
-   case PIPE_CAP_S3TC:
-      return 0;
    case PIPE_CAP_ANISOTROPIC_FILTER:
       return 0;
    case PIPE_CAP_POINT_SPRITE:
index 9f017a14cca07595e55b6c80055e8cd472df454a..a1dd43c1bccd6b7af2a74ba9b9565b5d12a0f53d 100644 (file)
@@ -101,8 +101,6 @@ i915_get_param(struct pipe_screen *screen, int param)
       return 1;
    case PIPE_CAP_GLSL:
       return 0;
-   case PIPE_CAP_S3TC:
-      return 0;
    case PIPE_CAP_ANISOTROPIC_FILTER:
       return 0;
    case PIPE_CAP_POINT_SPRITE:
index b22e105f10665433ad8b6ae06d7cdc123c611545..fb68fd624b3ad498573c5da8ad499f01cb60cb81 100644 (file)
@@ -85,8 +85,6 @@ brw_get_param(struct pipe_screen *screen, int param)
       return 1;
    case PIPE_CAP_GLSL:
       return 0;
-   case PIPE_CAP_S3TC:
-      return 0;
    case PIPE_CAP_ANISOTROPIC_FILTER:
       return 0;
    case PIPE_CAP_POINT_SPRITE:
index 0ce1a37bd47c997e01579a2e2da755ab8d09166d..ff7ef8658a9a912d6a4b4b61405fecde1f84b72f 100644 (file)
@@ -65,8 +65,6 @@ llvmpipe_get_param(struct pipe_screen *screen, int param)
       return 1;
    case PIPE_CAP_GLSL:
       return 1;
-   case PIPE_CAP_S3TC:
-      return 0;
    case PIPE_CAP_ANISOTROPIC_FILTER:
       return 0;
    case PIPE_CAP_POINT_SPRITE:
index ff2febb668e253662d4d0ee0b653ac3b12ec3017..170ce3eb7e54846b7c6f8ac856e192b909f490ee 100644 (file)
@@ -16,8 +16,6 @@ nv04_screen_get_param(struct pipe_screen *screen, int param)
                return 0;
        case PIPE_CAP_GLSL:
                return 0;
-       case PIPE_CAP_S3TC:
-               return 0;
        case PIPE_CAP_ANISOTROPIC_FILTER:
                return 0;
        case PIPE_CAP_POINT_SPRITE:
index 4469b22d91a8c9996a1b308e022450e1947f7c01..ee5901e743e54554a5d276439ccdc4a617878d47 100644 (file)
@@ -15,8 +15,6 @@ nv10_screen_get_param(struct pipe_screen *screen, int param)
                return 0;
        case PIPE_CAP_GLSL:
                return 0;
-       case PIPE_CAP_S3TC:
-               return 0;
        case PIPE_CAP_ANISOTROPIC_FILTER:
                return 1;
        case PIPE_CAP_POINT_SPRITE:
index e6924ad71ebea4e06a4ec148e0f70ee7e0e69ed9..4eeacd1afd56661debacfc33078fab2fa32cde13 100644 (file)
@@ -15,8 +15,6 @@ nv20_screen_get_param(struct pipe_screen *screen, int param)
                return 0;
        case PIPE_CAP_GLSL:
                return 0;
-       case PIPE_CAP_S3TC:
-               return 0;
        case PIPE_CAP_ANISOTROPIC_FILTER:
                return 1;
        case PIPE_CAP_POINT_SPRITE:
index f8285e4455fe6c64e9d99d3aed2cfa652551b518..41af38450b5f5498997496e4a4db9adb346980d0 100644 (file)
@@ -22,8 +22,6 @@ nv30_screen_get_param(struct pipe_screen *pscreen, int param)
                return 1;
        case PIPE_CAP_GLSL:
                return 0;
-       case PIPE_CAP_S3TC:
-               return 0;
        case PIPE_CAP_ANISOTROPIC_FILTER:
                return 1;
        case PIPE_CAP_POINT_SPRITE:
index 5d2a4216c5a7e1d29802b4fe6304debacca861cf..bd13dfddd1c459b86f90d13a389762b9cd96e6f3 100644 (file)
@@ -21,8 +21,6 @@ nv40_screen_get_param(struct pipe_screen *pscreen, int param)
                return 1;
        case PIPE_CAP_GLSL:
                return 0;
-       case PIPE_CAP_S3TC:
-               return 1;
        case PIPE_CAP_ANISOTROPIC_FILTER:
                return 1;
        case PIPE_CAP_POINT_SPRITE:
index 7adaaaa135b5b44695b2b8e762ccba8a0ee2ab82..3b08e1b89fbb1ed0f43f3b0b97296fb5f1787aa7 100644 (file)
@@ -87,8 +87,6 @@ nv50_screen_get_param(struct pipe_screen *pscreen, int param)
                return 1;
        case PIPE_CAP_GLSL:
                return 0;
-       case PIPE_CAP_S3TC:
-               return 1;
        case PIPE_CAP_ANISOTROPIC_FILTER:
                return 1;
        case PIPE_CAP_POINT_SPRITE:
index 593178c50be1d57f0bafefdf080d19d536af0d2a..3b5b1bbd37f931acefe84f8b64243f458c55ca33 100644 (file)
@@ -93,8 +93,6 @@ static int r300_get_param(struct pipe_screen* pscreen, int param)
             } else {
                 return 0;
             }
-        case PIPE_CAP_S3TC:
-            return 1;
         case PIPE_CAP_ANISOTROPIC_FILTER:
             return 1;
         case PIPE_CAP_POINT_SPRITE:
index da97e7ac04b54bca77c1b7e0c9e99691f5c30a4f..ce7701841580794af95c3bebc8806b3d443e92a9 100644 (file)
@@ -65,8 +65,6 @@ softpipe_get_param(struct pipe_screen *screen, int param)
       return 1;
    case PIPE_CAP_GLSL:
       return 1;
-   case PIPE_CAP_S3TC:
-      return 0;
    case PIPE_CAP_ANISOTROPIC_FILTER:
       return 0;
    case PIPE_CAP_POINT_SPRITE:
index b01ab6d137c9fe0ffdc924057fd03414edfedc42..f252d6df00d1c71b998dab1577cc46b8f64dce76 100644 (file)
@@ -281,7 +281,7 @@ enum pipe_transfer_usage {
 #define PIPE_CAP_NPOT_TEXTURES           2
 #define PIPE_CAP_TWO_SIDED_STENCIL       3
 #define PIPE_CAP_GLSL                    4  /* XXX need something better */
-#define PIPE_CAP_S3TC                    5
+#define PIPE_CAP_S3TC                    5  /* XXX: deprecated; cap determined via supported sampler formats */
 #define PIPE_CAP_ANISOTROPIC_FILTER      6
 #define PIPE_CAP_POINT_SPRITE            7
 #define PIPE_CAP_MAX_RENDER_TARGETS      8