gallium: added PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS query
authorBrian <brian.paul@tungstengraphics.com>
Wed, 3 Dec 2008 05:36:27 +0000 (22:36 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 4 Dec 2008 16:58:54 +0000 (09:58 -0700)
src/gallium/drivers/softpipe/sp_screen.c
src/gallium/include/pipe/p_defines.h

index 9644dbd..12f98c3 100644 (file)
@@ -56,6 +56,8 @@ softpipe_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 8;
    case PIPE_CAP_NPOT_TEXTURES:
       return 1;
    case PIPE_CAP_TWO_SIDED_STENCIL:
index 9a016d3..6bfac58 100644 (file)
@@ -294,6 +294,7 @@ enum pipe_texture_target {
 #define PIPE_CAP_GUARD_BAND_BOTTOM       23  /*< float */
 #define PIPE_CAP_TEXTURE_MIRROR_CLAMP    24
 #define PIPE_CAP_TEXTURE_MIRROR_REPEAT   25
+#define PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS 26