i915g: added missing texture cap queries
authorBrian Paul <brianp@vmware.com>
Mon, 22 Feb 2010 15:14:05 +0000 (08:14 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 22 Feb 2010 15:14:05 +0000 (08:14 -0700)
src/gallium/drivers/i915/i915_screen.c

index c450854c9828d1516c611c7f627a22e529be3ba8..b1d754dc4ebafeed3901eda34eaf0b45ecc53c48 100644 (file)
@@ -95,6 +95,10 @@ i915_get_param(struct pipe_screen *screen, int param)
    switch (param) {
    case PIPE_CAP_MAX_TEXTURE_IMAGE_UNITS:
       return 8;
+   case PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS:
+      return 0;
+   case PIPE_CAP_MAX_COMBINED_SAMPLERS:
+      return 8;
    case PIPE_CAP_NPOT_TEXTURES:
       return 1;
    case PIPE_CAP_TWO_SIDED_STENCIL: