sna: Mark GPU as wholly damage when replacing a drawable

References: https://bugs.freedesktop.org/show_bug.cgi?id=90725#c37
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-06-02 11:50:40 +01:00
parent c692691029
commit dbfbbcb4b3
1 changed files with 4 additions and 1 deletions

View File

@ -3796,8 +3796,11 @@ create_gpu_bo:
else
move = MOVE_WRITE | MOVE_READ | MOVE_ASYNC_HINT;
if (sna_pixmap_move_to_gpu(pixmap, move))
if (sna_pixmap_move_to_gpu(pixmap, move)) {
sna_damage_all(&priv->gpu_damage,
pixmap);
goto use_gpu_bo;
}
}
if (DAMAGE_IS_ALL(priv->gpu_damage) ||