summaryrefslogtreecommitdiffstats
path: root/gralloc_drm.c
diff options
context:
space:
mode:
Diffstat (limited to 'gralloc_drm.c')
-rw-r--r--gralloc_drm.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/gralloc_drm.c b/gralloc_drm.c
index 6b3825e..23815bb 100644
--- a/gralloc_drm.c
+++ b/gralloc_drm.c
@@ -68,13 +68,6 @@ init_drv_from_fd(int fd)
}
if (version->name) {
-#ifdef ENABLE_PIPE
- drv = gralloc_drm_drv_create_for_pipe(fd, version->name);
- if (drv) {
- ALOGI("create pipe for driver %s", version->name);
- } else
-#endif
-
#ifdef ENABLE_FREEDRENO
if (!strcmp(version->name, "msm")) {
drv = gralloc_drm_drv_create_for_freedreno(fd);
@@ -99,6 +92,12 @@ init_drv_from_fd(int fd)
ALOGI_IF(drv, "create nouveau for driver nouveau");
} else
#endif
+#ifdef ENABLE_PIPE
+ if (!drv) {
+ drv = gralloc_drm_drv_create_for_pipe(fd, version->name);
+ ALOGI_IF(drv, "create pipe for driver %s", version->name);
+ } else
+#endif
if (!drv) {
ALOGE("unsupported driver: %s", (version->name) ?
version->name : "NULL");