diff options
author | Patrice Mandin <[email protected]> | 2008-03-17 19:03:38 +0100 |
---|---|---|
committer | Patrice Mandin <[email protected]> | 2008-03-17 19:03:38 +0100 |
commit | 3394ba65b10a1ec01345c37b7888e18dcfdbe808 (patch) | |
tree | 7ca3b838f18cf05a3c310d5fb30990960bd59d6e | |
parent | a33da10b6c999a8ea348789ea13d2147f117a722 (diff) |
nv30: another 2 rt, and set viewport tx origin, so we render at the proper place \o/
-rw-r--r-- | src/gallium/drivers/nv30/nv30_state.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv30/nv30_state.c b/src/gallium/drivers/nv30/nv30_state.c index 80dfd9c5c0a..b0055892aeb 100644 --- a/src/gallium/drivers/nv30/nv30_state.c +++ b/src/gallium/drivers/nv30/nv30_state.c @@ -565,7 +565,7 @@ nv30_set_framebuffer_state(struct pipe_context *pipe, const struct pipe_framebuffer_state *fb) { struct nv30_context *nv30 = nv30_context(pipe); - struct pipe_surface *rt[4], *zeta = NULL; + struct pipe_surface *rt[2], *zeta = NULL; uint32_t rt_enable, rt_format, w = 0, h = 0; int i, colour_format = 0, zeta_format = 0; @@ -667,6 +667,8 @@ nv30_set_framebuffer_state(struct pipe_context *pipe, BEGIN_RING(rankine, NV34TCL_VIEWPORT_CLIP_HORIZ(0), 2); OUT_RING (((w - 1) << 16) | 0); OUT_RING (((h - 1) << 16) | 0); + BEGIN_RING(rankine, NV34TCL_VIEWPORT_TX_ORIGIN, 1); + OUT_RING (0); } static void |