diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2012-03-08 10:41:45 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2012-05-24 16:31:39 +1000 |
commit | 5132f37700210740117f5163b5df7aa1c8469a55 (patch) | |
tree | 9fc54f2c9cb81282b5b2dac62fe335ce26c1f6f7 /drivers/gpu/drm/nouveau/nouveau_state.c | |
parent | d0f3c7e41d30859a638083654002b9b6faf7f67b (diff) | |
download | op-kernel-dev-5132f37700210740117f5163b5df7aa1c8469a55.zip op-kernel-dev-5132f37700210740117f5163b5df7aa1c8469a55.tar.gz |
drm/nve0/fifo: initial implementation
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_state.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_state.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_state.c b/drivers/gpu/drm/nouveau/nouveau_state.c index 298c09b..64f9d42 100644 --- a/drivers/gpu/drm/nouveau/nouveau_state.c +++ b/drivers/gpu/drm/nouveau/nouveau_state.c @@ -496,13 +496,17 @@ static int nouveau_init_engine_ptrs(struct drm_device *dev) engine->timer.takedown = nv04_timer_takedown; engine->fb.init = nvc0_fb_init; engine->fb.takedown = nvc0_fb_takedown; - engine->fifo.channels = 0; - engine->fifo.init = nouveau_stub_init; - engine->fifo.takedown = nouveau_stub_takedown; + engine->fifo.channels = 4096; + engine->fifo.init = nve0_fifo_init; + engine->fifo.takedown = nve0_fifo_takedown; engine->fifo.disable = nvc0_fifo_disable; engine->fifo.enable = nvc0_fifo_enable; engine->fifo.reassign = nvc0_fifo_reassign; - engine->fifo.unload_context = nouveau_stub_init; + engine->fifo.channel_id = nve0_fifo_channel_id; + engine->fifo.create_context = nve0_fifo_create_context; + engine->fifo.destroy_context = nve0_fifo_destroy_context; + engine->fifo.load_context = nvc0_fifo_load_context; + engine->fifo.unload_context = nve0_fifo_unload_context; engine->display.early_init = nouveau_stub_init; engine->display.late_takedown = nouveau_stub_takedown; engine->display.create = nvd0_display_create; |