assign the layer to the video capability 77/224477/1
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 11 Feb 2020 01:23:25 +0000 (10:23 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 11 Feb 2020 01:23:25 +0000 (10:23 +0900)
The layer on zpos 0 has the capability of the hw scalibility
before displaying the buffer on the layer. Thus, the backend
set the VIDEO capability on the layer.

Change-Id: Idaf278c24525eb5ac5ad95aacec569583cdb6657

src/tdm_nexell_display.c

index b2ae34d0fb7d2b36214578eedfa7d0c770a965c3..6a865b8682f886a40b81af53055fb02a60a79f5f 100644 (file)
@@ -673,10 +673,18 @@ _tdm_nexell_display_create_layer_list_type(tdm_nexell_data *nexell_data)
                                                                           TDM_LAYER_CAPABILITY_SCANOUT;
                        layer_data->zpos = cpos_next++;
                } else if (types[i] == DRM_PLANE_TYPE_OVERLAY) {
-                       layer_data->capabilities = TDM_LAYER_CAPABILITY_OVERLAY |
-                                                                          TDM_LAYER_CAPABILITY_GRAPHIC |
-                                                                          TDM_LAYER_CAPABILITY_RESEVED_MEMORY |
-                                                                          TDM_LAYER_CAPABILITY_SCANOUT;
+                       if (opos_next == 0) {
+                               layer_data->capabilities = TDM_LAYER_CAPABILITY_OVERLAY |
+                                                                                  TDM_LAYER_CAPABILITY_VIDEO |
+                                                                                  TDM_LAYER_CAPABILITY_SCALE |
+                                                                                  TDM_LAYER_CAPABILITY_TRANSFORM |
+                                                                                  TDM_LAYER_CAPABILITY_SCANOUT;
+                       } else {
+                               layer_data->capabilities = TDM_LAYER_CAPABILITY_OVERLAY |
+                                                                                  TDM_LAYER_CAPABILITY_GRAPHIC |
+                                                                                  TDM_LAYER_CAPABILITY_RESEVED_MEMORY |
+                                                                                  TDM_LAYER_CAPABILITY_SCANOUT;
+                       }
                        if (opos_next == 1) {
                                layer_data->zpos = 2;
                                opos_next = 2;