softpipe: increase number of texture samplers/units to PIPE_MAX_SAMPLERS (16)
authorBrian Paul <brianp@vmware.com>
Fri, 2 Jan 2009 23:55:33 +0000 (16:55 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 2 Jan 2009 23:55:33 +0000 (16:55 -0700)
src/gallium/drivers/softpipe/sp_screen.c

index 12f98c32f539fbf57db590174c770ee795ed7881..11b08b3a82d389c4f39b77e42747331803ae8be2 100644 (file)
@@ -55,9 +55,9 @@ softpipe_get_param(struct pipe_screen *screen, int param)
 {
    switch (param) {
    case PIPE_CAP_MAX_TEXTURE_IMAGE_UNITS:
-      return 8;
+      return PIPE_MAX_SAMPLERS;
    case PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS:
-      return 8;
+      return PIPE_MAX_SAMPLERS;
    case PIPE_CAP_NPOT_TEXTURES:
       return 1;
    case PIPE_CAP_TWO_SIDED_STENCIL: