nouveau:nv10: fix setting clip region
authorPatrice Mandin <patrice@manoir.racoon.city>
Mon, 15 Jan 2007 17:58:24 +0000 (18:58 +0100)
committerPatrice Mandin <patrice@manoir.racoon.city>
Mon, 15 Jan 2007 17:58:24 +0000 (18:58 +0100)
src/mesa/drivers/dri/nouveau/nv10_state.c

index dbd8bf306e45f055ae2e922f8a30c5af1f9b14e9..0e912e73ffe30bb24d432358e5c59b1e8e431e93 100644 (file)
@@ -618,8 +618,10 @@ static void nv10WindowMoved(nouveauContextPtr nmesa)
         OUT_RING_CACHE(((h+y) << 16) | y | 0x800);
        for (i=1; i<7; i++) {
                BEGIN_RING_CACHE(NvSub3D,
-                     NV10_TCL_PRIMITIVE_3D_VIEWPORT_CLIP_HORIZ(i), 2);
+                     NV10_TCL_PRIMITIVE_3D_VIEWPORT_CLIP_HORIZ(i), 1);
                OUT_RING_CACHE(0);
+               BEGIN_RING_CACHE(NvSub3D,
+                     NV10_TCL_PRIMITIVE_3D_VIEWPORT_CLIP_VERT(i), 1);
                OUT_RING_CACHE(0);
        }