From 1a116a15a5d978a1edf413a439f6ef6d3205a7aa Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 24 Jan 2012 16:53:21 +0000 Subject: [PATCH] sna: Reduce the assertion that we would have hinted to operate inplace As the drawable_gc_flags() operate on lower level information than the hint, it is able to spot more oportunities to reduce the READ flags and so the assertion was overly optimistic. Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 0cf7faca..fea51671 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -1482,8 +1482,8 @@ inline static unsigned drawable_gc_flags(DrawablePtr draw, return MOVE_READ | MOVE_WRITE; } - DBG(("%s: try operating on drawable inplace\n", __FUNCTION__)); - assert(drawable_gc_inplace_hint(draw, gc)); + DBG(("%s: try operating on drawable inplace [hint? %d]\n", + __FUNCTION__, drawable_gc_inplace_hint(draw, gc))); flags = MOVE_WRITE; if (USE_INPLACE)