summaryrefslogtreecommitdiffstats
path: root/gralloc_drm_kms.c
diff options
context:
space:
mode:
Diffstat (limited to 'gralloc_drm_kms.c')
-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);