compositor-drm: Check that that we have a valid bo for scanout
authorRob Bradford <rob@linux.intel.com>
Fri, 14 Sep 2012 22:25:41 +0000 (23:25 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 26 Sep 2012 15:19:50 +0000 (11:19 -0400)
commit9b1018702d9658da4b7a6bc757d720d0bbf072aa
tree0ea33490df98d70e19a55b4c83e409c630e774ba
parent6e1e385d5164dc3963dfcd3dff302764bb37935f
compositor-drm: Check that that we have a valid bo for scanout

If gbm_bo_import does not return a valid buffer for usage of
GBM_BO_USE_SCANOUT don't try and scan out the surface directly.

We've caught the SHM case explicitly earlier - this is to prevent other cases
where the bo cannot be scanned out.

Signed-off-by: Rob Bradford <rob@linux.intel.com>
src/compositor-drm.c