diff options
author | Ben Skeggs | 2012-08-10 07:10:34 +0200 |
---|---|---|
committer | Ben Skeggs | 2012-10-03 05:13:03 +0200 |
commit | 4c2d42225b5024ad88f736608f44b51f702bd4e4 (patch) | |
tree | c2b5c46623538689e636a49f8b57c37229f77c48 /drivers/gpu/drm/nouveau/core/engine/fifo/nv10.c | |
parent | drm/nouveau/fifo: add method to lookup fifo chid related to a given object (diff) | |
download | kernel-qcow2-linux-4c2d42225b5024ad88f736608f44b51f702bd4e4.tar.gz kernel-qcow2-linux-4c2d42225b5024ad88f736608f44b51f702bd4e4.tar.xz kernel-qcow2-linux-4c2d42225b5024ad88f736608f44b51f702bd4e4.zip |
drm/nouveau/core: have fifo store a unique context identifier at attach time
This value will match something that's easily available from the engine IRQ
handlers, and used to lookup the relevant context.
Since the changes in how this is done on each generation match when the
major PFIFO changes happened, fifo is responsible for calculating the
correct value to avoid duplicating the same code among many engine modules.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/engine/fifo/nv10.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/core/engine/fifo/nv10.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/core/engine/fifo/nv10.c b/drivers/gpu/drm/nouveau/core/engine/fifo/nv10.c index 391fefa7c472..5d3638bddb8b 100644 --- a/drivers/gpu/drm/nouveau/core/engine/fifo/nv10.c +++ b/drivers/gpu/drm/nouveau/core/engine/fifo/nv10.c @@ -78,6 +78,7 @@ nv10_fifo_chan_ctor(struct nouveau_object *parent, nv_parent(chan)->object_attach = nv04_fifo_object_attach; nv_parent(chan)->object_detach = nv04_fifo_object_detach; + nv_parent(chan)->context_attach = nv04_fifo_context_attach; chan->ramfc = chan->base.chid * 32; nv_wo32(priv->ramfc, chan->ramfc + 0x00, args->offset); |