sna: Cross check that we only have an affine transformation for HW cursors

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-03-13 12:08:04 +00:00
parent d867d48bb6
commit 557ffa3bac
1 changed files with 6 additions and 3 deletions

View File

@ -5353,15 +5353,18 @@ transformable_cursor(struct sna *sna, CursorPtr cursor)
int i;
for (i = 0; i < sna->mode.num_real_crtc; i++) {
struct sna_crtc *crtc = to_sna_crtc(config->crtc[i]);
xf86CrtcPtr crtc = config->crtc[i];
const struct pixman_f_transform *t;
struct pixman_box16 box;
int size;
if (!crtc->cursor_transform)
if (!crtc->transform_in_use)
continue;
t = &crtc->base->f_framebuffer_to_crtc;
if (!to_sna_crtc(crtc)->cursor_transform)
return false;
t = &crtc->f_framebuffer_to_crtc;
if (!sna->cursor.use_gtt || !sna->cursor.scratch)
return false;