- 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
* 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
* Require validate on power transitions
* Reset retire fence after programming the client with it.
Bug: 37474580
Bug: 62897896
Test: manual
Change-Id: I8fa48cc872edf92811b9d3f56e4787f485c42c10
1. SF skips ValidateDisplay call, when the layer geometry attributes
have not changed for any of the layer, as compared to last frame.
2. In case of Surface Damage update on a layer, SDM needs a Validate
call to program SDE driver for Partial Update feature.
3. SDM needs Validate call to enter in safe Mode for use cases like
Idle/Thermal fallback, HDMI and Virtual Connect/Disconnet, etc.
4. Set HWC2_CAPABILITY_SKIP_VALIDATE cap in GetCapabilities api.
b/37474580
b/62806392
Test: marlin, ryu
Change-Id: I68f0db3af16afa4ad4eb789cd1f6b12caf6381e4
Acked-by: Sushil Chauhan <sushilchauhan@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>
Avoid setting the geometry changed flag when the dataspace is the
same.
Bug: 38396128
Test: Manually checked systraces on Pixel
Change-Id: I80561ddf43356514616d1132a293b43a6138541d
This debug property is used for bringup and was never set in
gralloc1, causing a mismatch in the client target format between
gralloc and HWC.
Bug: 37317019
Change-Id: I15e8925b34d0947fe870b0708783afa0145e1db7
This reverts commit 834a06c753.
Reason for revert: 37438481
Causing an increase in power when playing videos.
Change-Id: I28fa7720e4f578bee101f46278f25f1eb6c7e880
Delete the original feature in feature list when new feature is
added. This is to avoid memory leak when display features are set
without display commit.
Bug: 37546588
Test: night light, crashing SF, and manual
Acked-by: Xu Yang <yangxu@codeaurora.org>
Change-Id: I01258554d4f66aa00dce4a71ef11fe09464844c2
Use getMetaData API to get the metadata information in hwc2.
As it maps the metadata in the process before accessing it.
b/35955598 registerBuffer and unregisterBuffer use galloc_map and
gralloc_unmap incorrectly
Test: marlin
Change-Id: I346d223058e6eadb00f16bb9f2be8a46e87fbdef
Acked-by: Arun Kumar K.R <akumarkr@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>
HWC session is derived from hwc2_device and is deleted by
libhardware.
CRs-Fixed: 2023877
Bug: 34206930
Change-Id: Ic983a232f0ca417c0b47d5ea3c59e7374d7e7fea
uevent_next_event blocks until the next event from the
kernel, which we don't intend to handle when we're closing the
hwc session. Cancel the uevent thread during shutdown.
Bug: 34206930
Change-Id: Ib6c7d3af3c17aa010c37b94a9f4c846e19c7f091
Code wants dataspace to be bitfields with separate transfer,
range and such. Was getting confused with legacy dataspaces that
don't have that info. So, translate to keep code happy.
Test: Play netflix or movie in Google Play movies.
Bug: 35985399
Change-Id: Idb4aa9914da2f843cf76160afb337365c3c39ea2
Test: adb shell /data/nativetest64/libgui_test/libgui_test --gtest_filter=SurfaceTest.GetWideColorSupport
Verify that list of color modes includes Display-P3
Bug: 36219389
Change-Id: Ica5cfcf4b0e389e812f6fca5774190ddec8e9c72
* Use private_0 flag
* Add some legacy flags to be used during transition
* Fix gralloc module version
* Adjust makefiles for gralloc1
* Add support for dump, num flex planes and lock flex.
* Use a unique ID for buffer descriptors
* Do not delete buffer handle, fix after verifying framework fix.
* Current gralloc1 clients do not conform to the lock()
requirement
in the gralloc1 header. Tracked in b/33588773
* Add perform APIs to get the buffer size and allocate a buffer
for use by SDM
* Fix reference counting
* Add a unique buffer ID
* Some cleanup in private_handle
* Create a wrapper class of private_handle to do refcounting
* Resolve implementation defined formats At allocation time,
update buffer
descriptors to replace implementation defined formats with the
ones we mean
to allocate
* Defer ion handle release
* Remove unused drm code.
* Add legacy constructor for private_handle_t used by some
clients
* Add FP16 support
* Add Dump() in buffer manager
* Use handle as map key
* Drop ZSL check
CRs-Fixed: 2007391
Change-Id: Iaf843d93c031839d90403cc2e6927b516aedd354