mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 22:20:09 +01:00
nv30: properly init window information
Should fix >2k rendering issues reported on nv4x. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
a2f7ecfa74
commit
9856fd02a0
2 changed files with 4 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue