diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-01-06 13:29:49 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-01-06 13:37:10 +0000 |
commit | cc9d7f6777703037d0d7eff346dd350f4d8b3f31 (patch) | |
tree | 5dfd757b3a0a60bd19591510e926ce92358ce1df /src/sna/sna_render.c | |
parent | e44e57d4cdc1fe2de410afcaa458a7081f909b3f (diff) |
sna: Reject CPU blits that require format conversions
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_render.c')
-rw-r--r-- | src/sna/sna_render.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna_render.c b/src/sna/sna_render.c index 3fbb9ecb..92c5afcc 100644 --- a/src/sna/sna_render.c +++ b/src/sna/sna_render.c @@ -2336,6 +2336,9 @@ memcpy_copy_boxes(struct sna *sna, uint8_t op, if (op != GXcopy) return false; + if (src_draw->depth != dst_draw->depth) + return false; + clipped = (n > 1 || box->x1 + dx > 0 || box->y1 + dy > 0 || |