Commit Graph

28 Commits

Author SHA1 Message Date
Abhishek Jain
ac3641e0a1 display: compilation fix in gralloc
if gr_priv_handle.h is accessed via C files, it throws error.
Added ifdef for cpluplus to fix this.

Change-Id: I16e593fb369205fefec76b05e9c6199b376d2f67
2019-06-14 17:58:03 +05:30
Linux Build Service Account
e5ce1da37e Merge "commonsys-intf: display: Add flag for interlaced content." into display-android-commonsys.lnx.1.1 2019-06-12 05:49:58 -07:00
Ashish Kumar
453ab5c397 commonsys-intf: display: Add flag for interlaced content.
Add interlace flag to get the plane layout count and info
in case of interlaced content.

CRs-Fixed: 2464961
Change-Id: I6f1cc38f71a79a0fecde773a29ea0847020daeb9
2019-06-11 14:49:32 +05:30
Ashish Kumar
87df22c931 commonsys-intf: display: Add new camera formats
Add pixel formats which are used by camera in gralloc_priv.h

CRs-Fixed: 2460241
Change-Id: I905eeef806c74c623a6f902277d3cf8168b2a6dd
2019-06-11 14:35:21 +05:30
Naseer Ahmed
fb1d3dea2d commonsys-intf: Add missing gralloc flag
Change-Id: I8f2e3fd42978f1e8bd0a42669b1653f6df19111a
2019-01-28 16:36:55 -05:00
Ramakant Singh
20b6c8c4b9 Gralloc: Fix out of bound read in private_handle_t.
Change-Id: I3d16321e29291007be0d8be11225f426ea0dd252
CRs-Fixed: 2337383
2019-01-15 22:32:37 -08:00
Mohan Pallaka
eb982e5a48 commonsys-intf: display: Add dedicated heaps macro for sensors direct report mode
Updating gralloc header file similar to sdm.

Change-Id: If1bae0509afe9f6d832680a40263cf3035150173
2018-10-22 13:04:51 -07:00
Rajavenu Kyatham
3bf8204f89 gralloc: Add support for HEIF usage flag.
Add new usage flag that can be used to indicate HEIF.

Change-Id: If933f0fccff18323a595a712c51258700bbeb1e4
CRs-Fixed: 2318608
2018-10-10 12:50:12 +05:30
Mohan Pallaka
8181cef67a Gralloc: Use 4 bytes padding for private_handle_t
Force 4 bytes padding to avoid data leak due to uninitialized padding.

Bug: 77237704
Change-Id: I3922bf62bfa6c78806a6d5fd969e2d9faf067abe
CRs-Fixed: 2257685
2018-08-27 08:26:12 -07:00
Mohan Pallaka
5d8144382d commonsys-intf: display: add changes for display-android-commonsys.lnx.1.0
Relocate changes from display.lnx.5.0 to display-android-commonsys.lnx.1.0

CRs-Fixed: 2251141
Change-Id: Ia65f6d7f83e21702cf61f0672ba97ae006ae7886
2018-08-02 16:37:46 -07:00
Subash Chander
001bc79f72 commonsys-intf: display: Add dedicated heaps macro for sensors direct report mode
Updating gralloc header file similar to sdm.

CRs-Fixed: 2275876

Change-Id: I8cf144e13969abbad4fcc4ed17a9dcfc64b1d111
2018-07-10 11:54:28 +05:30
Uday Kiran Pichika
2d3a307cd3 commonsys-intf: display: Add display folders
Add libdisplayconfig and libqdmetadata to support
Single system image

CRs-Fixed: 2251141
Change-Id: Ie988c6d23bcc7f8e8f8f4313d8c3255f55d200ce
2018-06-04 16:45:02 +05:30
Linux Build Service Account
efc1c4ac84 Merge "gralloc: layercount validation check" 2018-04-27 16:55:26 -07:00
Ramakant Singh
06676253cd gralloc: layercount validation check
layercount value should not be zero.

