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 9644dbd168f2ac0373244f3b70f5a18588e6a20f..12f98c32f539fbf57db590174c770ee795ed7881 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 9a016d326f0709a668555776781786f54a025759..6bfac581f9fad0fa2cab5e29d8b0a068d1f103c3 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