gallium drivers: report that user vertex buffers are supported
authorMarek Olšák <maraeo@gmail.com>
Wed, 11 Apr 2012 13:40:00 +0000 (15:40 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 23 Apr 2012 23:39:21 +0000 (01:39 +0200)
src/gallium/drivers/i915/i915_screen.c
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/nv30/nv30_screen.c
src/gallium/drivers/nv50/nv50_screen.c
src/gallium/drivers/nvc0/nvc0_screen.c
src/gallium/drivers/softpipe/sp_screen.c
src/gallium/drivers/svga/svga_screen.c

index 9703210e933bc960d1400b44547b3f78419b09df..b147e61bf464939ce045da6977858009b01e8a59 100644 (file)
@@ -180,6 +180,7 @@ i915_get_param(struct pipe_screen *screen, enum pipe_cap cap)
    case PIPE_CAP_BLEND_EQUATION_SEPARATE:
    case PIPE_CAP_TGSI_INSTANCEID:
    case PIPE_CAP_VERTEX_COLOR_CLAMPED:
+   case PIPE_CAP_USER_VERTEX_BUFFERS:
       return 1;
 
    /* Unsupported features (boolean caps). */
index 7f0f17ed784682638511ee9f292674e73404b797..3e0808d61da5723ea20e066fb711c45fd87e9381 100644 (file)
@@ -159,6 +159,8 @@ llvmpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
       return 1;
    case PIPE_CAP_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION:
       return 0;
+   case PIPE_CAP_USER_VERTEX_BUFFERS:
+      return 1;
    default:
       return 0;
    }
index 4f4813859cbbbba4f4fc752d3341076ce4ccd765..158fef5a80c7214e53b2cfe2d819919997f1914b 100644 (file)
@@ -78,6 +78,7 @@ nv30_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_TGSI_FS_COORD_ORIGIN_LOWER_LEFT:
    case PIPE_CAP_TGSI_FS_COORD_PIXEL_CENTER_HALF_INTEGER:
    case PIPE_CAP_TGSI_FS_COORD_PIXEL_CENTER_INTEGER:
+   case PIPE_CAP_USER_VERTEX_BUFFERS:
       return 1;
    /* nv4x capabilities */
    case PIPE_CAP_BLEND_EQUATION_SEPARATE:
index e8118d70ca75044084c98cf9086c27837b8f78d8..a62c4b1e518d5262b775e26198e6d630260ca5b8 100644 (file)
@@ -150,6 +150,8 @@ nv50_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_TGSI_CAN_COMPACT_VARYINGS:
    case PIPE_CAP_TGSI_CAN_COMPACT_CONSTANTS:
       return 0; /* state trackers will know better */
+   case PIPE_CAP_USER_VERTEX_BUFFERS:
+      return 1;
    default:
       NOUVEAU_ERR("unknown PIPE_CAP %d\n", param);
       return 0;
index eb8a9c5a0e055159c9bafd5bce22432f69aa7fbe..2f60a64e42e6a68c823287855af30c8b507ae29e 100644 (file)
@@ -140,6 +140,8 @@ nvc0_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_TGSI_CAN_COMPACT_VARYINGS:
    case PIPE_CAP_TGSI_CAN_COMPACT_CONSTANTS:
       return 0; /* state trackers will know better */
+   case PIPE_CAP_USER_VERTEX_BUFFERS:
+      return 1;
    default:
       NOUVEAU_ERR("unknown PIPE_CAP %d\n", param);
       return 0;
index 25153afaf40eab8a8157d5afe70aa08e0e7ef9b5..28fda94060d7ecd6d5abe72c00ac5fc2ef9431bf 100644 (file)
@@ -138,6 +138,8 @@ softpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
       return 130;
    case PIPE_CAP_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION:
       return 0;
+   case PIPE_CAP_USER_VERTEX_BUFFERS:
+      return 1;
    default:
       return 0;
    }
index 7ac810dc3470edf20aef9db053ffdcb6527e657c..0db2dd37fe56216ccd886afa700598000c07fd79 100644 (file)
@@ -160,6 +160,8 @@ svga_get_param(struct pipe_screen *screen, enum pipe_cap param)
       return 1;
    case PIPE_CAP_TEXTURE_SWIZZLE:
       return 1;
+   case PIPE_CAP_USER_VERTEX_BUFFERS:
+      return 1;
 
    case PIPE_CAP_MAX_TEXTURE_2D_LEVELS:
       {