sna: Drop redundant sync of an inactive snoop cache

Having requested an inactive snooped buffer, we know that it is
already flushed and do not need to flush it again. With debugging
enabled, we hit an assert while flushing that the buffer has a refcout,
which at this present time of being plucked from the snoop cache it does
not.

Reported-by: Adric Blake <promarbler14@gmail.com>
References: https://bugs.freedesktop.org/show_bug.cgi?id=104341#c2
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2017-12-20 08:46:43 +00:00
parent 032a581fd7
commit 708255cbca
1 changed files with 0 additions and 1 deletions

View File

@ -3600,7 +3600,6 @@ static void kgem_finish_buffers(struct kgem *kgem)
assert(bo->used <= bytes(shrink));
map = kgem_bo_map__cpu(kgem, shrink);
if (map) {
kgem_bo_sync__cpu(kgem, shrink);
memcpy(map, bo->mem, bo->used);
shrink->target_handle =