Commit 448a4532 authored by Ben Skeggs's avatar Ben Skeggs

drm/nve0/fifo: allow copy engine channel to be looked up by instance

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 5c0633e6
...@@ -137,9 +137,11 @@ nve0_fifo_context_attach(struct nouveau_object *parent, ...@@ -137,9 +137,11 @@ nve0_fifo_context_attach(struct nouveau_object *parent,
switch (nv_engidx(object->engine)) { switch (nv_engidx(object->engine)) {
case NVDEV_ENGINE_SW : case NVDEV_ENGINE_SW :
return 0;
case NVDEV_ENGINE_COPY0: case NVDEV_ENGINE_COPY0:
case NVDEV_ENGINE_COPY1: case NVDEV_ENGINE_COPY1:
case NVDEV_ENGINE_COPY2: case NVDEV_ENGINE_COPY2:
nv_engctx(ectx)->addr = nv_gpuobj(base)->addr >> 12;
return 0; return 0;
case NVDEV_ENGINE_GR : addr = 0x0210; break; case NVDEV_ENGINE_GR : addr = 0x0210; break;
case NVDEV_ENGINE_BSP : addr = 0x0270; break; case NVDEV_ENGINE_BSP : addr = 0x0270; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment