summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/nv50_screen.c
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2009-08-14 18:06:24 +0200
committerChristoph Bumiller <[email protected]>2009-08-14 18:06:24 +0200
commit74e8b1a30b82c89c70048cfcc1f12e1ceebfd628 (patch)
treefaf0545c33b99f77b76dbfb28bc3d5227b91f31b /src/gallium/drivers/nv50/nv50_screen.c
parentc3f9c2eb75f6f07f8b2b98a96b0ddac24a6fa612 (diff)
nv50: make use of the y-origin switch
Now that we know how to make the hardware have y-coordinate origin top, we can get rid of all the inversion introduced earlier.
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_screen.c')
-rw-r--r--src/gallium/drivers/nv50/nv50_screen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/nv50_screen.c b/src/gallium/drivers/nv50/nv50_screen.c
index 0f6b1aed96c..e13536e84a0 100644
--- a/src/gallium/drivers/nv50/nv50_screen.c
+++ b/src/gallium/drivers/nv50/nv50_screen.c
@@ -291,8 +291,9 @@ nv50_screen_create(struct pipe_winsys *ws, struct nouveau_device *dev)
so_method(so, screen->tesla, 0x13bc, 1);
so_data (so, 0x54);
+ /* origin is top left (set to 1 for bottom left) */
so_method(so, screen->tesla, 0x13ac, 1);
- so_data (so, 1);
+ so_data (so, 0);
so_method(so, screen->tesla, 0x16b8, 1);
so_data (so, 8);