nv20: Fix build for the last nouveau_class.h changes.
authorFrancisco Jerez <currojerez@riseup.net>
Sun, 15 Nov 2009 13:49:02 +0000 (14:49 +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/nv20/nv20_context.c

index 9a48739661ba90efbbd0513f5ebc6ad3a14b5c7a..276db8b57b695886cd74373edd5eb16fc1c275ae 100644 (file)
@@ -360,13 +360,13 @@ static void nv20_init_hwctx(struct nv20_context *nv20)
        OUT_RINGf (0.0);
        OUT_RINGf (16777216.0); /* [0, 1] scaled approx to [0, 2^24] */
 
-       BEGIN_RING(kelvin, NV20TCL_VIEWPORT_SCALE0_X, 4);
+       BEGIN_RING(kelvin, NV20TCL_VIEWPORT_TRANSLATE_X, 4);
        OUT_RINGf (0.0); /* x-offset, w/2 + 1.031250 */
        OUT_RINGf (0.0); /* y-offset, h/2 + 0.030762 */
        OUT_RINGf (0.0);
        OUT_RINGf (16777215.0);
 
-       BEGIN_RING(kelvin, NV20TCL_VIEWPORT_SCALE1_X, 4);
+       BEGIN_RING(kelvin, NV20TCL_VIEWPORT_SCALE_X, 4);
        OUT_RINGf (0.0); /* no effect?, w/2 */
        OUT_RINGf (0.0); /* no effect?, h/2 */
        OUT_RINGf (16777215.0 * 0.5);