summaryrefslogtreecommitdiff
path: root/sdm
AgeCommit message (Collapse)Author
2019-05-30hwc2: Teardown CWB before suspendandroid10-devNaseer Ahmed
Teardown CWB before suspend. So that resume can go without any CWB. Bug: 130203599 Bug: 130512159 Test: run vts -m VtsHalGraphicsComposerV2_2Target Acked-by: Ramakant Singh <ramakant@codeaurora.org> Change-Id: I913279aafef9dc246ba9e22e74ffadc59f5c3737
2019-04-11Remove getDisplayBrightnessSupport register.Peiyong Lin
Brightness is already a per display capability, we don't need this API. BUG: 130313275 Test: build Change-Id: I56658285020307b0f1d2203b41de029075710239
2019-04-10Register GET_DISPLAY_CAPABILITIES function pointer correctly.Peiyong Lin
BUG: 130195295 Test: atest VtsHalGraphicsComposerV2_3Target Change-Id: I1e1b6754c0c7703b413c12800eceef76d1927ee8
2019-04-09Merge changes from topic "readbackfix-qcom" into qt-devValerie Hau
* changes: hwc2: Teardown CWB in Create Virtual Display Revert "sdm: Fix Concurrent Writeback fence handling"
2019-04-09Merge "hwc2: Add color compensation feature for adaptive color mode" into qt-devTreeHugger Robot
2019-04-08hwc2: Teardown CWB in Create Virtual DisplayGurpreet Singh Dhami
Teardown CWB in Create Virtual Display. This is required to free up WB resources if they are already reserved by readback api calls. Change-Id: Icbfedc22c67357688daef1ba559e386c3a3add70 Bug: 118337749 Test: VtsHalGraphicsComposerV2_2TargetTest
2019-04-08Revert "sdm: Fix Concurrent Writeback fence handling"Gurpreet Singh Dhami
This reverts commit 468c1e1ba74179022a55d1e4c79e511693ca276e. Bug: 118337749 Test: VtsHalGraphicsComposerV2_2TargetTest Change-Id: Ice33e8f950e5ddee567d8b56500f1b073d1270c3
2019-04-08hwc2: Add color compensation feature for adaptive color modelinpeter
Using transfer matrix to do color compensation for adaptive color mode. Feature provides white compensation and saturation compensation. It configured by property vendor.display.adaptive_white_coefficient and vendor.display.adaptive_saturation_parameter. In addition, white compentation needs device calibraiton data (persist/display/calibrated_rgb) to calulate compensated value. And it has interface command to enable/disable. adb shell vndservice call display.qservice 201 i32 0 i32 1 Bug: 121231574 Bug: 116282483 Bug: 123483411 Test: Switch mode test and check dumpsys information (Need WhiteCompensation, Need SaturationCompensation, current transform) Change-Id: I5e1aabc31ffdd25172049f745ea4c74b7db02454
2019-04-05hwc: Fix issue with fallback for solid color layerTharaga Balachandran
Bug: 129797327 Test: manual Change-Id: I78c029e1b05e78b94fba4ab04e59bb3f39eafb89
2019-04-01Merge "Merge remote-tracking branch ↵Robin Peng
'goog/qcom/release/LA.UM.7.8.9.C1.08.00.00.516.101'"
2019-03-26sdm: Update secure flag of FBT buffer appropriatelyNaseer Ahmed
Update secure flag of frame buffer target buffer from sdm layer stack to hwlayer stack during commit Change-Id: Ie351fe45434bf918a7d5e41b7d7393c6742344ee CRs-Fixed: 2340051 BUG: b/35315015, b/127862411 Test: Verify with protected video playback Acked-by: Ramkumar Radhakrishnan <ramkumar@codeaurora.org>
2019-03-13Validate FD when reporting brightness support.Michael Wright
If we fail to open the brightness sysfs node, then we shouldn't report that we support setting the brightness since any attempts fail. Also, fix capabilities count. This was accidentally left in when moving brightness support from a global capability to a display-specific one. Bug: 128496688 Test: manual Change-Id: Ie623b98232481bca3c0f955b259a3b168c83cf2e
2019-03-14Merge remote-tracking branch 'goog/qcom/release/LA.UM.7.8.9.C1.08.00.00.516.101'Robin Peng
Bug: 128508596 Change-Id: Ifba77da45472df2819aa19d686def0af1a0cbb6b
2019-03-08Moved brightness from Lights to SF.Dan Gittik
Test: manual. Check that brightness works. Fixes: 111435292 Change-Id: Ibce46fa763584962bd37734010a8b0c178cc4a7b
2019-03-01hwc: Fix issue with configuring dataspace for solid color layerTharaga Balachandran
Bug: 126713799 Change-Id: I779b921055826124118dc2703fb0253c29d24326
2019-02-14hwc2: Validate bounds check for input parcel.Subash Chander
CRs-Fixed: 2394384 Change-Id: Iba254b3579cd2c258c3cf80fe234a0de7d75e599
2019-02-14Merge remote-tracking branch 'goog/qcom/release/LA.UM.7.8.9.C1.08.00.00.516.083'Robin Peng
Bug: 124397977 Change-Id: Ief65f25b171c30157b200ee67209055a4003a635
2019-01-28Merge remote-tracking branch 'goog/qcom/release/LA.UM.7.8.9.C1.08.00.00.516.007'Yichi Chen
Bug: 121228685 Bug: 122560586 Change-Id: Ic8e8b796d90f6ac7638be768b45a70c3846ae682
2019-01-24[sdm845] Remove log spam.Peiyong Lin
It's necessary to print out the supported color modes. BUG: 123312783 Test: Build, flash and boot. Check logcat. Change-Id: Iee7c682af7f1c096659ce25e3d4282faa797b1ca
2019-01-23hwc: Return error code NoResources if create virtual display failsGurpreet Singh Dhami
Returning error code as NoResources is better because resources could be occupied by the other display. Currently error code as "Unsupported" is returned. Change-Id: I41b8511ba27c2d2769823c1984bc4a595aaae413
2019-01-02composer: add time filtering to display histogramKevin DuBois
Adds the ability to filter the content sample by timestamp and or a framecount. This lets API user limit the returned sample to data most proximate to the time that the user is interested in it. Fixes: 120992129 Test: boot Test: new unit test for ringbuffer logic. Test: color_sampling_tool Test: TestAPI app limiting by maxframes Test: VtsHalGraphicsComposerV2_3Target (32/36 as before) Change-Id: I8dd9efc9935570f0f1ab015476ffa8883651073e
2018-12-27hwc2: Fallback to GPU composition for sRGB-linear and P3-linearTharaga Balachandran
Bug: 120445231 Test: Build, flash and boot. Verify with demo app. Change-Id: I3c6a56f4b7ff2ca610b275489c73a1a2e643ed88
2018-12-17graphics.composer: graphics.composer@2.3 display samplingKevin DuBois
Add histogram sampling functions for the 2.3 interface additons that allow for framework to drive the color sampling engine on this device. Change-Id: I0547d7fe4829ce5717589019a7246e65d8da8eae Bug: 116028976 Test: Boot Test: new PTS test Test: histogram sampling report in dumpsys Test: @TestApi based prototype visualizing data Test: atest VtsHalGraphicsComposerV2_3TargetTest
2018-12-14sdm: Clear solid fill stages upon flushTharaga Balachandran
Solid fill stages persist after empty commit because the property DIM_STAGES_V1 is set during solid fill creation but not cleared by HWDeviceDRM::Flush(). This commit clears solid fill stages and updates the property. Bug: 118337749 Test: ./VtsHalGraphicsComposerV2_2TargetTest Change-Id: I017b44094286f89c315d16e0de6717f6ffae7b76
2018-11-26hwc2: Fix compile errors in switch statement.Anjaneya Prasad Musunuri
Fix compile errors because of fall through switch statements. CRs-Fixed: 2352498 Change-Id: I5ec641a2eeee1cfc4bf6750903c6287c5a137d9e
2018-11-14sdm: Clear solid fill stages upon flushTharaga Balachandran
Solid fill stages persist after empty commit because the property DIM_STAGES_V1 is set during solid fill creation but not cleared by HWDeviceDRM::Flush(). This commit clears solid fill stages and updates the property. CRs-Fixed: 2348615 Change-Id: I017b44094286f89c315d16e0de6717f6ffae7b76
2018-11-13Merge "hwc2: Check and return valid error from ControlIdlePowerCollapse"Linux Build Service Account
2018-11-09hwc: Enable local conversion from BT2020 to DCI-P3 for videoYichi Chen
As the support of BT2020 in SF, it is mapped to DCI-P3 for better color space mapping. To ensure video content in BT2020 be composed by HWC, enable the local conversion to support this case. Bug: 118870669 Test: UHD secure video in Dataspace::BT2020 can be played with HWC UHD non-secure video in Dataspace::BT2020 is played with HWC Change-Id: I2a0879198f460be77530aefd2cdbea89e8a4de0b
2018-11-05hwc2: Check and return valid error from ControlIdlePowerCollapseRamakant Singh
Idle Power collapse is not supported by video mode panel. Change-Id: I5be0f2efcb2f3b22951968fabb74b48d76e6fb22 CRs-Fixed: 2320046
2018-11-02sdm: Update HW layer buffer id from the SDM layerRajavenu Kyatham
- updated buffer id is used for rotator caching decision Change-Id: I6db58a32517436986357dc9e0f6ca068969a1796 CRs-Fixed: 2344358
2018-10-29Allow implicit-fallthrough warnings in hwc_display.cpp. am: 7e6a23d367 am: ↵Chih-Hung Hsieh
980da5838e am: 825e187912 Change-Id: I0d4f426f031d0a2e8ebfbd70063459dbb32c133d
2018-10-29Allow implicit-fallthrough warnings in hwc_display.cpp. am: 7e6a23d367Chih-Hung Hsieh
am: 980da5838e Change-Id: Ib7981bb5a118a1ef81149ac903c4587dfc87b541
2018-10-29Allow implicit-fallthrough warnings in hwc_display.cpp.android-wear-8.0.0_r2Chih-Hung Hsieh
It will be a global error by default. Test: make checkbuild Bug: 112564944 Change-Id: Ifd34b1b510aa740cb25c098b3e9859cdec5ecf9d Exempt-From-Owner-Approval: do not block on new warnings
2018-10-25graphics.composer link to graphics.composer@2.3Kevin DuBois
Link the sdm845 composer to the graphics.composer@2.3 lib so that we can boot up a 2.3-service. Test: boot Bug: 116028976 Change-Id: I5108fab1655127ffd9e0a762b0b60156b7a42252
2018-10-25[REVERT] sdm: Allow poweron before first commit.Pullakavi Srinivas
This change reverts I5f726c3b9c106fdc047d67591918d82939e45311 CRs-Fixed: 2305135 Change-Id: Iab7b8691ba97821e2e60f2af6e28ba865b61325a
2018-10-17Merge "hwc2: Reset validate on surface damage region update."Linux Build Service Account
2018-10-17Merge "hwc2: Fix PU disable for multiple Concurrent Writeback frames"Linux Build Service Account
2018-10-15sdm: Fix Concurrent Writeback fence handlingPrabhanjan Kandula
Fence get is now part of atomic commit. Update fence get property for Concurrent Writeback before pushing commit. Change-Id: Ib089633408dd801cff8a0b779401521e1c3bbfec
2018-10-11hwc2: Fix PU disable for multiple Concurrent Writeback framesSushil Chauhan
Fix the disabling of Partial Update feature, in case of Concurrent Writeback for multiple frames. CRs-Fixed: 2318849 Change-Id: Id34eb53b101cf445eacb7d7e9716ae5b8d3a7ac7
2018-10-10hwc2: Reset validate on surface damage region update.Pullakavi Srinivas
Video mode panels make use of dirty regions to recompute aggregated fb roi that needs to be cropped from cached buffer. Reset validate to update appropriate rect. CRs-fixed: 2326636 Change-Id: I9e6519ca833f84c36d9fa6fb8270ccf3d1fcf83d
2018-09-26composer: add color sampling to dumpsysKevin DuBois
Add a thread that monitors the DRM control nodef for color sampling events. Report this via dumpsys. This will be used to also provide additonal context for display management in the framework. Bug: 112756444 Test: boot, see dumpsys, no corruption. Test: ./color_sampling_tool see statistics. Test: pts-tradefed run pts -m PtsComposerTestCases Test: adb shell vndservice call display.qservice 39 i32 1 i32 {1,0} Change-Id: Ia0f02390ebeadab04c8cd81219d07112bd69c2f0
2018-09-25sdm: Allow poweron before first commit.Pullakavi Srinivas
Set CRTC mode while poweron, so that poweron and poweroff can be performed without commit in between. CRs-Fixed: 2305135 Change-Id: I5f726c3b9c106fdc047d67591918d82939e45311
2018-09-09Merge "hwc2: Fix GetDozeSupport api to handle failure case"Linux Build Service Account
2018-09-05hwc2: 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. Bug: 113347082 Bug: 113339753 Test: ./VtsHalGraphicsComposerV2_2TargetTest Change-Id: Ic56322f56170d2e421161c69ebf4900f86ec554c
2018-09-04hwc2: 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-08-30Merge "hwc2: Wait for retire fence after populating it from layer stack"Linux Build Service Account
2018-08-24hwc2: Fix GetDozeSupport api to handle failure case.Gurpreet Singh Dhami
Fix for GetDozeSupport api to return BAD_DISPLAY error, if that display doesn't exist. Bug: 112774756 Test: ./VtsHalGraphicsComposerV2_1TargetTest --gtest_filter=GraphicsComposerHidlTest.GetDozeSupportBadDisplay Change-Id: I53c61d0d0adc3850ef9e82da189c4d8141466c93
2018-08-23hwc2: Fix GetDozeSupport api to handle failure caseGurpreet Singh Dhami
Fix for GetDozeSupport api to return BAD_DISPLAY error, if that display doesn't exist. Change-Id: I53c61d0d0adc3850ef9e82da189c4d8141466c93
2018-08-21sdm: 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-19hwc: Enhance local conversion issue for non-secure video am: e5239bcff7Yichi Chen
am: f1b07b2804 Change-Id: I4203cfccd19c2ec1c1b990a256727145e53fc730