summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2010-12-30 12:34:12 +1000
committerBen Skeggs <[email protected]>2010-12-30 12:34:12 +1000
commit5b0e5e7389a5a09305bd47d69befefc5b85b4b2a (patch)
tree84e97bd41a64df01ca2dbcce3459f3aeea6a7a19
parent0cb6d1a4eb2dd682b499f54a82505bc3bd318bbc (diff)
drm/nvc0: don't un-bind every subchannel on init
The initial values in the grctx are 0x0000 anyway, and re-binding them all to 0x0000 destroys some init done by the nouveau drm. Signed-off-by: Ben Skeggs <[email protected]>
-rw-r--r--src/gallium/drivers/nvc0/nvc0_screen.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_screen.c b/src/gallium/drivers/nvc0/nvc0_screen.c
index 0e80e2841a9..a5641ba90fb 100644
--- a/src/gallium/drivers/nvc0/nvc0_screen.c
+++ b/src/gallium/drivers/nvc0/nvc0_screen.c
@@ -392,11 +392,6 @@ nvc0_screen_create(struct pipe_winsys *ws, struct nouveau_device *dev)
goto fail;
}
- for (i = 0; i < 8; ++i) {
- BEGIN_RING(chan, (i << 13) | (0x0000 >> 2), 1);
- OUT_RING (chan, 0x0000);
- }
-
ret = nouveau_grobj_alloc(chan, 0xbeef9039, NVC0_M2MF, &screen->m2mf);
if (ret)
FAIL_SCREEN_INIT("Error allocating PGRAPH context for M2MF: %d\n", ret);