diff options
author | Praneeth Bajjuri | 2019-09-17 00:01:21 -0500 |
---|---|---|
committer | Praneeth Bajjuri | 2019-09-17 00:01:21 -0500 |
commit | 6106dee1d5420849d189bd09ce3b4d29e8ae2e22 (patch) | |
tree | 2b5837b769528abd1ae14740282bd1260cdfa55f | |
parent | 4dd31f1ebad1c83ee516652008790b92b6751b58 (diff) | |
parent | be2c54c3e4d096c07fb0971afc5f6729c2ecb3ef (diff) | |
download | hardware-ti-am57x-d-android10-core-release.tar.gz hardware-ti-am57x-d-android10-core-release.tar.xz hardware-ti-am57x-d-android10-core-release.zip |
Merge branch 'master' of https://android.googlesource.com/platform/hardware/ti/am57x into d-android10-core-released-android10-core-release
* 'master' of https://android.googlesource.com/platform/hardware/ti/am57x:
libhwcomposer: Remove vestigial DSS composition properties
OWNERS: Fix my LDAP and add Andrew and Sam
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
-rw-r--r-- | OWNERS | 4 | ||||
-rw-r--r-- | libhwcomposer/display.cpp | 6 | ||||
-rw-r--r-- | libhwcomposer/display.h | 4 | ||||
-rw-r--r-- | libhwcomposer/hwc.cpp | 10 |
4 files changed, 5 insertions, 19 deletions
@@ -1 +1,3 @@ | |||
1 | astrachan@google.com | 1 | adelva@google.com |
2 | afd@ti.com | ||
3 | semen.protsenko@linaro.org | ||
diff --git a/libhwcomposer/display.cpp b/libhwcomposer/display.cpp index 8a7fef8..270d665 100644 --- a/libhwcomposer/display.cpp +++ b/libhwcomposer/display.cpp | |||
@@ -149,12 +149,6 @@ static void set_plane_properties(kms::AtomicReq& req, drm_plane_props_t* plane_p | |||
149 | { "CRTC_W", plane_props->crtc_w }, | 149 | { "CRTC_W", plane_props->crtc_w }, |
150 | { "CRTC_H", plane_props->crtc_h }, | 150 | { "CRTC_H", plane_props->crtc_h }, |
151 | }); | 151 | }); |
152 | |||
153 | /* optional props */ | ||
154 | req.add(plane, { | ||
155 | { "zorder", plane_props->zorder }, | ||
156 | { "pre_mult_alpha", plane_props->pre_mult_alpha }, | ||
157 | }); | ||
158 | } | 152 | } |
159 | 153 | ||
160 | int HWCDisplay::update_display(drm_plane_props_t* planeProp) | 154 | int HWCDisplay::update_display(drm_plane_props_t* planeProp) |
diff --git a/libhwcomposer/display.h b/libhwcomposer/display.h index 5df923f..e1e4ef3 100644 --- a/libhwcomposer/display.h +++ b/libhwcomposer/display.h | |||
@@ -61,10 +61,6 @@ typedef struct drm_plane_props { | |||
61 | uint64_t src_w; | 61 | uint64_t src_w; |
62 | uint64_t src_h; | 62 | uint64_t src_h; |
63 | 63 | ||
64 | uint64_t rotation; | ||
65 | uint64_t zorder; | ||
66 | uint64_t pre_mult_alpha; | ||
67 | |||
68 | DRMFramebuffer* fb_info; | 64 | DRMFramebuffer* fb_info; |
69 | } drm_plane_props_t; | 65 | } drm_plane_props_t; |
70 | 66 | ||
diff --git a/libhwcomposer/hwc.cpp b/libhwcomposer/hwc.cpp index 94cc324..c2d5206 100644 --- a/libhwcomposer/hwc.cpp +++ b/libhwcomposer/hwc.cpp | |||
@@ -395,7 +395,7 @@ static void hwc_drm_event_thread(void* data) | |||
395 | ALOGE("DRM event polling thread exiting\n"); | 395 | ALOGE("DRM event polling thread exiting\n"); |
396 | } | 396 | } |
397 | 397 | ||
398 | static void adjust_drm_plane_to_layer(hwc_layer_1_t* layer, int zorder, drm_plane_props_t* plane) | 398 | static void adjust_drm_plane_to_layer(hwc_layer_1_t* layer, drm_plane_props_t* plane) |
399 | { | 399 | { |
400 | if (!layer || !plane) { | 400 | if (!layer || !plane) { |
401 | ALOGE("Bad layer or plane"); | 401 | ALOGE("Bad layer or plane"); |
@@ -414,13 +414,7 @@ static void adjust_drm_plane_to_layer(hwc_layer_1_t* layer, int zorder, drm_plan | |||
414 | plane->src_w = WIDTH(layer->sourceCrop); | 414 | plane->src_w = WIDTH(layer->sourceCrop); |
415 | plane->src_h = HEIGHT(layer->sourceCrop); | 415 | plane->src_h = HEIGHT(layer->sourceCrop); |
416 | 416 | ||
417 | plane->zorder = zorder; | ||
418 | plane->layer = layer; | 417 | plane->layer = layer; |
419 | |||
420 | if (layer->blending == HWC_BLENDING_PREMULT) | ||
421 | plane->pre_mult_alpha = 1; | ||
422 | else | ||
423 | plane->pre_mult_alpha = 0; | ||
424 | } | 418 | } |
425 | 419 | ||
426 | static int hwc_prepare_for_display(omap_hwc_device_t* hwc_dev, int disp, hwc_display_contents_1_t* content) | 420 | static int hwc_prepare_for_display(omap_hwc_device_t* hwc_dev, int disp, hwc_display_contents_1_t* content) |
@@ -439,7 +433,7 @@ static int hwc_prepare_for_display(omap_hwc_device_t* hwc_dev, int disp, hwc_dis | |||
439 | } | 433 | } |
440 | 434 | ||
441 | /* Set the FB_TARGET layer */ | 435 | /* Set the FB_TARGET layer */ |
442 | adjust_drm_plane_to_layer(&content->hwLayers[content->numHwLayers - 1], 0, &display->planeProps[disp]); | 436 | adjust_drm_plane_to_layer(&content->hwLayers[content->numHwLayers - 1], &display->planeProps[disp]); |
443 | 437 | ||
444 | return 0; | 438 | return 0; |
445 | } | 439 | } |