sna/dri: Check back/front buffers of a pixmap for format change
Highly unlikely. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
8e23251aad
commit
eec12faf82
|
|
@ -1091,15 +1091,15 @@ can_exchange(struct sna * sna,
|
|||
WindowPtr win = (WindowPtr)draw;
|
||||
PixmapPtr pixmap;
|
||||
|
||||
if (draw->type == DRAWABLE_PIXMAP)
|
||||
return true;
|
||||
|
||||
if (front->format != back->format) {
|
||||
DBG(("%s: no, format mismatch, front = %d, back = %d\n",
|
||||
__FUNCTION__, front->format, back->format));
|
||||
return false;
|
||||
}
|
||||
|
||||
if (draw->type == DRAWABLE_PIXMAP)
|
||||
return true;
|
||||
|
||||
pixmap = get_window_pixmap(win);
|
||||
if (pixmap == sna->front) {
|
||||
DBG(("%s: no, window is attached to the front buffer\n",
|
||||
|
|
|
|||
Loading…
Reference in New Issue