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 dbd8bf3..0e912e7 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);
        }