SDM does not reset the H/W layers for the use case, when there are no
App layers present in the draw cycle. It leads to crash in SF dumpsys.
Hence, reset the H/W layers of display in all the use cases. Add SDM
error type which indicates the use case, when there are no App layers
in the draw cycle.
CRs-Fixed: 2008789
Change-Id: Ia0c0d237e6e4033993b8d2e46b6a792ff5f18340
Add one action to set panel brightness and refresh screen. The
backlight level is cached and sent through display commit IOCTL
to driver, which would take effect along with display commit.
Change-Id: I87483e82b5c13ef25c1da956ac9403162afd031e
Since each gralloc buffer has 2 fds, the headroom with fds is
very small. Increase this limit to avoid running out of fds
CRs-Fixed: 1114287
Change-Id: Ifd11521fe648204d8ce153a8010ad0f73cbfb9e8
It is possible that mdss driver updates the refresh-rate back
to 60 during idletimeout when screen is touched, in anticipation
of updates. However, display-hal is agnostic of those updates.
It might be the case that touch sometimes may not result in any
legitimate updates to display. In such cases, mdss driver triggers
idle notify after certain timeout period. Reset the dyn-fps
back to min-fps supported by the panel as part of handling it.
Change-Id: I45b73e62cae2244b6de7a6e595d629b90927f8f9
Add support for booting up with default non-atomic mode
Add libdrmutils that currently has:
DRMMaster:
Creates a master DRM session
Converts ION handles to DRM FB_ID
DRMResMgr:
Enables a default display path by providing APIs for
connector id, crtc id, mode etc
Change-Id: I1dc697d2cc5e3fa744c99e2c9ddd57bf06e78c4f
CRs-fixed: 1114808
- The fd's used for book-keeping can change when the clients
close and reopen sessions, hence they are not reliable and
can lead to incorrect virtual address usage causing
corruption or stale data.
- Hence use ion cookie for book-keeping which is unique for a
given memory fd.
- Use LRU method free up/reuse on reaching max limit.
- Remove Tonemapper_destroy which is not needed anymore.
Change-Id: I5777649b34210977c18ce20c65e0aa2baa8e7d26
Crs-fixed: 1110175
Add support for BGR_888 and CBYCRY_422_I in display HAL. The
new formats will be used by QCarCam Application.
CRs-Fixed: 1116491
Change-Id: I5ccca57a3ca2d27c4e064b0c5abd68c77c7afadd
- When sdm.disable_hdr_lut_gen is set, color mode must not
be set from HandleHDR but DPPS must be disabled.
- SetColorMode SDM Interface must be allowed to set the ColorMode
when sdm.disable_hdr_lut_gen is set.
- In HWCTonemapper check if there is a FB session before using.
Change-Id: Id2e836bbe19b81244b0a9cc39e3d89e184c14c43
Crs-fixed: 1114947
In HWC1.5, Add SetColorTransform to HWCColorMode which
will be used to pass the color transform matrix.
Change-Id: I272a2b6f99bccd97a82d3c1fcc243101727a757a
Crs-fixed: 1104193
- Set "sys.hwc_disable_hdr" to 1 to disable HDR handling
in HAL.
- On setting that property, a HDR layer will be treated
as a regular layer.
Change-Id: I3309c0ec29dc1b3c56294f1bf3e542977235c475
Crs-fixed: 1114932
1. Add functionality in qdutils to get the DP test config from the
sysfs node.
2. Add support to generate ColorRamp, ColorSquare and Black and White
vertical line test pattern for 18/24/30 bpp DP display
3. Create layer stack with test layer and ignore all layers from the
SF framework.
4. Generate the pattern with 18/24/30 bpp based on pattern type and
bpp read from sysfs node and send it to DP interface.
5. Add support to calculate CRC to validate the color pattern.
Change-Id: I49469d94a96ada729d24d7cc03a7e79f2af6edc0
CRs-Fixed: 1107663
Explicitly add liblog as dependency for modules that
use Android logging. Also fix a const char*/char*
assignment.
CRs-Fixed: 1109248
Change-Id: I434179f04f4386e73e7e9ee79ab8cd283ebafc91
- Add HDR capabilities and panel brightness to the
DisplayFixedConfig
- In HWC1.5, remove hardcodings for HDR capabilities
instead query it from SDM and populate accordingly.
- In HWC2.0, support GetHDRCapabilities.
Change-Id: I6606d688708d894a6bd9bf6b13f262452bccc2b4
Crs-fixed: 1110355
Set current refresh rate to external layers and
max refresh rate to virtual layers.
CRs-Fixed: 1098053, 1081429
Change-Id: Iae9e809d8d17c77d666a9e413a727c5f7f763170
- Make use of the LayerRequests set by SDM in HWC
Tonemapper to configure the Layer Information.
- Helps in handling format change when tonemapping
from YUV to RGB
- Includes some changes needed in buffer allocator
and sync handler
Change-Id: I105116a7fe718e68329b17a209e37be399a6f8ca
Crs-fixed: 1106036
- Support ColorModes in HWC, which will enumerate the ColorModes
and provide API to set ColorMode.
- When the property "sdm.disable_hdr_lut_gen" is set, do not set
HDRMode in SDM, as it will be handled by HWC
Change-Id: Iebdf000c048ca4ab09ab3261e295c142988ea413
Crs-fixed: 1106019
- New interface helps in getting aligned w/h size in SDM.
- Implement the interface in HWC Buffer Allocator.
- Pass BufferAllocator Intf to CompMgr and Strategy
Change-Id: I1917143379aa2c706ea6babc0d7747d9cf0911bb
Crs-fixed: 1104632
Add Detail Enhancer configuration support in color-mode set
operation performed from the composer layer.
Change-Id: Ibaa20a168098088108e949e937d10529d42042e1
CRs-Fixed: 1075087
Enable error/warning conditional logs only if the corresponding debug
tags are set.
Change-Id: I762d586ed173fa5bd9ca32c797110eebcdd8b81e
CRs-Fixed: 1107539
Command mode panels do not requre NULL commit to free
buffers. Skip null to resolve flickers seen during
no app layers present in draw cycle.
Change-Id: I2ed87da94db1ff3b21903f2a8c354c6cf521bf8e
CRs-fixed: 1103190