nv50: vpt translate/scale backwards
authorBen Skeggs <skeggsb@gmail.com>
Tue, 24 Jun 2008 19:11:46 +0000 (05:11 +1000)
committerBen Skeggs <skeggsb@gmail.com>
Sun, 29 Jun 2008 05:46:53 +0000 (15:46 +1000)
src/gallium/drivers/nv50/nv50_state_validate.c

index f5c734699fc21a6279f78a608e2b9636707ccb6f..eba13f8e621b7822f930edbce461df88e95e20dd 100644 (file)
@@ -229,11 +229,11 @@ scissor_uptodate:
 
        if (nv50->dirty & NV50_NEW_VIEWPORT) {
                so = so_new(8, 0);
-               so_method(so, tesla, NV50TCL_VIEWPORT_UNK0(0), 3);
+               so_method(so, tesla, NV50TCL_VIEWPORT_UNK1(0), 3);
                so_data  (so, fui(nv50->viewport.translate[0]));
                so_data  (so, fui(nv50->viewport.translate[1]));
                so_data  (so, fui(nv50->viewport.translate[2]));
-               so_method(so, tesla, NV50TCL_VIEWPORT_UNK1(0), 3);
+               so_method(so, tesla, NV50TCL_VIEWPORT_UNK0(0), 3);
                so_data  (so, fui(nv50->viewport.scale[0]));
                so_data  (so, fui(-nv50->viewport.scale[1]));
                so_data  (so, fui(nv50->viewport.scale[2]));