From: Luca Barbieri Date: Mon, 22 Feb 2010 13:13:17 +0000 (+0100) Subject: nvfx: fix quads drawing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e1580ce4c9ec1175296504c0ae9f26d9d8e0e635;p=mesa.git nvfx: fix quads drawing The primitive splitting code is totally broken and will be rewritten. Fix the most important bug now though. --- 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: