diff options
author | WuZhen <wuzhen@jidemail.com> | 2016-05-04 13:35:33 +0800 |
---|---|---|
committer | Chih-Wei Huang <cwhuang@linux.org.tw> | 2016-05-12 12:09:30 +0800 |
commit | 6f606572cf6ba77d84c69a32189eeccbc363a3c4 (patch) | |
tree | 0fb2a8b8ea1bf7d9ea9e77cc2eedebe0ef4c744e | |
parent | a04dcbb0c87d5016216ac34b75525f23e08df8ff (diff) | |
download | external_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.c | 5 |
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); |