nvfx: fix quads drawing
authorLuca Barbieri <luca@luca-barbieri.com>
Mon, 22 Feb 2010 13:13:17 +0000 (14:13 +0100)
committerYounes Manton <younes.m@gmail.com>
Mon, 15 Mar 2010 04:03:04 +0000 (00:03 -0400)
The primitive splitting code is totally broken and will be rewritten.

Fix the most important bug now though.

src/gallium/drivers/nouveau/nouveau_util.h

index 7f16e31c3f0838b706edb0e4f8216a2ae2ba2309..ab7761a31da85b9e53e14bac86a65a5c93ecbb05 100644 (file)
@@ -33,7 +33,7 @@ nouveau_vbuf_split(unsigned remaining, unsigned overhead, unsigned vpp,
                max = max - (max % 3);
                break;
        case PIPE_PRIM_QUADS:
-               max = max & 3;
+               max = max & ~3;
                break;
        case PIPE_PRIM_LINE_LOOP:
        case PIPE_PRIM_LINE_STRIP: