nv10: Fix build for the last nouveau_class.h changes.
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 5 Nov 2009 18:07:19 +0000 (19:07 +0100)
committerPekka Paalanen <pq@iki.fi>
Sun, 15 Nov 2009 16:20:19 +0000 (18:20 +0200)
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Pekka Paalanen <pq@iki.fi>
src/gallium/drivers/nv10/nv10_context.c
src/gallium/drivers/nv10/nv10_prim_vbuf.c

index 933176fc32adf2c3c245346b372d66eb149b35c6..65a22b175e11ee373970c984aacf131cb91c6ede 100644 (file)
@@ -243,7 +243,7 @@ static void nv10_init_hwctx(struct nv10_context *nv10)
        OUT_RING  (0.0);
        OUT_RINGf  (16777216.0);
 
-       BEGIN_RING(celsius, NV10TCL_VIEWPORT_SCALE_X, 4);
+       BEGIN_RING(celsius, NV10TCL_VIEWPORT_TRANSLATE_X, 4);
        OUT_RINGf  (-2048.0);
        OUT_RINGf  (-2048.0);
        OUT_RINGf  (16777215.0 * 0.5);
index 1806d5f8ccc3ac17cbe97d0bd1fb4d470bf22d6d..7ba9777a222b6724cc2f20a27670bcad8012d9f7 100644 (file)
@@ -69,9 +69,9 @@ void nv10_vtxbuf_bind( struct nv10_context* nv10 )
 {
        int i;
        for(i = 0; i < 8; i++) {
-               BEGIN_RING(celsius, NV10TCL_VERTEX_ARRAY_ATTRIB_OFFSET(i), 1);
+               BEGIN_RING(celsius, NV10TCL_VTXBUF_ADDRESS(i), 1);
                OUT_RING(0/*nv10->vtxbuf*/);
-               BEGIN_RING(celsius, NV10TCL_VERTEX_ARRAY_ATTRIB_FORMAT(i) ,1);
+               BEGIN_RING(celsius, NV10TCL_VTXFMT(i), 1);
                OUT_RING(0/*XXX*/);
        }
 }