summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-09-07vendor-freeze: Move few commonsys-intf libs to commonsysumineko-8150tachibana-8150Gurkaran Singh
Moved libdisplayconfig.qti, libqdMetadata, and libgralloc.qti from vendor/qcom/opensource/commonsys-intf/display to hardware/qcom/display to install in vendor Change-Id: I0627decb40a2d355157ac6909479765781cbdd6b LNXDISPLAY-1552: REQ002 CRs-Fixed: 2972776 (cherry picked from commit ba7898d5e88d0a81f972558811b9d7acaae11ba0)
2023-04-20gralloc: Fix Compilation errorsVinoth Jayaram
Include -Wno-sign-conversion flag to avoid sign conversion warning. Change-Id: I576ec57856ac1cab25ca657dcadbfbfa1dddf33c
2022-09-05hwc_session: move a breakGeorge Burgess IV
As written, this loop only runs once, which makes clang's new warning unhappy: hardware/qcom/sm8150/display/sdm/libs/hwc2/hwc_session.cpp:934:51: error: loop will run at most once (loop increment never executed) [-Werror,-Wunreachable-code-loop-increment] Chatting with qcom, this appears to be a bug, and the best fix is to move the `break` into the `if`. Bug: 150166387 Test: TreeHugger Change-Id: Icb64eed5b894b9188f5265094587dd802207ba66
2022-09-05fix -Wunreachable-code-loop-incrementGeorge Burgess IV
`glGetError()` may return more than one error, yet these loops never iterated more than once. This CL fixes that, and cleans up some useless casting. Same fix as Ib2d3a6a95726fa954426a3644635dcf41fb571db. Bug: 150166387 Test: TreeHugger Change-Id: Ie569d385bb67fe2fdf2003577614e6b35ed9f17c
2022-09-05display: Drop LOCAL_COPY_HEADERS usagePig
LOCAL_COPY_HEADERS is deprecated, so remove all its usages to avoid build warnings. Change-Id: I964a11f036e03fb9fa2dec05a1698c118b06b421
2022-09-05sdm: mark FOD pressed layer by setting a bit on ZPOSDemon000
Change-Id: Ie1503da41766c31c9ec31bbb4282ae9ed62defce
2022-09-05gralloc: Add option for unaligned YCrCb pixel formatWilli Ye
* Same problem as unaligned NV21_ZSL (Samsung Galaxy A70 needs this) Change-Id: Iddf19433ddef8023b9fa3f7b735f40039dafe3a6
2022-09-05gralloc: Add option for unaligned NV21_ZSL pixel formatLuK1337
* Not sure why this is a thing but on some devices (eg. Samsung Galaxy Tab S5e) aligning NV21_ZSL to 64 results in invalid width and height. Change-Id: I8611752798a8c66ba55d52d826aa532fd76abe33
2022-09-05gralloc: Add option for YCrCb venus camera previewSGCMarkus
On judypn (LG V40) camera preview has red/blue colors switched with HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS but HAL_PIXEL_FORMAT_YCrCb_420_SP breaks camera preview entirely. When using HAL_PIXEL_FORMAT_YCrCb_420_SP_VENUS camera preview works fine, with correct colors. Change-Id: I84ffcbbeb66acf4401294de6b4f3cf846c7530b9
2022-09-05gralloc: Allow devices to opt-in for YCrCb camera previewLuK1337
* Some stock camera HAL implementations output video stream in YCrCb instead of YCbCr. Change-Id: I562847dfd9bcf796052f6fd7263e2affbd601384
2022-09-05Add C2D_FORMAT_BT601_FULLRANGE to C2D_FORMAT_MODEBruno Martins
* Another definition that CAF forgot to include in public HALs, leading to libc2dcolorconvert target breakage. Change-Id: Ida86923bcf9b8298a728bd0dcd08cf0410b2a8c9
2022-09-05Add C2D_COLOR_FORMAT_420_TP10 to C2D_YUV_FORMATLuK1337
* It seems like CAF forgot to include it in public HALs, breaking compilation for libc2dcolorconvert target. Change-Id: I0e3efc0eb6eccaa250e24f1056cc3db8935e5821
2022-09-05Don't build lights module if vendor supplies itSteve Kondik
Change-Id: I63589281961e1120e7536798df6d78b8a7af4304
2022-06-15Merge 0c24482a887fbcafaaa129b3f7b872fd058204f6 on remote branchLinux Build Service Account
Change-Id: I2c60e312cda0b2b4415317d9d36ced9795326925
2022-05-19gralloc: Fix issue with mmap/munmap meta due to reserved sizeBaldev Sahu
Fix possible security issue which can happen if client changes reserved size in meta data. This can cause wrong size munmap. Change-Id: Ie8c226d9e7d1d0dc481d026ccd454a1db46fb915
2022-03-28gralloc: Fix issue with mmap/munmap meta due to reserved sizeBaldev Sahu
Fix possible security issue which can happen if client changes reserved size in meta data. This can cause wrong size munmap. Change-Id: Ie8c226d9e7d1d0dc481d026ccd454a1db46fb915
2021-11-25Merge b1b65185bef87e29540deb3bbfa2812f798215e4 on remote branchLinux Build Service Account
Change-Id: Iafd726cf65f030b3ca1e6f9bf9ad5a95da71cb02
2021-11-02Merge 533cb619ee8e9a5727320e56046a04784c8bc0aa on remote branchLinux Build Service Account
Change-Id: I9b3fa67484c603c69d1490c127a60cb190d3f0a0
2021-11-02display: Init slots different for null display.Vinoth Jayaram
Null display mode cannot skip InitSupportedDisplaySlots completely, as other areas of code fundamentally depend on appropriate map sizes and client_id being set. Introduce InitSupportedNullDisplaySlots to appropriately create is_hdr_display_ and map_hwc_display_. Change-Id: I3191c33d7f500688da8165f388f1e1e8fa8c1fc7
2021-10-27Merge "hwc2: Do not report cmd mode config if its same as video"qctecmdr
2021-10-27Merge "light: Add check before writing to sysfs"qctecmdr
2021-10-26hwc: Deallocate resources when display is disconnectedPritama Biswas
Change-Id: I0581b19461122cec5c459ca7d3f7c285f1cb90b1
2021-10-26light: Add check before writing to sysfsPritama Biswas
Change-Id: I6a384ea8ccb3007f9c4bb3b18a113ab9042180ce
2021-10-14hwc2: Do not report cmd mode config if its same as videoBaldev Sahu
Do not report cmd mode config to SF if its w/h/fps are same a video mode config for video mode panel. Change-Id: I0819b937b1818655c6fe7d119308c465011beb6b
2021-09-30display: Enable support for protected content GPU compositionVinoth Jayaram
Enable protected contents GPU composition for all targets. Change-Id: I7db5c3bee340dea313c8ee16ae13b8114fd2390e
2021-09-29Merge "sdm: Assign null pointer when object is deleted"qctecmdr
2021-09-27hwc2: Add support for pluggable as primaryPritama Biswas
Change-Id: I25f45d1583fbf79146dd5d6323a2ca51b42c65ab
2021-09-25hwc2: Use null display when primary not connected on boot.Pritama Biswas
Change-Id: I82cec38edde04836057b42bb04b7717d20488033
2021-09-22sdm: Assign null pointer when object is deletedRenchao Liu
Assign null pointer when object is deleted, this will help others to check whether the object is released or not. Change-Id: Ieca455980426ab8fc0fe0bdf93d2d4dc69ae8d10
2021-09-17sdm: Assign null pointer when object is deletedRenchao Liu
Assign null pointer when object is deleted, this will help others to check whether the object is released or not. Change-Id: Ieca455980426ab8fc0fe0bdf93d2d4dc69ae8d10
2021-05-27Merge ae684acc368b27a09b44ceb457981e7415194f88 on remote branchLinux Build Service Account
Change-Id: I6ebb665e4279e320f91fba3227db3efe3d21741b
2021-05-17sdm: Add hook to prioritize a layer for MDP compositionBipin Kumar
Change-Id: Icfeca2e0dac5d22e2273ea1197298907a5c7240f Crs-fixed: 2737678
2021-04-24Merge b3ca2d754b89fb723222a2609e54d5841a49dbcc on remote branchLinux Build Service Account
Change-Id: I48af765d5a1a31adf3bc92b5bea2da460377bf5c
2021-03-22Merge "hwc2 : Add scaling rgb layer flag to layer stack"qctecmdr
2021-03-18Disable partial FB excl rectRajavenu Kyatham
Change-Id: Iface126e34d30e89cafc3a5955270769244398ec CRs-Fixed: 2598494
2021-03-16hwc2 : Add scaling rgb layer flag to layer stackBaldev Sahu
Add scaling rgb layer flag to layer stack. This flag is used to avoid idle fallback which causes flicker due to mdp vs gpu output difference Change-Id: I9318e407fd1b56359c2f98de0d62784ee9803ed1
2021-01-24Merge 0a38f67f7c7e38f7c25b873796a303fd96ce7745 on remote branchLinux Build Service Account
Change-Id: Id4ea994382b7535b4dc7c1089dd5819047aecb88
2021-01-11hwc2: Skip SDE composition if all client layers are invalidBaldev Sahu
If all client layers have invalid coordinates, FB target may not get cleared and stale FB content may get composed along with other SDE layers. So skip all layers for such scenario to avoid any artifacts. Change-Id: I806cca9dfac424c6849069406ec4b62387cc2c44
2020-12-29Merge 13e01178433b171a185619365512c9566f0e9ea2 on remote branchLinux Build Service Account
Change-Id: Ifae6321d51dbda1b3265b786dd947951526f268d
2020-11-30Merge 7e5aad28206f62ff4e809373d22174a98472ab76 on remote branchLinux Build Service Account
Change-Id: I8dccca61d19c6db0d9b7f4b6c92820f209afd033
2020-11-26sdm: Check for RegisterVsync return valueAlex Sarraf
Check for RegisterVsync return value before settting registered_vsync_ to true. Don't set if error. Change-Id: I147cde07f302c7abc7bf178352c75e797cf2a711 CRs-Fixed: 2599786
2020-11-23gralloc: Check for UBWC support during initRamakant Singh
Crs-fixed: 2720776 Change-Id: I78b264d6d533940ba171f5aa3dd7c15907d57150
2020-11-11Merge "sdm: Reset pending_doze_ state if next state no longer doze"qctecmdr
2020-11-11Merge "sdm: do not skip validate"qctecmdr
2020-11-11Merge "config: Add default values for SurfaceFlinger"qctecmdr
2020-11-10Merge commit '6e63dd4ba77b2dd68f3d0e0217592f29d406a840' into HEADPradosh Das
Change-Id: I04d8277e8bca0cb6b687114a59976715abfa0047
2020-11-06Merge "sdm: Set vsync_registered_ to false in SetEventState"qctecmdr
2020-11-06config: Add default values for SurfaceFlingerPadmanabhan Komanduru
This change sets the default values for the maximum number of buffers SF would allocate for use in FramebufferSurface, and the maximum dimension supported by HWC for virtual display. Change-Id: I29ce6f0adb69473e8d99d2a5e506b312f25b2475 CRs-Fixed: 2778423
2020-11-05sdm: Reset pending_doze_ state if next state no longer dozeAlex Sarraf
-Previously checking for setting active_ and state_ were done withou check of pending_doze_. Latest fix changed checks state instead of state_. If leaving doze to power on state while pending_doze_ is true, we fall in situation where pending_doze_ does not reset until after it is checked. Reset pending_doze_ state if leaving doze before check should be done. -Allow display mode changes as long as panel is not active nor pending doze nor pending power on Change-Id: I8cfb933c6d7403c41394f1cb7b295db7dcb0b73e
2020-11-05sdm: do not skip validateWenjun Zhang
In some variable frame rate Apps, idle timeout which caused by low frame rate can't be cancelled if skip validate call in certain cases. eg, system won't get chance to resume from idle timeout if no any gemotry changes, and Apps only change refresh rate from 48 to 60 fps. Change-Id: I28b941f0a48eb8adf54a46b596d4952e7fa223cc