summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWuZhen <wuzhen@jidemail.com>2016-05-04 13:35:33 +0800
committerChih-Wei Huang <cwhuang@linux.org.tw>2016-05-12 12:09:30 +0800
commit6f606572cf6ba77d84c69a32189eeccbc363a3c4 (patch)
tree0fb2a8b8ea1bf7d9ea9e77cc2eedebe0ef4c744e
parenta04dcbb0c87d5016216ac34b75525f23e08df8ff (diff)
downloadexternal_drm_gralloc-6f606572cf6ba77d84c69a32189eeccbc363a3c4.zip
external_drm_gralloc-6f606572cf6ba77d84c69a32189eeccbc363a3c4.tar.gz
external_drm_gralloc-6f606572cf6ba77d84c69a32189eeccbc363a3c4.tar.bz2
avoid issue with devices that don't support blit.
Change-Id: I398258147f9adcfbbcf2d92c7ba19887ea917bd0
-rw-r--r--gralloc_drm_kms.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gralloc_drm_kms.c b/gralloc_drm_kms.c
index 9456e6c..6bd4add 100644
--- a/gralloc_drm_kms.c
+++ b/gralloc_drm_kms.c
@@ -1227,6 +1227,11 @@ int gralloc_drm_init_kms(struct gralloc_drm_t *drm)
}
}
+ /* HDMI mirror mode need driver support for blitting. which is not implemented for
+ drivers other than intel. skip HDMI detection for them to avoid crash
+ */
+ if (!drm->drv->blit)
+ goto skip_hdmi_modes;
/* check if hdmi is connected already */
hdmi = fetch_connector(drm, DRM_MODE_CONNECTOR_HDMIA);