summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2009-02-20 15:04:23 +1000
committerBen Skeggs <bskeggs@redhat.com>2009-02-20 15:04:23 +1000
commit6ec57ecae6fc43df8bfc5e96626967fd0cfe6c32 (patch)
tree554ec1ebc161f7b8f8c426af885bb186d9466774
parent32a7de52a7f4d08521606b3ed17557fb0dd1c69d (diff)
nouveau: signal any outstanding fences on channel destroy
-rw-r--r--shared-core/nouveau_fifo.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/shared-core/nouveau_fifo.c b/shared-core/nouveau_fifo.c
index abc710d9..e244a897 100644
--- a/shared-core/nouveau_fifo.c
+++ b/shared-core/nouveau_fifo.c
@@ -471,6 +471,12 @@ void nouveau_fifo_free(struct nouveau_channel *chan)
}
}
+ /* Signal all pending fences, if any */
+ if (dev_priv->mm_enabled) {
+ drm_fence_handler(dev, chan->id, chan->next_sequence,
+ DRM_FENCE_TYPE_EXE, 0);
+ }
+
/*XXX: Maybe should wait for PGRAPH to finish with the stuff it fetched
* from CACHE1 too?
*/