summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* hwc2: Night light causes major stuttering.pie-devGousemoodhin Nadaf2018-05-242-5/+9
| | | | | | | | | | - 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
* Merge "display: msm8909w caf release LW.BR.4.0-00800-8x09w.0 for SD2100." ↵Ben Fennema2018-05-18295-21464/+50516
|\ | | | | | | into pi-dev
| * display: msm8909w caf release LW.BR.4.0-00800-8x09w.0 for SD2100.Ben Fennema2018-05-08295-21464/+50516
| | | | | | | | | | | | | | | | | | MSM8909W display HAL code copied from CAF release LW.BR.4.0-00800-8x09w.0. Bug: 79356346 Test: build Change-Id: Ie801976595c8ed9164b0d91737f5daf40764d8a6 Signed-off-by: Ben Fennema <fennema@google.com>
* | Merge changes Id8595dcb,I50c4227d,Ic7b31bbd,I26ef3b1a,I4c9727ad into pi-devTreeHugger Robot2018-05-1110-29/+93
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * | hwc2: Check for color modes supportSushil Chauhan2018-05-101-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | Check for color modes support by Display, before marking layer as HDR. Bug: 79541227 CRs-Fixed: 2102517 Change-Id: Id8595dcb322900f98556c40fde94fa88e3ec4e39
| * | sdm: allow commits in doze_suspend as well.Rajavenu Kyatham2018-05-101-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | - revert of I495cd9748f6dbdf7b1dd80cffa35759e529ff7cf Bug: 79541227 Change-Id: I50c4227d4855673e093fcba38a6454edaf0e1bf7 CRs-Fixed: 2140924
| * | hwc: Fix request flag reset and Present() bailoutSaurabh Shah2018-05-102-13/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | sdm: hwc2: Add support for TWM entry and exit.Rajavenu Kyatham2018-05-108-7/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
| * | hwc2: Determine virtual display presence based on target specific propertyBharath Gopal2018-05-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | sdm: Protect unbalanced ROI in dumpArun Kumar K.R2018-04-271-4/+6
| |/ |/| | | | | | | | | | | | | | | Validate right roi before using them in when dumping the frame information. Bug: 73253473 Change-Id: Ifa75c83d33f3d76914b47c9c8168eb4061ac5f88 Acked-by: Gousemoodhin Nadaf <gnadaf@codeaurora.org>
* | Merge "hwc2: Handle Gamma2.8" into pi-devJeff Tinker2018-04-201-1/+4
|\ \
| * | hwc2: Handle Gamma2.8Arun Kumar K.R2018-04-191-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "gralloc: Add missing BT601_6_625 handing" into pi-devJeff Tinker2018-04-201-0/+1
|\ \ \
| * | | gralloc: Add missing BT601_6_625 handingArun Kumar K.R2018-04-191-0/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | hwc2: Skip validation fixesNaseer Ahmed2018-04-184-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | hwc2: Layer buffer fence fd leakGousemoodhin Nadaf2018-04-121-1/+4
| |/ |/| | | | | | | | | | | | | Close acquire_fence_fd to avoid fence fd leak. Bug: 77140352 Change-Id: I32eacdf658f59c21f45955d34dd3de5751badbe4
* | hwcomposer: Work around overzealous fortify checksTim Kryger2018-03-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Make hwc_vsync thread realtimeErik Wolsheimer2018-03-291-2/+5
| | | | | | | | | | Bug: 68395248 Change-Id: I4ac93464aa2ccf416577b4067ed658b525089983
* | sdm: send unique power state in doze and doze_suspend.Alain Vongsouvanh2018-03-291-1/+1
|/ | | | | | | | This is a manual merge of CAF commit e7da5462bc8d7e8c2a8c1595ae12949237183979. BUG: 76115647 Change-Id: I8b04ba1c130556613e2bf6b32affce4965f95b46 (cherry picked from commit a01e3f5f6d0905c14537cacebad296babc34b6d2)
* Use libhwui.so instead of libskia.soAlexey Polyudov2018-02-271-1/+1
| | | | | Change-Id: Ie60ee11910f7e0b2da20e8634c38265e86b5742c Signed-off-by: Alexey Polyudov <apolyudov@google.com>
* hwc2: avoid adding default color mode when display PP is unsupported.Ch Ganesh Kumar2018-02-202-2/+11
| | | | | | | | | | For targets that do not support display post processing, setting of color modes is a no-op. The inclusion of the default Identity color mode in the color transform map will be avoided when the flag TARGET_EXCLUDES_DISPLAY_PP is set in order to signify that no color modes are supported when PP features are not supported in the target Change-Id: If3929b38ec7a093498c404da1798eaccbc97a281
* hwc2: hwc: Validate input parcel values for few qclient methods.Rohit Kulkarni2018-02-202-6/+10
| | | | | | | | Validate values read from input parcel as part of handling of few qclient methods Change-Id: Icf928f409a5c2ac76a73e95de58cb0ebc59d24d5 CRs-Fixed: 2114346
* hwc2: Fix NULL pointer dereference and out of bound accessRamkumar Radhakrishnan2018-02-202-2/+31
| | | | | Change-Id: Ib7a2ce818b1e6f5203f03138a95b2754ff446127 CRs-Fixed: 2114346
* gralloc1: Check input addresses for nullSaurabh Shah2018-02-202-11/+93
| | | | | Change-Id: Iddfcc07e50d3503a69b3604e5bd7f025f2b20534 CRs-Fixed: 2114346
* Fix logic to use uncached for READ/WRITE_RARELYChong Zhang2018-02-161-4/+4
| | | | | | bug: 72940776 Change-Id: I76a9abfa6295095fb1f1e8aa15066c79ab1c143b
* display: fix compilation issues for 3100.Alain Vongsouvanh2018-02-095-4/+5
| | | | | | | | | * Add missing headers. * Remove unused variables. * Remove unknown dependencies. BUG: 73113371 Change-Id: If15612aa6ac4a59db652e02d66355701e240d688
* sdm: block commits in doze_suspend stateRajavenu Kyatham2018-02-081-1/+7
| | | | Change-Id: I495cd9748f6dbdf7b1dd80cffa35759e529ff7cf
* sdm: Avoid rotator for MDP3Rajavenu Kyatham2018-02-081-1/+2
| | | | | Change-Id: I9de7b904a36b419dd5516ff01051c84687bd0c78 CRs-Fixed: 2162502
* sdm: unify doze and doze_suspend on 8909wRajavenu Kyatham2018-02-081-8/+1
| | | | | | | | | - Legacy hal doesn't maintaining two different modes like doze and doze_suspend. - Legacy hal uses FB_BLANK_VSYNC_SUSPEND. CRs-Fixed: 2140924 Change-Id: I080b43089d335eff65c29de60c67112d5a4f1dd9
* libgralloc: Fix adding offset to the mapped base addressSundara Vinayagam2018-02-081-2/+2
| | | | Change-Id: I16f0625af343f6a05ee54285cdca8b6a56fc511e
* sdm: Fallback on scRGB layersNaseer Ahmed2018-01-292-1/+12
| | | | | | | | We don't know how to handle blending when scRGB layers show up. Fallback entirely to GPU. Bug: 72125973 Change-Id: Ib01ac0c920bd34f011f0a4d3e76e71d4c7b036e2
* Merge "hwc: Fix request flag reset and Present() bailout"Adrian Salido2018-01-262-15/+8
|\
| * hwc: Fix request flag reset and Present() bailoutNaseer Ahmed2018-01-242-15/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: 71538967 Change-Id: Ic7b31bbd07a22b8df47fccb2024b3415ab3a559b CRs-fixed: 2165926 Acked-by: Saurabh Shah <saurshah@codeaurora.org>
* | Explicitly export headers from gralloc.* and gralloc_headersJiyong Park2018-01-262-1/+3
| | | | | | | | | | | | | | | | | | | | | | Publicly visible headers of the lib uses other headers from liblog and libhardware. Therefore, explicitly export the required headers so that the client that is using this library doesn't need to add additional dependency. Bug: 69526027 Test: mma -j under libgralloc1 Change-Id: I532bc43e0d8ff428008709d95983ec98342017d8
* | Merge "Make libqservice build with the VNDK."TreeHugger Robot2018-01-261-0/+1
|\ \
| * | Make libqservice build with the VNDK.Steven Moreland2018-01-251-0/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | When the vndk is enabled (BOARD_VNDK_VERSION=current), vendor libraries must only link against vendor variants in the build system. This also means that they receive restricted sets of headers and that automatic global headers are restricted. Test: build libqservice with BOARD_VNDK_VERSION=current Bug: 69526027 Change-Id: Id98bf5e2ecc6f514f1d4dd9580d25027f36e0d86
* | Merge "Make memtrack build with the VNDK."TreeHugger Robot2018-01-262-2/+2
|\ \
| * | Make memtrack build with the VNDK.Steven Moreland2018-01-252-2/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | When the vndk is enabled (BOARD_VNDK_VERSION=current), vendor libraries must only link against vendor variants in the build system. This also means that they receive restricted sets of headers and that automatic global headers are restricted. Test: build memtrack with BOARD_VNDK_VERSION=current Bug: 69526027 Change-Id: Ie3cb9ffb72931fbb0cc816f5158a649e09f7bb43
* | Merge "Import headers for enabling VNDK."TreeHugger Robot2018-01-262-0/+3
|\ \
| * | Import headers for enabling VNDK.Steven Moreland2018-01-252-0/+3
| |/ | | | | | | | | | | | | | | | | These modules don't explicitly declare their dependence on hardware/gralloc1.h Bug: 69526027 Test: mma -j BOARD_VNDK_VERSION=current Change-Id: If9e5636635c7d039d7fa924cb51fa5f838ee6bca
* / Make light build with the VNDK.Steven Moreland2018-01-252-1/+2
|/ | | | | | | | | | | | When the vndk is enabled (BOARD_VNDK_VERSION=current), vendor libraries must only link against vendor variants in the build system. This also means that they receive restricted sets of headers and that automatic global headers are restricted. Test: build light with BOARD_VNDK_VERSION=current Bug: 69526027 Change-Id: I8ad1da8aa2802a93493c877644266995c59f18ab
* Include string.hMartin Brabham2018-01-223-0/+3
| | | | | | | | | libgralloc: strerror needs string.h libqdutils: strerror needs string.h libcopybit: memcpy needs string.h Bug: 72343089 Change-Id: I36226fd656d26c4d0486d1c99f2317376c0d08dd
* Merge "Include what we use." am: c24cbf3829 am: 772a4baaa6Dan Albert2018-01-182-0/+2
|\ | | | | | | | | | | am: a90df9f941 Change-Id: I65af6fdca335304d9ea7ee2339fd89f3b42cd76b
| * Merge "Include what we use." am: c24cbf3829Dan Albert2018-01-182-0/+2
| |\ | | | | | | | | | | | | | | | am: 772a4baaa6 Change-Id: I1178bfc3a3c3cfc70d1e8208a2492c4845b2d728
| | * Merge "Include what we use."Dan Albert2018-01-182-0/+2
| | |\ | | | | | | | | | | | | | | | | | | | | am: c24cbf3829 Change-Id: I00bb163c9089918188481ede0854acdfa69a1f80
| | | * Merge "Include what we use."android-wear-p-preview-2android-wear-8.0.0_r1android-p-preview-5android-p-preview-4android-p-preview-3android-p-preview-2android-p-preview-1android-o-mr1-iot-release-1.0.2android-o-mr1-iot-release-1.0.1android-o-mr1-iot-release-1.0.0android-o-mr1-iot-preview-8android-o-mr1-iot-preview-7android-n-iot-release-smart-display-r2android-n-iot-release-smart-displayandroid-n-iot-release-polk-at1android-n-iot-release-lg-thinq-wk7o-mr1-iot-preview-8o-mr1-iot-preview-7Treehugger Robot2018-01-182-0/+2
| | | |\
| | | | * Include what we use.Dan Albert2018-01-182-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: None Test: mm Change-Id: I664f436e233e284339fbab86701ac7279e8e8aa1 Exempt-From-Owner-Approval: Janitorial
* | | | | Merge "Libgralloc: Fix missing include" am: ce46f1136d am: 0813333914Andreas Gampe2018-01-181-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 78c8f17661 Change-Id: I3408214912a6fd1968879c43b5fd5c244caf9bb2
| * | | | Merge "Libgralloc: Fix missing include" am: ce46f1136dAndreas Gampe2018-01-181-0/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 0813333914 Change-Id: Id339c250ad620f1098a085bc7c9a9907115aa0f0
| | * | | Merge "Libgralloc: Fix missing include"Andreas Gampe2018-01-181-0/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: ce46f1136d Change-Id: If470781ccbcdc162725441bc385b2f9a3a0b7666