summaryrefslogtreecommitdiff
path: root/libgralloc
AgeCommit message (Collapse)Author
2017-03-01Revert "display: Move all opensource modules to vendor partition"Naseer Ahmed
This reverts commit 4c790408b144b8ddf117a8d94661c81c86304cfc. Change-Id: I32c48e300e8c641b196210c4412b635e1c1941f0 CRs-Fixed: 2013665
2017-02-28display: Move all opensource modules to vendor partitionNaseer Ahmed
CRs-Fixed: 2010492 Change-Id: I80bb14624e9a47189777bd4c8f8847ca946df74c
2017-02-21gralloc: Add support for raw12Zhu Bin
When the output of the sensor is raw12 format, errors occur in gralloc. So raw12 format needs to be supported in gralloc. Change-Id: If9f7808713bae2fb1efb774e65ae742ca20fb201 CRs-Fixed: 2005966 Signed-off-by: Zhu Bin <cbinz@codeaurora.org>
2017-02-07sdm: drm: Add support for default non-atomic modeSaurabh Shah
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
2017-02-05Merge "sdm: Add support for new pixel formats in HAL"Linux Build Service Account
2017-01-30gralloc: Remove conditional inclusion of msm_media_info.hSaurabh Shah
msm_media_info.h is conditionally included, but symbols within it aren't. Since msm_media_info.h will always be available, remove conditional inclusion. Change-Id: I8e6cc8cb12899318e81a622b42f14e14fd0f9acb
2017-01-28gralloc/qdutils: Remove unused gralloc code, add driver type checkSaurabh Shah
Remove unused code related to macro tiling from galloc and qdutils. Add API to check for driver type and query caps based on driver. Change-Id: I36cfa5529395c69deb886080be1c904ff5c9ad15 CRs-fixed: 1109207
2017-01-27sdm: Add support for new pixel formats in HALRahul Sharma
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
2017-01-18libgralloc: Disable UBWC output buffers for Writeback displaysRamakant Singh
While allocating output buffers for writeback display, check video encoder capability for UBWC as well before assigning the format. Change-Id: I1ad84bec7ef5a55527fe67c72ecbb7fe9fe914fb
2017-01-03libgralloc: Add gralloc support for P010 formatRamkumar Radhakrishnan
Add support to get the aligned width and size for P010 YUV format Change-Id: I0e4908b2f0b2c8b668d4b58702421c89bb03b195 CRs-Fixed: 1102142
2016-11-14display: Add color MetadataArun Kumar K.R
- Add color aspects and HDR10 related static metadata which will be used in the existing metadata structure. - Clients can use COLOR_METADATA to update the CSC information - UPDATE_COLOR_SPACE is legacy and will be used when COLOR_METADATA is not set. - Update gralloc to return color space when set from COLOR_METADATA - Gaurd the usage with USE_COLOR_METADATA for cobalt. Change-Id: I460accf6cd2bb7a305c7e93284955e566a5b7532 Crs-fixed: 1074172
2016-11-07Merge "gralloc: Return an error if the buffer was not mapped"Linux Build Service Account
2016-11-04sdm: gralloc: Add support for Secure Camera use-caseSushil Chauhan
1. Add support for Secure Camera use-case in SDM and gralloc. 2. Set the appropriate ION Heap ID, secure camera/preview ION flags and the alignment requirement for Secure Camera use-case. CRs-Fixed: 1065934 Change-Id: I9e80f3093d598eec7bf717ddd0e3adbbc3382d5e
2016-11-01gralloc: Return an error if the buffer was not mappedNaseer Ahmed
(Second attempt at this change) In some cases, the framework attempts to lock a secure buffer. Since it does not get an error code from the lock, it proceeds to dereference the base address (which is invalid). Return an error code when a secure buffer is attempted to be locked, while still ensuring that the metadata is mapped. Bug: 28526999 Bug: 30404840 Change-Id: I6e2aaa8e9d2f28b5f5ae98fcb449d58c2f728f52 CRs-fixed: 1010697
2016-10-28gralloc0: Add 10 bit RGBs for address computationPrabhanjan Kandula
Add missing address computaion of 10bit RGBs, which are supported by Ubwc. Change-Id: I94b49a03210af43b61bc7b133daae7d128a32ef0
2016-10-19sdm: Remove version dependency.Rajavenu Kyatham
Change-Id: I0081584d77f4bb4c6f561554e9cf8fb0f2dab471
2016-10-17display: Add Support for Rec.2020Arun Kumar K.R
- Add Rec2020 CSC in qdMetadata for limited/full range - Expose CSC as #defines in gralloc private header to help GFX decouple from the display headers Change-Id: I90ee2708275bf1a37ece0fce2f0867dfad64e39a Crs-fixed: 1074164
2016-10-07Merge "gralloc: Use getpagesize() in place of PAGE_SIZE."Linux Build Service Account
2016-09-28Merge "libgralloc: Store unaligned buffer resolution in private handle."Linux Build Service Account
2016-09-28gralloc: Use getpagesize() in place of PAGE_SIZE.Dileep Marchya
- Use getpagesize() function from unistd.h to get page size in place of PAGE_SIZE macro. - Make isDisableUBWCForEncoder declaration pure virtual. Change-Id: I89405e999e4683874f4daa32188181e688a19812 CRs-Fixed: 1069351
2016-09-20gralloc: Store aligned width in pvt handle for TP10Arun Kumar K.R
- For TP10 Venus UBWC format, the Venus macro returns the stride, which is 4/3 times the width. - Need to store the pixel width instead of stride in the private handle hence * 3/4 Change-Id: I2c1348c6b90f141ecef6cabf493780325f17db77 Crs-fixed: 1059165
2016-09-20gralloc: Change Venus TP10 UBWC enum to align with videoArun Kumar K.R
Align Venus TP10 UBWC format enum value to the value defined in the video header, in the same way as its done for Venus UBWC format Change-Id: I4e929d8dd028dc3f854f1ec9ecc5f8dbbfae98be CRs-fixed: 1061950
2016-09-08libgralloc: Store unaligned buffer resolution in private handle.Ramkumar Radhakrishnan
Add unaligned_width and unaligned_height in private_handle_t to store the buffer resolution without alignment that client asked to allocate. Change-Id: I28d757af4178f581e6a83dc06198106c85fc7262 CRs-Fixed: 1040942
2016-09-06Merge "sdm: Export SDM interface headers to OUT directory."Linux Build Service Account
2016-08-28sdm: Export SDM interface headers to OUT directory.Rajavenu Kyatham
CRs-Fixed: 1054762 Change-Id: I875a5521b45e893aaa5a53db07249d6fcaca4521
2016-08-26sdm: Add GCC toolchain compatible makefiles.Rajavenu Kyatham
CRs-Fixed: 1054762 Change-Id: I370acf2507eaade3d4a96e956ebb5f61f659ceb6
2016-08-04Revert "gralloc: Return an error if the buffer was not mapped"Naseer Ahmed
This reverts commit 7a86b840ae427137955726ec8ef8825e29edb141. CTS failures were seen in camera in cases where EIS uses the gralloc private handle. Change-Id: Ibe9d6331175ab389d724fb10a1d73421456dcd47 CRs-Fixed: 1048932
2016-07-25gralloc: Set default CSC to 601Pullakavi Srinivas
Gralloc hardcodes CSC to 601. However clients can update color space as per requirements using setMetaData api. CRs-Fixed: 1045509 Change-Id: I6a053f187e92faeb83bc7b558e60f9e59c49cd11
2016-07-11Merge "display-hal: Exclude HWC libs compilation."Linux Build Service Account
2016-07-10Merge "libgralloc: Enable UBWC output buffers for Writeback displays"Linux Build Service Account
2016-07-07gralloc: Return an error if the buffer was not mappedNaseer Ahmed
In some cases, the framework attempts to lock a secure buffer. Since it does not get an error code from the lock, it proceeds to dereference the base address (which is invalid). Return an error code when a secure buffer is attempted to be locked, while still ensuring that the metadata is mapped. Since we return a proper error in lock(), register buffer fails. Since a map should not be done in registerBuffer per the gralloc spec, only map the metadata here. Clients that need to access memory in CPU after registerBuffer should do a lock(). Change-Id: I74204931fa61524f1601dd99ab266219d4be2c82 CRs-fixed: 1010697
2016-07-01display-hal: Exclude HWC libs compilation.Pullakavi Srinivas
This change introduces compilation flag to compile standalone SDM libs. Change-Id: I3f8cde50e1806c6cf157364657d77fd9a780d5e3
2016-06-30libgralloc: Enable UBWC output buffers for Writeback displaysJeykumar Sankaran
While allocating output buffers for writeback display, check MDP support for writeback UBWC format before assigning the format. Change-Id: I97bb320ec89d60453c4c7e3dc5a2b5c2a18394dd
2016-05-25Merge "qdutils: Query MDP caps for UBWC feature"Linux Build Service Account
2016-05-13Merge branch 'LA.HB.1.3.9' into display.lnx.3.0-devNaseer Ahmed
Merge in newer HALs not present earlier in this branch Change-Id: I2832d00beccf86dd0929b78c6be1be5f2b0881fe CRs-fixed: 1015411
2016-05-10qdutils: Query MDP caps for UBWC featureSushil Chauhan
- querySDEInfo queries MDP caps to check if UBWC is supported on H/W. - Gralloc calls querySDEInfo api to check if UBWC feature is enabled by MDP driver. CRs-Fixed: 1013911 Change-Id: I9114c4d8286842f19619302484ee4690c59fcb29
2016-05-09gralloc: Handle RAW_OPAQUE formats similar to blobNaseer Ahmed
Change-Id: I957b9d5902f6ea3714b46f3900e9f039b4667f0a CRs-fixed: 1006155
2016-05-04gralloc: Set default CSC to 601_FRArun Kumar K.R
As per the recommendation from the systems team set the default CSC in metadata as 601FR Change-Id: If307d3fc1612e0358cfe033117d1b6872d4d1765 CRs-fixed: 1010566
2016-05-03gralloc: Fix gralloc protected allocationsNaseer Ahmed
Protected allocations need to be uncached and don't need the MM heap flag set Change-Id: Ib64169e601af1c70a951a06266e70b4e18fc88f5
2016-04-22Merge "gralloc: Use PROTECTED flag for L1 allocations"Linux Build Service Account
2016-04-21gralloc: Use PROTECTED flag for L1 allocationsNaseer Ahmed
This is in keeping with the gralloc spec. Change-Id: Id796a55e2ea51d3abdf9274140dc0404a42e1cab CRs-fixed: 999994
2016-04-05gralloc : Add singleton class for mdp capabilityRamakant Singh
Many case reading the same mdp capability multiple times from sys file causing delay in operation. Hence reading only once. Change-Id: I1b94ca63074aba2f078fe6add5a8de628ca87740
2016-03-29libgralloc: Get appropriate width and height from metadataRamkumar Radhakrishnan
Compute YUV plane info using buffer width and height from metadata for UPDATE_BUFFER_GEOMETRY use case. CRs-Fixed: 994771 Change-Id: Idb42b56be970942a79c07ceb337afa2f966e4fbc
2016-03-17libgralloc: Add support for 10 bit RGB/YUV formats.Ramkumar Radhakrishnan
Add 10 bit RGB/YUV HAL Pixel formats in gralloc library. CRs-Fixed: 882953 Change-Id: I5c99bbd61d899408d6ff182b11ffb537bbde13c6
2016-03-10gralloc: Ignore IGC setting.Dileep Marchya
- Ignore IGC operation metadata setting so that sRGB content can be treated as regular RGB content. CRs-Fixed: 958861 Change-Id: Ia66e9ef36c71ee834b4c1179f77e3be88218eec0
2016-03-03gralloc: Fix RAW10 strideRanjith Kagathi Ananda
RAW10 stride should be aligned to 8 bytes and not 16 bytes Change-Id: Ie1c6f3965a0b6ae1db399fc856b4deb55880463e
2016-02-10libgralloc: disable UBWC for video encoder usecaseManikanta Kanamarlapudi
check for target specific system property "video.disable.ubwc" to disable UBWC for the targets where encoder doesn't support UBWC color-format. Change-Id: Ifd050c3b44768870fc74a16e941e8286e3ea0c13
2016-01-18Merge "gralloc: Fix the result of SET_SINGLE_BUFFER_MODE operation" into dev-2.0Linux Build Service Account
2016-01-13gralloc: Default camera buffers to full rangeNaseer Ahmed
Certain apps use camera gralloc flags and expect full range buffers without touching the metadata. Change-Id: Ifdd000b0600d87f42e167b9c58a1ab4029ddeae5 CRs-fixed: 961720
2016-01-06gralloc: Fix the result of SET_SINGLE_BUFFER_MODE operationSushil Chauhan
Fix the result value of successful SET_SINGLE_BUFFER_MODE perform operation. CRs-Fixed: 958764 Change-Id: Ie84522776008b1f77213be406ec1b866353b265a