sna: Pass desired CRTC viewport for completing single CRTC flips
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 18 Jun 2014 15:51:46 +0000 (16:51 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 18 Jun 2014 15:55:04 +0000 (16:55 +0100)
commit83c0f034454ef0f474126a3398e5e790ac5ef842
treeea342d6d6340dca59dff73ef388fbf6f9ce44d41
parent7119d394a673f40eb467d040c6febf3749924394
sna: Pass desired CRTC viewport for completing single CRTC flips

We cannot simply compare against the crtc->shadow_bo for all our needs,
so pass in exactly the setup we want and apply that. In particular this
is required when flipping away from the single CRTC setup on secondary
pipes.

Fixes TearFree multi-monitor regression from
commit 3932e97057fca16615adaefbc1eb25a0d51a1d8b [2.99.912]
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Mon Jun 9 08:58:15 2014 +0100

    sna/dri2: Allow TearFree flipping to individual CRTC

Reported-by: Leo Wolf <jclw@ymail.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80191
src/sna/sna_display.c