From: Ben Skeggs Date: Thu, 26 Apr 2012 23:26:13 +0000 (+1000) Subject: nv30: properly init window information X-Git-Tag: 062012170305~580 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9856fd02a0d6f7314ed580aea4e354a49f3b013f;p=profile%2Fivi%2Fmesa.git nv30: properly init window information Should fix >2k rendering issues reported on nv4x. Signed-off-by: Ben Skeggs --- diff --git a/src/gallium/drivers/nv30/nv30_screen.c b/src/gallium/drivers/nv30/nv30_screen.c index 158fef5..d355f74 100644 --- a/src/gallium/drivers/nv30/nv30_screen.c +++ b/src/gallium/drivers/nv30/nv30_screen.c @@ -454,8 +454,6 @@ nv30_screen_create(struct nouveau_device *dev) PUSH_DATA (push, screen->query->handle); /* QUERY - intr 0x80 if nullobj */ PUSH_DATA (push, screen->null->handle); /* UNK1AC */ PUSH_DATA (push, screen->null->handle); /* UNK1B0 */ - BEGIN_NV04(push, NV30_3D(VIEWPORT_CLIP_MODE), 1); - PUSH_DATA (push, 0); if (screen->eng3d->oclass < NV40_3D_CLASS) { BEGIN_NV04(push, SUBC_3D(0x03b0), 1); PUSH_DATA (push, 0x00100000); diff --git a/src/gallium/drivers/nv30/nv30_state_validate.c b/src/gallium/drivers/nv30/nv30_state_validate.c index df0170b..ae7955b 100644 --- a/src/gallium/drivers/nv30/nv30_state_validate.c +++ b/src/gallium/drivers/nv30/nv30_state_validate.c @@ -110,8 +110,11 @@ nv30_validate_fb(struct nv30_context *nv30) BEGIN_NV04(push, NV30_3D(VIEWPORT_HORIZ), 2); PUSH_DATA (push, w << 16); PUSH_DATA (push, h << 16); - BEGIN_NV04(push, NV30_3D(VIEWPORT_TX_ORIGIN), 1); + BEGIN_NV04(push, NV30_3D(VIEWPORT_TX_ORIGIN), 4); PUSH_DATA (push, (y << 16) | x); + PUSH_DATA (push, 0); + PUSH_DATA (push, ((w - 1) << 16) | 0); + PUSH_DATA (push, ((h - 1) << 16) | 0); if ((nv30->state.rt_enable & NV30_3D_RT_ENABLE_COLOR0) || fb->zsbuf) { struct nv30_surface *rsf = nv30_surface(fb->cbufs[0]);