summaryrefslogtreecommitdiff
path: root/glamor/glamor_copy.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2014-08-13 17:10:21 +0900
committerKeith Packard <keithp@keithp.com>2014-08-17 14:20:57 -0700
commit0d7306ffe2e069f0091c4f174f138127100abb43 (patch)
tree44df0cc9e1e4b94283f733fb8a34f596c431dddc /glamor/glamor_copy.c
parentc2548d71f7a754251d89696ae49aab2fe07446df (diff)
glamor: Don't call glamor_copy_fbo_cpu() for GLAMOR_DRM_ONLY pixmaps
It results in a crash. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'glamor/glamor_copy.c')
-rw-r--r--glamor/glamor_copy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/glamor/glamor_copy.c b/glamor/glamor_copy.c
index b84fcf250..6f422d419 100644
--- a/glamor/glamor_copy.c
+++ b/glamor/glamor_copy.c
@@ -635,6 +635,7 @@ glamor_copy_gl(DrawablePtr src,
return glamor_copy_cpu_fbo(src, dst, gc, box, nbox, dx, dy,
reverse, upsidedown, bitplane, closure);
} else if (GLAMOR_PIXMAP_PRIV_HAS_FBO(src_priv) &&
+ dst_priv->type != GLAMOR_DRM_ONLY &&
bitplane == 0) {
return glamor_copy_fbo_cpu(src, dst, gc, box, nbox, dx, dy,
reverse, upsidedown, bitplane, closure);