Commit Graph

15 Commits

Author SHA1 Message Date
Sushil Chauhan
eeb0f2b961 gralloc1: Update SECURE_DISPLAY usage bit value
Update the value of GRALLOC1_CONSUMER_USAGE_PRIVATE_SECURE_DISPLAY
as it conflicts with GRALLOC1_PRODUCER_USAGE_SENSOR_DIRECT_DATA.

CRs-Fixed: 2081718
Change-Id: I22cdb79f195afa10f2bebb08d2f37b8cfd50ce2d
2017-07-24 17:05:58 -07:00
Rohit Kulkarni
79f279cdd5 gralloc1: Add support for 10-bit tight pack usage flag
Add new usage flag that can be used to indicate 10-bit
tight pack implementation defined format such as TP10.

Change-Id: I056c1f39f61503a30e57ea3b1d463897558d2829
CRs-Fixed: 2070081
2017-06-30 14:33:51 -07:00
Rohit Kulkarni
04adc91d2c gralloc1: Deprecate usage flags for internal/external only
Deprecate internal/external only usage flags that are no
longer needed.

Change-Id: Id4fc6d780ac98327befbd723b9e48356b834fb7f
CRs-Fixed: 2070081
2017-06-30 14:33:36 -07:00
Rohit Kulkarni
a152c31938 gralloc1: Add support to provide interlace info
Add new perform operation to indicate if the buffer is
interlaced. Update get yuv plane info operation to provide
info for ubwc interlaced layout.

Change-Id: I025ace1928d35e053a0cf32eafe51ee2dd4ac537
CRs-fixed: 2055788
2017-06-08 17:21:11 -07:00
Camus Wong
5c5e6fb394 sdm: Add support for new pixel formats in gralloc1
Add support for BGR_888 and CBYCRY_422_I in gralloc1.  The
new formats will be used by camera application.

CRs-Fixed: 1116491
Change-Id: Iafa240294a1e2956b96f7aa9606326bb5635a2bd
2017-05-25 20:52:44 -07:00
Rohit Kulkarni
7943ec969d display-hal: Add support for P010 ubwc format
This patch adds support for handling P010 ubwc format in display-hal
libs.

Change-Id: I1c7489be859a608566240c3b6722c84bb9a468ca
CRs-fixed: 2018756
2017-03-27 14:37:21 -07:00
Naseer Ahmed
be5c2ef1d5 gralloc1: Fix typo in RAW8 format
Also make the value the same as in gralloc0
CRs-Fixed: 2016141
Change-Id: Ie89457d33c8ae10c69c88e9bd084b256a0766c3a
2017-03-07 13:20:19 -05:00
Linux Build Service Account
d9f61ce2ca Merge "gralloc: Add support for 8-bit RAW MIPI stream" 2017-03-05 21:39:05 -08:00
Prabhanjan Kandula
f48302a611 gralloc: Add support for 8-bit RAW MIPI stream
Define new HAL color format for RAW-8 stream and
add support for buffer allocation with RAW-8 format.

Change-Id: I1ee1dbd270d25c27e52c5dd023345c8283c658d2
2017-02-27 18:02:59 -08:00
Naseer Ahmed
1c473d8172 gralloc: Add support for new system defined RGBA formats
* Add support for HAL_PIXEL_FORMAT_RGBA_FP16
* Use system defined HAL_PIXEL_FORMAT_RGBA_1010102

CRs-Fixed: 2012253
Change-Id: I2e4dfe1d06080120acc15c6b8181f8a424248bf7
2017-02-27 10:55:39 -08:00
Naseer Ahmed
e69031e9c7 gralloc1: Add remaining functionality
* Use private_0 flag
* Add some legacy flags to be used during transition
* Fix gralloc module version
* Adjust makefiles for gralloc1
* Add support for dump, num flex planes and lock flex.
* Use a unique ID for buffer descriptors
* Do not delete buffer handle, fix after verifying framework fix.
* Current gralloc1 clients do not conform to the lock() requirement
in the gralloc1 header. Tracked in b/33588773
* Add perform APIs to get the buffer size  and allocate a buffer
for use by SDM
* Fix reference counting
* Add a unique buffer ID
* Some cleanup in private_handle
* Create a wrapper class of private_handle to do refcounting
* Resolve implementation defined formats At allocation time, update buffer
descriptors to replace implementation defined formats with the ones we mean
to allocate
* Defer ion handle release
* Remove unused drm code.
* Add legacy constructor for private_handle_t used by some
clients

CRs-Fixed: 2007391
Change-Id: Ia9e816cec35ba45483a5b75d99f256325a010138
2017-02-17 09:19:23 -08:00
Arun Kumar K.R
c18263edc2 display: Add Support for Rec.2020
- 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-17 10:25:18 -07:00
Dileep Marchya
5b4eaed30b gralloc: Use getpagesize() in place of PAGE_SIZE.
- 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-28 12:32:39 +05:30
Arun Kumar K.R
e06d05ab98 gralloc: Change Venus TP10 UBWC enum to align with video
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-20 10:59:41 -07:00
Prabhanjan Kandula
96e9234520 gralloc1 : initial implementation
Initial implementation of the gralloc1 APIs

Change-Id: I3b01595b0f9b30d9a08d02101fe42281556bd6a2
2016-05-11 00:49:41 +05:30