Change-Id: I439ca4f1655a4c892b4bdf02fc786c7e2838e816
2018-04-26 20:05:02 +05:30
Uday Kiran Pichika
7610943314 gralloc: Fix race condition in gralloc
- Add mutex lock while accessing handles_map

Change-Id: Ibbe77e87020e655f6ebeb2428a13555460b3ac7d
CRs-Fixed:
2018-04-24 22:19:37 -07:00
Linux Build Service Account
621dad55ee Merge "gralloc: Remove map fb memory property" 2018-04-21 07:04:05 -07:00
Naseer Ahmed
523dfe4e37 gralloc: Remove map fb memory property
This property is unused

Change-Id: Id8f5c087b0dfa0eb3a31a342968abb687f0944c8
2018-04-20 19:00:26 -07:00
Naseer Ahmed
280ce67a86 gralloc: Fix uncached settings on CPU rare read/write
Change-Id: I4187b4beaacf26388cdd4c9f2b7d4e49a5882983
2018-04-20 04:16:46 -07:00
Gurpreet Singh Dhami
26a190eb78 gralloc: Correct the gralloc private usage bit setting.
Change-Id: Ic0f085bfbf516f031776ebb740b3c4a11c7264db
2018-04-05 08:47:17 -07:00
Naseer Ahmed
b1013968b9 display: More fixes for VNDK
Change-Id: I8887ffdde3d6f39f9405dd38e8eaedbb8da2a9b4
2018-04-02 15:11:30 -07:00
Saurabh Shah
8ae77fc36e gralloc: Add some missing formats to GetGpuPixelFormat()
Add some missing formats to GetGpuPixelFormat()

CRs-Fixed: 2202759
Change-Id: Ic0689936f23ef353551a244edabc7260b8c04438
2018-03-29 10:15:36 -07:00
Uday Kiran Pichika
89c36f4fa8 sdm: comply with treble guidelines
Modify the property names and use macros in place of them

CRs-Fixed: 2206249
Change-Id: I5ae790ca62a258b0d7c14931e0132727feed48a3
2018-03-14 21:11:44 +05:30
Naseer Ahmed
56c571fbe0 display: hwc_buffer_allocator fixes
Fixes an issue where the HWC init randomly blocks on the
allocator init by doing a lazy initialization of the allocator
object. The allocator may not have fully initialized at HWC init.
Also, increases the allocator connection threadpool to 4.

Change-Id: I38454ee25aaf2a211125e55297300eac754fb5cf
CRs-Fixed: 2201202
2018-03-07 18:25:19 -05:00
Naseer Ahmed
04a804a8f1 display: Use log.h from VNDK
Change-Id: I8aa8566036a44b1587f5cfe6c745e11a3dd19481
2018-03-06 20:41:14 -05:00
Naseer Ahmed
62dd96c7a7 gralloc: Use default interfaces of allocator/mapper
Use default interfaces until BOARD_VNDK_VERSION is enabled

Change-Id: I3192c912ca790174f6fc6acb37988d6720167b07
2018-03-02 20:23:40 -08:00
Naseer Ahmed
cf5dd89532 gralloc: Update implementation defined format in buffer info
Change-Id: I1a53c5524587b9d5fe318b63152169a77f11a0b5
2018-02-26 12:59:22 -05:00
Naseer Ahmed
a422f35f04 gralloc: Add allocator and mapper HALs
Implement the hidl .hal interfaces directly instead of using the
default shims.
This is required since new additions to .hal will no longer be
added to the legacy gralloc1 C header.

Change-Id: If577a14f75d7d13da0ff656c96ab451d21c910ce
2018-02-20 12:17:01 -08:00
Naseer Ahmed
bfd66dbf6c gralloc: Move to new directory
In preparation for the hidlization of gralloc.
Also delete obsolete libgralloc

Change-Id: Id657f985cff1bdbf86c781efc52e8bda4e3d27b4
2018-02-13 11:45:12 -05:00