Commit Graph

18 Commits

Author SHA1 Message Date
Michael Bestas
03b3dd6eb6 Merge tag 'LA.QSSI.14.0.r1-14000-qssi.0' into staging/lineage-21.0_merge-LA.QSSI.14.0.r1-14000-qssi.0
LA.QSSI.14.0.r1-14000-qssi.0

* tag 'LA.QSSI.14.0.r1-14000-qssi.0':
  gralloc: Fix AOSP Clang Compiler error

 Conflicts:
	gralloc/QtiGrallocPriv.h
	gralloc/gr_priv_handle.h

Change-Id: I852a0852acf3ff5df9249c471aec457d70b1e79c
2024-04-19 23:17:03 +03:00
Ashok Mutyala
ca2906cedb gralloc: Fix AOSP Clang Compiler error
Re-arrange the order of constructor as clang
runs with -Wreorder-ctor but SDClang runs
with -Wnoreorder-ctor.

Change-Id: I27c6f2bd178325d159af2e0fd18ba18453663ca3
2024-03-06 22:33:50 -08:00
Bruno Martins
f75571a9d6 Merge tag 'LA.QSSI.14.0.r1-11200-qssi.0' of https://git.codelinaro.org/clo/la/platform/vendor/qcom-opensource/display-commonsys-intf into lineage-21.0
"LA.QSSI.14.0.r1-11200-qssi.0"

* tag 'LA.QSSI.14.0.r1-11200-qssi.0' of https://git.codelinaro.org/clo/la/platform/vendor/qcom-opensource/display-commonsys-intf:
  display: add interface functions to support idle content fps hint
  smomo_interface: add api to get refresh rate vote for tracked layer
  commonsys-intf: gralloc: add buffer dequeue duration in private metadata

Change-Id: Id3ef9a97ebb409c31f4775e0001222589b31a654
2024-01-04 22:07:18 +00:00
Alessandro Astone
51fc163c81 Partially revert gralloc struct changes
Gralloc handle struct changes break blobs that use the previous struct

Default
GRALLOC_HANDLE_HAS_CUSTOM_CONTENT_MD_RESERVED_SIZE
GRALLOC_HANDLE_HAS_RESERVED_SIZE
GRALLOC_HANDLE_HAS_UBWCP_FORMAT
to be unset.

This partially reverts the following commits:
34fef9c4f6
13de7b77a3
bcf82a2c1b
4cb9a3fa65

Co-authored-by: Bruno Martins <bgcngm@gmail.com>
Co-authored-by: Chirayu Desai <chirayudesai1@gmail.com>
Co-authored-by: Michael Bestas <mkbestas@lineageos.org>
Change-Id: I7cfaea81a2c7c3ae121f4f02ac61374c5a00e9a9
2023-10-20 01:42:52 +03:00
Vikas batchu
1044851278 commonsys-intf: gralloc: add buffer dequeue duration in private metadata
Change-Id: Ie58bfd1d89f8e64ed84c5a293b2ace1ef5e19cf5
2023-09-21 03:21:48 -07:00
Gurkaran Singh
ddc11bbb01 gralloc: Downgrade invalid handle log
Downgrade invalid handle log to a warning since it can trigger
for legitimate cases such as when we have a bad display.

Change-Id: I842ca738ecdea5cdf6e6fe46ac10e4d49748b283
CRs-Fixed: 3565179
2023-07-19 14:11:01 -04:00
Rosa Chen
bcf82a2c1b gralloc: Add heap name to metadata
Change-Id: I0cf59e6857302ff75f10f5eb9f5e5a798dffe5bd
2023-06-20 10:21:22 -07:00
Manoj Kumar AVM
c7c0e2c902 gralloc: support UBWC-P functionality
Change-Id: I424b02dd61c4b695c490fd0b5f48bdb415069798
2023-04-10 08:21:18 -07:00
Uma Mehta
698b2c1c3f commonsys-intf-display: add support for early notify metadata
Adding support for early notify metadata
line count info

Change-Id: I760bfda68d832f043c1f977280881d7428eeca12
2023-01-24 23:07:10 -08:00
Mahesh Kumar Sharma
e28c2d2e0c display: Add video transcoder stats metadata support
Add support to assign video decoder stat info metadata
in gralloc buffer with in gralloc interface.

Change-Id: I87a130cff68e425a5493b4711e2c344a45597254
Signed-off-by: Mahesh Kumar Sharma <quic_smahesh@quicinc.com>
2022-06-03 10:21:28 -07:00
Christopher Braga
34fef9c4f6 gralloc: Introduce custom content metadata region
Introduce a new dynamic memory region to store custom content
metadata that has sizing requirements that exceeds the base
1KB region allocated. This region is dynamic to ensure a layer's
memory requirements are only increased when absolutely needed.

Change-Id: I774197ed0c4ec7a18cc09b24262b6548dc293e72
2022-05-18 15:12:55 -07:00
Rajat Yadav
0cb6e516e6 commonsys-intf: Remove compilation warnings.
Change-Id: Iad6b11033326c81536a939f954f6511e3246a193
2022-05-08 09:51:13 -07:00
Ray Zhang
1fec9e8def gralloc: Add Timed Rendering metadata
Add support to pass new Timed Rendering metadata
in gralloc buffer.

Change-Id: I078ee218a02935ad4fcc77dad3f2a83fd4574400
2022-05-02 19:48:38 -07:00
Baldev Sahu
13de7b77a3 gralloc: Fix issue with mmap/munmap meta due to reserved size
Fix possible security issue which can happen if client changes
reserved size in meta data. This can cause wrong size munmap.

Change-Id: I5d2b55272d1b5df217e71c45ecdece9ed9eaae97
2022-04-22 18:26:13 -07:00
Ramkumar Radhakrishnan
3a68827d32 gralloc: Add metadata interface to change buffer permission
Store buffer access control information in metadata and add interface
to set/change buffer access control after the buffer allocation

Change-Id: I2dfb99c4db82f896b623a1f394977632a4bfd0e0
(cherry picked from commit 222f30bc47e072a6e7d3ba677f6630f2dc7e9661)
2022-04-19 10:01:10 -07:00
Shrikara B
21c0d729d6 display: Add video TS info metadata
Add support to pass new video timestamp info metadata
in gralloc buffer. Add support in both qdmetadata
and Gralloc4 interface.

CRs-Fixed: 2713472
Change-Id: Ica7776c6594ec3224f631f2eb23a1988f075313f
2020-09-03 10:59:32 +05:30
Tharaga Balachandran
3981046acc display: Add reserved size and status check to MetaData_t
* Move from fixed array reserved region to variable reserved
  region size
* Add bool arrays to indicate whether metadata has been set using
  Gralloc4 indices
* Replace metadata->operation with bool arrays for
  gralloc4/qdMetaData compatibility

CRs-Fixed: 2730848
Change-Id: Id52aac70c23ee4b39db185861f951bb909831afb
2020-07-13 11:36:26 -04:00
Tharaga Balachandran
a069a7e22d display: Update metadata
This change adds libgralloc.qti to support Gralloc4 and the transition to
standardized metadata.

CRs-Fixed: 2619182
Change-Id: Ia43de9b1dc9da52affc508783c046b82cde1775e
2020-02-24 17:45:36 -05:00