Commit Graph

4 Commits

Author SHA1 Message Date
Sushil Chauhan c24c0ae99f hwc2: Check for color modes support
Check for color modes support by Display, before marking layer as HDR.

Bug: 79541227
CRs-Fixed: 2102517
Change-Id: Id8595dcb322900f98556c40fde94fa88e3ec4e39
2018-05-10 22:05:09 +00:00
Saurabh Shah 81fdbfedd9 hwc: Fix request flag reset and Present() bailout
The ClearRequestFlags() method iterates over layer_stack_ instead of
layer_set_. This causes a use-after-free since DestroyLayer() removes
layer from layer_set_ only. Besides that, the method need not be
virtual and has a redundant loop. This change removes the
ClearRequestFlags() method and clears flags in an existing loop.
Present() bails out if layer_set_ is empty or a shutdown is pending.
Since layers could have been destroyed before Present(), ideally
bailing out on re-validation has a higher priority over the rest.

Bug: 79541227
CRs-Fixed: 2165926
Change-Id: Ic7b31bbd07a22b8df47fccb2024b3415ab3a559b
2018-05-10 22:04:17 +00:00
Ch Ganesh Kumar 8427dbeb79 hwc2: avoid adding default color mode when display PP is unsupported.
For targets that do not support display post processing, setting of
color modes is a no-op. The inclusion of the default Identity color
mode in the color transform map will be avoided when the flag
TARGET_EXCLUDES_DISPLAY_PP is set in order to signify that no color
modes are supported when PP features are not supported in the target

Change-Id: If3929b38ec7a093498c404da1798eaccbc97a281
2018-02-20 17:09:34 -08:00
Alain Vongsouvanh 4a1efd0680 display: msm8909w caf release LW.BR.3.0.1-04400-8x09w.0 for SD3100.
MSM8909W display HAL code copied from CAF release LW.BR.3.0.1-04400-8x09w.0.
Created a new msm8909w_3100 subfolder as 3.0.1 releases are not compatible with
3.0.0.

Change-Id: I4eb9a1f5063ace1f27f35eb7e814bf82498493d3
(cherry picked from commit 5f5637ca395ebc17367279346bbd0b93f83ce6fb)
2017-10-17 06:34:57 +00:00