summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorLuca Barbieri <[email protected]>2010-02-22 14:13:17 +0100
committerYounes Manton <[email protected]>2010-03-15 00:03:04 -0400
commite1580ce4c9ec1175296504c0ae9f26d9d8e0e635 (patch)
tree4e7a761c199966b6f69a11704f691751d3b9b331 /src/gallium
parent0192a4a825d3d04b1588bdabad629a9888f325d6 (diff)
nvfx: fix quads drawing
The primitive splitting code is totally broken and will be rewritten. Fix the most important bug now though.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/nouveau/nouveau_util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_util.h b/src/gallium/drivers/nouveau/nouveau_util.h
index 7f16e31c3f0..ab7761a31da 100644
--- a/src/gallium/drivers/nouveau/nouveau_util.h
+++ b/src/gallium/drivers/nouveau/nouveau_util.h
@@ -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: