Mesa (master): gallium: fix unused cap warnings in drivers for cube map array cap.

Dave Airlie airlied at kemper.freedesktop.org
Fri Nov 9 20:45:33 UTC 2012


Module: Mesa
Branch: master
Commit: add3a0709f3965107bb13d5305d80a225275c344
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=add3a0709f3965107bb13d5305d80a225275c344

Author: Dave Airlie <airlied at redhat.com>
Date:   Sat Nov 10 06:34:14 2012 +1000

gallium: fix unused cap warnings in drivers for cube map array cap.

Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/gallium/drivers/llvmpipe/lp_screen.c |    1 +
 src/gallium/drivers/r300/r300_screen.c   |    1 +
 src/gallium/drivers/svga/svga_screen.c   |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index 19ffd4e..e81c441 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -213,6 +213,7 @@ llvmpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_QUERY_TIMESTAMP:
    case PIPE_CAP_TEXTURE_MULTISAMPLE:
    case PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT:
+   case PIPE_CAP_CUBE_MAP_ARRAY:
       return 0;
    }
    /* should only get here on unhandled cases */
diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c
index 36b5dc7..80f9afc 100644
--- a/src/gallium/drivers/r300/r300_screen.c
+++ b/src/gallium/drivers/r300/r300_screen.c
@@ -153,6 +153,7 @@ static int r300_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
         case PIPE_CAP_START_INSTANCE:
         case PIPE_CAP_QUERY_TIMESTAMP:
         case PIPE_CAP_TEXTURE_MULTISAMPLE:
+        case PIPE_CAP_CUBE_MAP_ARRAY:
             return 0;
 
         /* SWTCL-only features. */
diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c
index e2ca188..959c273 100644
--- a/src/gallium/drivers/svga/svga_screen.c
+++ b/src/gallium/drivers/svga/svga_screen.c
@@ -257,6 +257,7 @@ svga_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_QUERY_TIMESTAMP:
    case PIPE_CAP_TEXTURE_MULTISAMPLE:
    case PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT:
+   case PIPE_CAP_CUBE_MAP_ARRAY:
       return 0;
    case PIPE_CAP_VERTEX_ELEMENT_SRC_OFFSET_4BYTE_ALIGNED_ONLY:
       return 1;




More information about the mesa-commit mailing list