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 <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-01-24 16:53:21 +00:00
parent 3d1bba033b
commit 1a116a15a5
1 changed files with 2 additions and 2 deletions

View File

@ -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)