projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a33da10
)
nv30: another 2 rt, and set viewport tx origin, so we render at the proper place \o/
author
Patrice Mandin
<pmandin@caramail.com>
Mon, 17 Mar 2008 18:03:38 +0000
(19:03 +0100)
committer
Patrice Mandin
<pmandin@caramail.com>
Mon, 17 Mar 2008 18:03:38 +0000
(19:03 +0100)
src/gallium/drivers/nv30/nv30_state.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nv30/nv30_state.c
b/src/gallium/drivers/nv30/nv30_state.c
index 80dfd9c5c0a77cc85cda9fe875f7232b7aa7735f..b0055892aeb7761dd3deadef6ae1a0498b226ad5 100644
(file)
--- 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