diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-12-19 09:43:33 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-12-19 09:43:33 +0000 |
commit | ada97d27250aa09b1a27d5f6640fea011fade997 (patch) | |
tree | c30df138febc3e2dbd933fce4dd6af8a91c404a0 | |
parent | 6f99bbe67e6e70d5b24611c7afa0dffc5632aaab (diff) |
sna/dri2: Look for preferred CRTC for visible portion of the window
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_dri2.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c index bd5e26d7..7ea210de 100644 --- a/src/sna/sna_dri2.c +++ b/src/sna/sna_dri2.c @@ -1230,19 +1230,13 @@ draw_target_seq(DrawablePtr draw, uint64_t msc) static xf86CrtcPtr sna_dri2_get_crtc(DrawablePtr draw) { - struct sna *sna = to_sna_from_drawable(draw); - BoxRec box; - if (draw->type == DRAWABLE_PIXMAP) return NULL; - box.x1 = draw->x; - box.y1 = draw->y; - box.x2 = box.x1 + draw->width; - box.y2 = box.y1 + draw->height; - /* Make sure the CRTC is valid and this is the real front buffer */ - return sna_covering_crtc(sna, &box, NULL); + return sna_covering_crtc(to_sna_from_drawable(draw), + &((WindowPtr)draw)->clipList.extents, + NULL); } static void |