Do not use fb handle in prepare. Use displayFrame for dimensions,
align them and hardcode format.
b/8316155 - Implement HWComposer 1.3 w/ virtual display support
Change-Id: I5c494a74a807d3a52a1c88257494b58c583700f5
Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
in frameworks/native deprecated the use
of retire fence, therefore retire fence
support has to be removed
depends:
hardware/qcom/msm8960: Ibe3200eb9e2d70fefbaa907089dbf4b4ce5809fe
android_kernel_google_msm: I19877296ac762e4d5c3162843ccaf5cc9a88ff1c
Change-Id: Iddb114b7752de38438fe6143a6f1798ecf844779
Validate the display ID before processing any calls from the
client. This is needed to handle only the displays which are
supported by HWC
Adapted from commit of the same title in CAF msm8974 tree.
Original author: Arun Kumar K.R <akumarkr@codeaurora.org>
Change-Id: Iebeeabf791b5c53e811e1f4bb3d777ab0e4d0f47
- Initialize transform matrix with an identity matrix.
- Use matrix when mode map is empty.
- Do not reapply mode if it is the same as before.
- Do not reapply hint if it is the same as before.
Bug: 68721781
Change-Id: Iac6d76ceded65b8527abf0b0f26ffc76479e5db9
* changes:
hwc2: Check for color modes support
sdm: allow commits in doze_suspend as well.
hwc: Fix request flag reset and Present() bailout
sdm: hwc2: Add support for TWM entry and exit.
hwc2: Determine virtual display presence based on target specific property
Check for color modes support by Display, before marking layer as HDR.
Bug: 79541227
CRs-Fixed: 2102517
Change-Id: Id8595dcb322900f98556c40fde94fa88e3ec4e39
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
- Implement SET_STAND_BY_MODE binder support. SKGHAL
use this api to inform HWC about TWM entry/exit.
- Move to null display to drop all incoming calls
from surfaceflinger on TWM entry.
- Move to normal display on TWM exit.
- Add scope_lock for SET_STAND_BY_MODE API.
Bug: 79541227
CRs-Fixed: 2200577
Change-Id: I26ef3b1af53856f68f76b116988cc2a28c06b6ac
GetMaxVirtualDisplayCount returns a hard-coded value. Return virtual
display count based on a property that is target specific.
Return a value of 1 by default when the property is not found in the
target device.
Bug: 79541227
Change-Id: I4c9727ad1687fc7e53c89ce5e41973628022acec
Validate right roi before using them in when dumping
the frame information.
Bug: 73253473
Change-Id: Ifa75c83d33f3d76914b47c9c8168eb4061ac5f88
Acked-by: Gousemoodhin Nadaf <gnadaf@codeaurora.org>
Layers with gamma 2.8 were being marked as not supported
and falling back to GPU, report them as supported and
handle them for HW composition
bug:77471420
Test: Reproduce bug scenario. With the CLs, verified both video and audio
work as expected using all the video modes.
Merge from https://partner-android-review.googlesource.com/#/c/1063539
Bug: 77471420
Change-Id: I5a94cbfc1ac9be22a6165803a79f6dca5711db34
Crs-fixed: 2220717
Add missing BT601_6_625 handing
bug:77471420
Test: Reproduce bug scenario. With the CLs, verified both video and audio
work as expected using all the video modes.
Merge from: https://partner-android-review.googlesource.com/#/c/1063538
Change-Id: I10034f38c8ab2283f13556ddf37bea51e7356a79
CRs-fixed: 2129768
Acked-by: Saurabh Shah <saurshah@codeaurora.org>
* Disable skip validation for solid fill during calibration.
* Require validation when the client changes the composition type
Bug: 77925367
CRs-Fixed: 2122072
Change-Id: I9ded200e5c15701f653c73d67c18c41de8278d52
Storage for six pollfd structs is allocated on the stack in a 2d array.
Subsequently, the address of the first element is passed to poll along
with the same total number of fds. At this point, the fortify dynamic
checker, considering only one of the dimensions of the array, throws an
error and warns that array is too small. Since the array is actually
sized appropriately, use a reinterpret_cast to subvert the checker.
Bug: 77323983
Change-Id: Ib88c5a00bc84b3d05be95baf57df5f522a769da4
This is a manual merge of CAF commit e7da5462bc8d7e8c2a8c1595ae12949237183979.
BUG: 76115647
Change-Id: I8b04ba1c130556613e2bf6b32affce4965f95b46
(cherry picked from commit a01e3f5f6d0905c14537cacebad296babc34b6d2)