Skip to content
Commit 7418d53c authored by Chris Wilson's avatar Chris Wilson
Browse files

sna/dri2: Clip application of damage to windowed swapbuffers

Since forever we have been passing region=NULL when doing a windowed
swapbuffer on vblank, and using that to mark the entire pixmap as being
damaged. For an uncomposited window, this is incorrect as it points to a
clipped region of the ScreenPixmap and so we were marking the entire
ScreenPixmap as being flushed, but only having operated on the windowed
region. Instead pass along the clip extents if region is unset.

References: https://bugs.freedesktop.org/show_bug.cgi?id=105720


Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent 6c1e70ca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment