summaryrefslogtreecommitdiff
path: root/sdm/libs/hwc2/hwc_session.cpp
AgeCommit message (Collapse)Author
2018-10-25hwc2: Dump frames by display-type bitmaskMathew Joseph Karimpanal
Each set bit position in <DISPLAY_TYPE> of frame dump command corresponds to a qdutils::DISPLAY_XYZ display. Dump frames of displays based on <DISPLAY_TYPE> bitmask. Frame dump command for quick reference: adb shell "vndservice call display.qservice 21 i32 <FRAME_COUNT> i32 <DISPLAY_TYPE> i32 <LAYER_TYPE>" CRs-Fixed: 2324149 Change-Id: I72ca7c89cb6fbf2ff5f146ca5d860a52031e87c3
2018-10-10hwc2: Fix error handling for invalid ColorMode and RenderIntentGurpreet Singh Dhami
Fix to return BAD_PARAMETER for invalid RenderIntent value in GetRenderIntents api and invalid ColorMode in SetColorModeWithRenderIntent api. Currently they return Unsupported error. Change-Id: Ic56322f56170d2e421161c69ebf4900f86ec554c
2018-10-04hwc2: Update Vsync source dynamically.Pullakavi Srinivas
-- Treat powerstate transitions/hotplug events as a trigger to update vsync source. -- If no source is found, default to primary. -- If previous displays vsync status isn't available (can happen if displays are destroyed) try to enable vsync on alternate source. CRs-Fixed: 2306260 Change-Id: Ie2d19e22ee2f857830f3cf372e5516dfa84b9487
2018-10-01sdm: Fail core creation on DRMManagerInterface fatal errorsVarun Arora
Currently if any issue occurs with opening msm_drm the DRMManagerInterface will be null, but it is later used without any null checks. As this is a critical resource, fail creation of core instead. Change-Id: I1e8120089047798449ae2088c3ddff25004b4a16 CRs-Fixed: 2323370
2018-09-28Merge "sdm: Deprecate ResetPanel UEvent"qctecmdr Service
2018-09-27Merge "sdm: Support dpps AD4 ROI feature"qctecmdr Service
2018-09-27Merge "sdm: support QDCM for multi built-in display"qctecmdr Service
2018-09-27Merge "hwc2: Minor enhancements to pluggable code readability"qctecmdr Service
2018-09-27sdm: Deprecate ResetPanel UEventVarun Arora
ResetPanel UEvent is not supported on DRM. Change-Id: I5a529e0dfc3a6083ade369379ef690ddc2a91129 CRs-Fixed: 2323497
2018-09-27sdm: Support dpps AD4 ROI featureYuchao Ma
The change adds roi function descriptor and roi property for support user to set dpps AD4 roi feature. Change-Id: I8f331a38175f0866bcefacd98d87aaa59366ae85
2018-09-26Merge "Revert "hwc2: Treat pluggable displays as source of vsync""qctecmdr Service
2018-09-26Merge "sdm: unset ACTIVE crtc prop for HWTVDRM"qctecmdr Service
2018-09-26hwc2: Minor enhancements to pluggable code readabilityVarun Arora
Change-Id: I9c331fc05a7a6fd54bb32e88474375a5a7d98f4f CRs-Fixed: 2323363
2018-09-20Revert "hwc2: Treat pluggable displays as source of vsync"Varun Arora
This reverts commit d12f016bdf33bf21ef6dffed031a1279033266ca. Change-Id: Id01a9e213db03922f0f93bad94338315d20a4e55 CRs-Fixed: 2319732
2018-09-20sdm: unset ACTIVE crtc prop for HWTVDRMVarun Arora
PowerOff API should be unsetting crtc ACTIVE for proper bridge teardown. Unlike HWDeviceDRM, LP property does not apply to External and need not be set Change-Id: Id4a6d9cb057a26f3e19a0e8d29452dee4e586fd4 CRs-Fixed: 2277100
2018-09-20sdm: support QDCM for multi built-in displayXu Yang
Add QDCM support for multi built-in display case. Create ColorManagerProxy instance and get Color Interface for each built-in display. CRs-Fixed: 2267706 Change-Id: Ifdaf8a2adc3fdb266351286eea279b6dbe323e88
2018-09-19hwc2: Support doze mode on builtin displays.Pullakavi Srinivas
CRs-Fixed: 2200594 Change-Id: I5c4ea25deb1bdc9518767e9c35983c03deace0ca
2018-09-15Merge "hwc2: Treat pluggable displays as source of vsync"qctecmdr Service
2018-09-12hwc2: Add support for screen refresh on second builtin display.Dileep Marchya
Change-Id: I9b6a914a8c2d3427b0433eac93b0a0a0be12e261 CRs-Fixed: 2267706
2018-09-06hwc2: Treat pluggable displays as source of vsyncPullakavi Srinivas
CRs-Fixed: 2306260 Change-Id: Ibf9f31b0f6d81b4fe7de69567abdbdd2c021c41d
2018-08-23Merge "hwc2: Check for display already used by another slot"qctecmdr Service
2018-08-18hwc2: Remove double scope-lockingMathew Joseph Karimpanal
Remove unnecessary scope-locking while destroying virtual display. CRs-Fixed: 2296054 Change-Id: If3b3f39611409f54d0ca4253b44625ce035cf713
2018-08-18hwc2: Check for display already used by another slotMathew Joseph Karimpanal
Before connecting a display at an unused slot, check if the display is already used at another slot. CRs-Fixed: 2200594 Change-Id: I2b4c4a73a057bac29f3a907378a0f83934a0603c
2018-08-17Merge "hwc2: Fix GetReadbackBufferAttributes api"Linux Build Service Account
2018-08-09sdm: Define client interface to enable/disable idle pcRamkumar Radhakrishnan
1. Define client interface to enable/disable idle power collapse 2. Maintain refcount to handle concurrent enable/disable 3. Trigger the screen refresh and wait for the next frame commit done event before returning the control to the client on disable idle pc 4. Enable idle pc on suspend and reset the refcount 5. Add binder support to enable/disable idle pc CRs-Fixed: 2255316 Change-Id:Ibcaf9d4edca502cc91e9b201be822bd48313a635
2018-08-08hwc2: Fix GetReadbackBufferAttributes apiSushil Chauhan
Fix GetReadbackBufferAttributes api to get the Dataspace from current ColorMode of HWC Display. CRs-Fixed: 2288505 Change-Id: I75325d21b01e517236eb3c8124c706952103ae9b
2018-08-02hwc2: Add support for optional user preferencesSushil Chauhan
Add support for optional user preferences of output buffer format and post-processed flag, in the HWC binder command to dump frame output. CRs-Fixed: 2254012 Change-Id: I33298fab5122c1fa8e687b72dfa429e287261afb
2018-07-29hwc2: Fix pluggable displays creation during bootDileep Marchya
- Fix primary display readiness flag setting. This flag shall be set before trying to create pluggable displays. Change-Id: I6b2d0c3d247891a981005f30cb7f7d6157393b32 CRs-Fixed: 2200594
2018-07-25Merge "hwc2: Switch vsync source to next active display"Linux Build Service Account
2018-07-18hwc2: Switch vsync source to next active displaySrinivas Pullakavi
- Source vsyncs from next active display among builtin displays when primary display is powered off. - Report back vsync timestamps as primary to the client. - Source vsyncs back from primary display when the display is powered on again. CRs-Fixed: 2200594 Change-Id: I453d7e19d982dadbfe5ff7b024a9ddc703578be3
2018-07-18sdm: Handle secure display/camera with external displayRajavenu Kyatham
- Handle external/virtual display connect/disconnect during secure display/camera. CRs-Fixed: 2200594 Change-Id: Ib96fd588e6530077aeaf79b2ff732bffddc593db
2018-07-18hwc2: Add support for multiple displaysDileep Marchya
- Add support for an additional display which can be either a builtin display or pluggable display. - Restructure HWCDisplayPrimary as HWCBuiltIn and HWCDisplayExternal as HWCDisplayPluggable. - Refactor hotplug handling. Iterate through all pluggable displays, and check present connection status. Connect/disconnect a given display if connection status has changed. CRs-Fixed: 2200594 Change-Id: Ibd2f93ddfbe72af58220691ad481469c8fdcbf86
2018-07-11hwc2: Add support for per frame layer metadataNaseer Ahmed
Change-Id: Icd7093690954b30ce99e72119a740c6bfb636a7d CRs-Fixed: 2237407
2018-07-11sdm: hwc2: Plumb render intent APIsNaseer Ahmed
* Add support for color mode with render intents. * Remove transform hints as they are unused. * Add saturation matrix, read from a property by default. Change-Id: Ic8526854cbdcb8f6fe1f2b2b260b3999a5c4571a CRs-Fixed: 2235178
2018-06-18sdm: Add binder support to set QSync modeSushil Chauhan
Change-Id: I18c46235a4b5f79ea7636cf7ba1d00d37280e6b1 CRs-Fixed: 2197669
2018-05-23hwc2: HWC Readback is not supported in case of multiple displaysSushil Chauhan
- HWC Readback feature is not supported if multiple displays are present. - Avoid Skip Validate when HWC Readback is used to dump multiple frames output with HWC binder command. CRs-Fixed: 2230611 Change-Id: Id18337a2fb3bec050319922641e159490067d08a
2018-05-23sdm: hwc2: Add support for HWC Readback featureSushil Chauhan
Add support for HWC Readback feature in HWC2 and SDM. CRs-Fixed: 2217822 Change-Id: If2df64dc0bdea7a9ca4c2b0498f1cd3f3dc9de9d
2018-05-21sdm: comply with treble guidelinesUday Kiran Pichika
Modify the property names and use macros in place of them CRs-Fixed: 2206249 Change-Id: I0ccc09fc8335560654e487e78552f79ff7a083de
2018-05-11Revert "sdm: comply with treble guidelines"Ramkumar Radhakrishnan
This reverts commit 2c7883af397db01cd3268500f6548860f60f8cf4. Change-Id: Ibea21d2235c0b4615336ad7b1436b03a1bdf33d6 CRs-Fixed: 2240944
2018-05-09sdm: comply with treble guidelinesUday Kiran Pichika
Modify the property names and use macros in place of them CRs-Fixed: 2206249 Change-Id: I5ae790ca62a258b0d7c14931e0132727feed48a3
2018-05-04sdm: Handle secure display/camera with external displayRamkumar Radhakrishnan
1. Define interface to notify start/end of secure display session 2. Do dim layer commit on any flush or null commit during secure display session 3. Handle external/virtual display connect/disconnect during secure display/camera. 4. Pause virtual display during secure display/camera and pause external display during secure display. Change-Id: Ie50b46044d26c50a660d5098cfa02a34cf005382 CRs-Fixed: 2181274
2018-05-03Merge "hwc2: Flush while destroying external display."Linux Build Service Account
2018-05-02hwc2: Flush while destroying external display.Rajavenu Kyatham
- On external display, outstanding fences are not signaled during destroy. They get signaled only on drm_release and drm_release happen in composer restart. So need to flush external before destroying. CRs-fixed: 2187232 Change-Id: I0a7f029237cb0d8015904565c0755731a7b27212
2018-05-01display: hardware recoveryVarun Arora
Implements HW Recovery feature. If hw enters an unstable state due to lack of validation, userspace bugs, driver bugs, or hw programming error, driver attempts to recover the hardware and informs userspace to capture register dumps on-target. In extreme case, driver will request a power reset. Change-Id: Id0069696433b8cb49f67b6d2f37eb2d05f8e5953 CRs-Fixed: 2196904
2018-05-01hwc2: Use libdebug defined macros for logging.Dileep Marchya
Change-Id: Ia44904aac0a54edf9f61b1789a4362a939d490ea CRs-Fixed: 2211061
2018-04-18sdm: Use generic libdebug utility.Dileep Marchya
CRs-Fixed: 2211061 Change-Id: Ib949c40ff63a61a4476876c45357a40a702c9a01
2018-03-21display: hwc_buffer_allocator fixesNaseer Ahmed
Fixes an issue where the HWC init randomly blocks on the allocator init by doing a lazy initialization of the allocator object. The allocator may not have fully initialized at HWC init. Also, increases the allocator connection threadpool to 4. Change-Id: I38454ee25aaf2a211125e55297300eac754fb5cf CRs-Fixed: 2201202
2018-02-21hwc2: Do internal ValidateDisplay to optimize Skip ValidateSushil Chauhan
If a display is in Skip-Validate state and Validate cannot be skipped, do internal validation in the PresentDisplayInternal API, to optimize Skip Validate feature by completing the draw cycle in 1 IPC call for the frames which don't require the Client composition on any layer. CRs-Fixed: 2119351 Change-Id: I53313ae13681e84c0d7e9c3b7671feac3681051f
2018-02-16Merge remote-tracking branch 'quic/display.lnx.4.0' into display.lnx.5.0Arun Kumar K.R
Conflicts: sdm/libs/hwc2/display_null.cpp sdm/libs/hwc2/display_null.h Change-Id: I949370bf73a0b21be5769339488104ba9d4eda79
2018-02-14Merge "sdm: Fix refresh seqeunce for QDCM solid fill color"Linux Build Service Account