hwc : donot check the tqueue 62/203062/1
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 9 Apr 2019 08:17:33 +0000 (17:17 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 9 Apr 2019 08:17:33 +0000 (17:17 +0900)
There is the case to create the surface queue twice at e20 launching time.
E20 create the surface queue at the initialization of the gl engine.
If it is failed, E20 create the surface queue again for the initialization
of the sw engine

Change-Id: Ie993646d79b2e766f220317a535975e086ab8ffd

src/tdm_sprd_hwc.c

index 890b57629880b20e632de838a8e5943080b4894c..48ea88dc482a2d9e796effba95a1d114e695b12c 100644 (file)
@@ -128,14 +128,12 @@ _sprd_hwc_window_get_tbm_surface_queue(tdm_hwc_window *hwc_window, tdm_error *er
        height = hwc_window_data->info.src_config.size.v;
        format = hwc_window_data->info.src_config.format;
 
-       if (!hwc_window_data->tqueue) {
-               tqueue = tbm_surface_queue_create(NUM_BUFFERS, width, height, format, TBM_BO_SCANOUT);
-               if (error)
-                       *error = TDM_ERROR_OPERATION_FAILED;
-               RETURN_VAL_IF_FAIL(tqueue != NULL, NULL);
+       tqueue = tbm_surface_queue_create(NUM_BUFFERS, width, height, format, TBM_BO_SCANOUT);
+       if (error)
+               *error = TDM_ERROR_OPERATION_FAILED;
+       RETURN_VAL_IF_FAIL(tqueue != NULL, NULL);
 
-               hwc_window_data->tqueue = tqueue;
-       }
+       hwc_window_data->tqueue = tqueue;
 
        if (error)
                *error = TDM_ERROR_NONE;