hwc: enable the tdm_hwc 19/202119/2
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 25 Mar 2019 02:26:15 +0000 (11:26 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 25 Mar 2019 05:36:29 +0000 (14:36 +0900)
Change-Id: I8075de3aec953c88176608665e897e1acfc004e2

src/tdm_sprd.c

index 53f7066..d8df2d1 100644 (file)
@@ -14,6 +14,8 @@
 
 #define SPRD_DRM_NAME "sprd"
 
+#define TDM_HWC 1
+
 static tdm_sprd_data *sprd_data;
 
 static int
@@ -121,7 +123,6 @@ tdm_sprd_init(tdm_display *dpy, tdm_error *error)
        tdm_func_pp sprd_func_pp;
        tdm_func_capture sprd_func_capture;
        tdm_error ret;
-       char *str;
 
        if (!dpy) {
                TDM_ERR("display is null");
@@ -145,9 +146,10 @@ tdm_sprd_init(tdm_display *dpy, tdm_error *error)
                return NULL;
        }
 
-       str = getenv("TDM_HWC");
-       if (str)
-               sprd_data->hwc_mode = strtol(str, NULL, 10);
+#if TDM_HWC
+       /* enable the tdm_hwc */
+       sprd_data->hwc_mode = 1;
+#endif
 
        LIST_INITHEAD(&sprd_data->output_list);
        LIST_INITHEAD(&sprd_data->buffer_list);