summaryrefslogtreecommitdiff
path: root/src/sna/sna_display.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-05-19 12:31:49 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-05-19 12:34:49 +0100
commitbfd0e41d5c7b8bff28ff429b26f4c977e4c37d12 (patch)
tree3226908cafb8b58aee7b12ee95d2ebabbd2ec1c5 /src/sna/sna_display.c
parent1a84875c21b7113f55e6ce0c4a1f914524aa3f97 (diff)
sna: Fix assertions for combining shadow transforms and TearFree
When the RandR shadow buffer is enabled we set the sna_crtc->transform flag. We set the crtc->transform_in_use only when coordinate transforms are required - i.e. we may enable the shadow buffer if a CRTC is out of bounds, but otherwise has no transformation. That confused the asserts. Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_display.c')
-rw-r--r--src/sna/sna_display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 632d9f82..5671db57 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -5401,7 +5401,7 @@ void sna_mode_redisplay(struct sna *sna)
continue;
assert(crtc->enabled);
- assert(crtc->transform_in_use || sna->flags & SNA_TEAR_FREE);
+ assert(sna_crtc->transform || sna->flags & SNA_TEAR_FREE);
damage.extents = crtc->bounds;
damage.data = NULL;
@@ -5453,7 +5453,7 @@ void sna_mode_redisplay(struct sna *sna)
continue;
assert(crtc->enabled);
- assert(crtc->transform_in_use);
+ assert(sna_crtc->transform);
damage.extents = crtc->bounds;
damage.data = NULL;