nouveau: nv10,20: wrong viewport clip setup
authorPatrice Mandin <pmandin@caramail.com>
Fri, 16 Feb 2007 21:39:12 +0000 (22:39 +0100)
committerPatrice Mandin <pmandin@caramail.com>
Fri, 16 Feb 2007 21:39:12 +0000 (22:39 +0100)
src/mesa/drivers/dri/nouveau/nv10_state.c
src/mesa/drivers/dri/nouveau/nv20_state.c

index cc0f5a7220ba9b22caddf2e77a74d77249c3c07c..e0475bb3da0d55663553e9dc69955a27ed2854fb 100644 (file)
@@ -658,8 +658,10 @@ static void nv10WindowMoved(nouveauContextPtr nmesa)
        OUT_RING(0);
 
        BEGIN_RING_CACHE(NvSub3D,
-             NV10_TCL_PRIMITIVE_3D_VIEWPORT_CLIP_HORIZ(0), 2);
+             NV10_TCL_PRIMITIVE_3D_VIEWPORT_CLIP_HORIZ(0), 1);
         OUT_RING_CACHE(((w+x-1) << 16) | x | 0x08000800);
+       BEGIN_RING_CACHE(NvSub3D,
+             NV10_TCL_PRIMITIVE_3D_VIEWPORT_CLIP_VERT(0), 1);
         OUT_RING_CACHE(((h+y-1) << 16) | y | 0x08000800);
        for (i=1; i<8; i++) {
                BEGIN_RING_CACHE(NvSub3D,
index 417590d7298a7ea4a78c00d0e3160f7b04f3fe50..030713c0dbb0103cc3ff85e632a85cf328799e82 100644 (file)
@@ -642,8 +642,10 @@ static void nv20WindowMoved(nouveauContextPtr nmesa)
        OUT_RING(0);
 
        BEGIN_RING_CACHE(NvSub3D,
-             NV20_TCL_PRIMITIVE_3D_VIEWPORT_CLIP_HORIZ(0), 2);
+             NV20_TCL_PRIMITIVE_3D_VIEWPORT_CLIP_HORIZ(0), 1);
         OUT_RING_CACHE((4095 << 16) | 0);
+       BEGIN_RING_CACHE(NvSub3D,
+             NV20_TCL_PRIMITIVE_3D_VIEWPORT_CLIP_VERT(0), 1);
         OUT_RING_CACHE((4095 << 16) | 0);
        for (i=1; i<8; i++) {
                BEGIN_RING_CACHE(NvSub3D,