compositor-drm: Use gbm_bo_import instead of gbm_bo_create_from_egl_surface
authorKristian Høgsberg <krh@bitplanet.net>
Sat, 14 Jul 2012 02:54:43 +0000 (22:54 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 16 Jul 2012 20:40:29 +0000 (16:40 -0400)
commit2763a2e94ee4278c72fc328c4f0c8044716cf05e
treeda27a597ca21552a2d0570dbb2bd8c76ba2d2f3c
parentc190323c90c39c536cb9317d68d3277f53389839
compositor-drm: Use gbm_bo_import instead of gbm_bo_create_from_egl_surface

This lets us create the gbm bo from the wl_buffer instead of the
EGLImage.  With planar buffer, the EGLImage corresponds to a plane
and not the entire planar buffer.

More importantly, with some YUV formats (packed YUYV and similar) we use
several EGLImages to sample the different components, but KMS only
want one plane in that case.
src/compositor-drm.c