Fix via dmablit when blit queue is full.
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Wed, 18 Jul 2007 08:40:03 +0000 (10:40 +0200)
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Wed, 18 Jul 2007 08:40:03 +0000 (10:40 +0200)
Fix by Simon Farnsworth, Bugzilla Bug #11542
http://bugs.freedesktop.org/show_bug.cgi?id=11542

linux-core/via_dmablit.c

index 5108c86..6422609 100644 (file)
@@ -568,7 +568,7 @@ via_init_dmablit(struct drm_device *dev)
                blitq->head = 0;
                blitq->cur = 0;
                blitq->serviced = 0;
-               blitq->num_free = VIA_NUM_BLIT_SLOTS;
+               blitq->num_free = VIA_NUM_BLIT_SLOTS - 1;
                blitq->num_outstanding = 0;
                blitq->is_active = 0;
                blitq->aborting = 0;