Mesa (master): llvmpipe: return 0 for PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS query

Brian Paul brianp at kemper.freedesktop.org
Wed Dec 2 11:25:10 PST 2009


Module: Mesa
Branch: master
Commit: f42192e783521f49a7caab09b073740e63ab092b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f42192e783521f49a7caab09b073740e63ab092b

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Dec  2 12:19:31 2009 -0700

llvmpipe: return 0 for PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS query

The driver (and draw module) don't support vertex shader textures yet.

---

 src/gallium/drivers/llvmpipe/lp_screen.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index 0fb1334..a6ecaa0 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -59,7 +59,7 @@ llvmpipe_get_param(struct pipe_screen *screen, int param)
    case PIPE_CAP_MAX_TEXTURE_IMAGE_UNITS:
       return PIPE_MAX_SAMPLERS;
    case PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS:
-      return PIPE_MAX_SAMPLERS;
+      return 0;
    case PIPE_CAP_NPOT_TEXTURES:
       return 1;
    case PIPE_CAP_TWO_SIDED_STENCIL:



More information about the mesa-commit mailing list