gallium: fix unused cap warnings in drivers for cube map array cap.
authorDave Airlie <airlied@redhat.com>
Fri, 9 Nov 2012 20:34:14 +0000 (06:34 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 9 Nov 2012 20:39:38 +0000 (06:39 +1000)
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/r300/r300_screen.c
src/gallium/drivers/svga/svga_screen.c

index 19ffd4ee9aee2a76f19bb0b0481a9053f321661a..e81c44151bbd69de3377964cc27d7ea21b870568 100644 (file)
@@ -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 */
index 36b5dc78db93d10af8fe8c3bb69cf59a187c9754..80f9afc6134b7846893a1e3a72f17a74898a58e6 100644 (file)
@@ -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. */
index e2ca188b551a23d822f7cb4556b333f04d8ae89f..959c2731cbd4a3cdf710e14a4857581671a78ebc 100644 (file)
@@ -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;