summaryrefslogtreecommitdiffstats
path: root/src/vivante_utils.c
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2014-08-03 22:41:26 +0100
committerRussell King <rmk@arm.linux.org.uk>2014-08-14 01:11:17 +0100
commita178eccdb514ad641b2a48e6020b7afa7a78416c (patch)
tree25dc96c41efecf52b6f27afaac249aa7b39f33ee /src/vivante_utils.c
parentc8439dcebaf0b8bcdd2cf2a2750d6ae84af5d1fd (diff)
downloadxf86-video-armada-a178eccdb514ad641b2a48e6020b7afa7a78416c.tar.gz
xf86-video-armada-a178eccdb514ad641b2a48e6020b7afa7a78416c.tar.xz
vivante: avoid assert() in prepare_cpu_drawable()
The same pixmap may be used multiple times in the unaccelerated functions. Do not require the in-use counter to be zero when preparing it. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
Diffstat (limited to 'src/vivante_utils.c')
-rw-r--r--src/vivante_utils.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/vivante_utils.c b/src/vivante_utils.c
index 0567c61..2797fd6 100644
--- a/src/vivante_utils.c
+++ b/src/vivante_utils.c
@@ -237,7 +237,6 @@ void vivante_prepare_drawable(DrawablePtr pDrawable, int access)
pixmap->devPrivate.ptr = vPix->bo->ptr;
}
#ifdef DEBUG_CHECK_DRAWABLE_USE
- assert(vPix->in_use == 0);
vPix->in_use++;
#endif
vPix->owner = CPU;