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>
This commit is contained in:
parent
c2548d71f7
commit
0d7306ffe2
|
@ -635,6 +635,7 @@ glamor_copy_gl(DrawablePtr src,
|
||||||
return glamor_copy_cpu_fbo(src, dst, gc, box, nbox, dx, dy,
|
return glamor_copy_cpu_fbo(src, dst, gc, box, nbox, dx, dy,
|
||||||
reverse, upsidedown, bitplane, closure);
|
reverse, upsidedown, bitplane, closure);
|
||||||
} else if (GLAMOR_PIXMAP_PRIV_HAS_FBO(src_priv) &&
|
} else if (GLAMOR_PIXMAP_PRIV_HAS_FBO(src_priv) &&
|
||||||
|
dst_priv->type != GLAMOR_DRM_ONLY &&
|
||||||
bitplane == 0) {
|
bitplane == 0) {
|
||||||
return glamor_copy_fbo_cpu(src, dst, gc, box, nbox, dx, dy,
|
return glamor_copy_fbo_cpu(src, dst, gc, box, nbox, dx, dy,
|
||||||
reverse, upsidedown, bitplane, closure);
|
reverse, upsidedown, bitplane, closure);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user