Commit Graph

4096 Commits

Author SHA1 Message Date
Venkat Thogaru
3053e37f77 display: Fix null pointer dereference
Change-Id: I9737741d066944e004f3e3a408fcb6ccd10282a3
2020-09-01 23:44:34 -07:00
qctecmdr
19349d7192 Merge "display: Add a check when registering a client" 2020-09-01 02:11:22 -07:00
Rheygine Medel
e5f2189f9c display: Add a check when registering a client
This change checks if the registered client has a valid callback and
hwc session.

Change-Id: I9758d6d59c7087e67e89318746cb48054255ab72
CRs-Fixed: 2749805
2020-08-20 16:55:30 -07:00
Sushil Chauhan
5f81e8d39c display: Add PhaseOffset Extension interface
Add PhaseOffset Extension interface to query advanced SF Offsets.

CRs-Fixed: 2754160
Change-Id: I8cef870d6576be60f57a019fc0ffebd8833a49db
2020-08-12 14:09:04 -07:00
qctecmdr
6879d90872 Merge "displayconfig: Add API to query supported refresh rates from HAL" 2020-08-10 00:54:48 -07:00
Dhruv Kaushik
c07e3c8f88 displayconfig: Add API to query supported refresh rates from HAL
Add HIDL API to query supported refresh rates from Display HAL.
The API would return a vector of supported fps in the current
config group.

Change-Id: I27640114963a97c96738387fe502b802a48837ba
CRs-Fixed: 2749264
2020-08-06 12:12:08 +05:30
Sushil Chauhan
a950c06481 display: Define EARLY_WAKEUP_FEATURE marco
Define EARLY_WAKEUP_FEATURE macro to avoid compilation dependency
in framework keystone changes.

CRs-Fixed: 2748826
Change-Id: I5261c5d4918c18c2067a6b562776148aa3d903cb
2020-08-05 10:54:34 -07:00
qctecmdr
1fa94ca731 Merge "display-config: Add a soong namespace for display commonsys" 2020-08-03 03:35:27 -07:00
Venkat Thogaru
6b511cd1d2 display: Fix array out of bound
Change-Id: Ic560d36efad6a6b2a98a6c190abca6542ef91d91
2020-07-28 14:56:38 +05:30
Naseer Ahmed
425870053d display-config: Add a soong namespace for display commonsys
This is required for targets which may not have displayconfig
available.

Change-Id: I905ad2763c7ef1e6fb3f19ac9446887641b45581
2020-07-17 15:19:17 -07:00
Sushil Chauhan
4e71033d00 display: Add interface to support Early Wake-up
Add interface to support Early Wake-up notification feature.

CRs-Fixed: 2727498
Change-Id: I888a953f48c4ffb445d7309f8590ae23258164b7
2020-07-15 11:47:41 -07:00
Sushil Chauhan
c0a6e10304 display: Add support to query Display HW Id
Add support to query Display HW Id from HWC HAL of a given display.

CRs-Fixed: 2710899
Change-Id: I96e9cfe4f8f75b0c1cd23adab23e7abd2707ff59
2020-07-14 11:30:44 -07:00
Tharaga Balachandran
bcd39b9ab9 gralloc: Add metadata type buffer_type
CRs-Fixed: 2730864
Change-Id: I8f96b5dc905f1b8cedc498d3853be27a8f92ae58
2020-07-13 12:10:43 -04:00
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
Padmanabhan Komanduru
7f664a2f83 display: config: handle client destroy sequence gracefully
- Split the IDisplayConfigCallback implementation to a
  separate class.
- Notify the device when a client is getting destroyed
  and perform cleanup on device side.

Change-Id: I020a3a9cac7f31195e0072540e2145cdd3da274c
2020-07-09 10:44:02 +05:30
Ramkumar Radhakrishnan
4e1cfa2ec6 displayconfig: Add support to notify TUI transition events
Add support to notify TUI transition events to hwcomposer.

Change-Id: I56f8fa8c3432ebf4fff44b9cbf8c2ac5252b799a
2020-07-02 15:48:08 -07:00
wangling
fd0e54f9fd commonsys-intf: add split window interface.
Add an interface which allow users to get split window layers info.

Change-Id: Ifca373901498aaa3102d9a025ad79d1ffb4436e6
2020-06-23 03:58:37 -07:00
Venkat Thogaru
2583c250c2 display: Fix null pointer dereference
Change-Id: Iff047b79330854c2e2bd8fd07f18c842dec0bc2d
2020-06-16 04:37:08 -07:00
Padmanabhan Komanduru
cdb534d9cd config: add missing default initializations
Change-Id: I6a013136272ff2f9c4c5137d46d2058a08a8fcd8
2020-05-28 14:09:10 +05:30
qctecmdr
8cb30a8d1e Merge "display: Fix dependency compile error" 2020-05-27 15:26:11 -07:00
Mohamed Moussa
c3ddd69f44 display: Fix dependency compile error
When enforce product I/F for Native modules, system_ext module
cannot link to product module and vice versa.
When PRODUCT_PRODUCT_VNDK_VERSION := current, all native modules
in product partition are in the product variant. Adding system_ext_specific
and vendor_available will create system_ext variant and vendor variant.

Change-Id: Id8953a6c65b346a4762c9d9d89f7c6c26d80fdfa
2020-05-27 10:37:02 -07:00
qctecmdr
343cd2a44b Merge "gralloc: Use only 'data' member in GraphicsMetadata" 2020-05-23 23:38:40 -07:00
qctecmdr
7f213be79f Merge "gralloc: Change HAL_PIXEL_FORMAT_YCbCr_420_P010 macro" 2020-05-23 23:38:40 -07:00
Ravi Ranjan
c74a80eae0 gralloc: Use only 'data' member in GraphicsMetadata
- In gralloc3, first member 'size' in GraphicsMetadata struct was
  never unused in call to GetGraphicsMetadata. Get() call always
  returned 'data' member in GraphicsMetadata structure.

- Gralloc4 implementation introduced new encode/decode functions for
  GraphicsMetadata which are simultaneously used during set/get
  calls to encode/decode  metadata for caller and during storing/
  retrieving it from Metadata_t struct. Get() call returned
  GraphicsMetadata struct pointing to its first member 'size'
  instead of second member 'data'.

- Implement function to encode/decode GraphicsMetadataRaw to translate
  the metadata before calling mapper set/get.

- Update encodeGraphicsMetadata/decodeGraphicsMetadata functions to
  store/retrieve only 'data' member in GraphicsMetadata structure.

CRs-fixed: 2682060
Change-Id: I60c3dd2029ba21aa481dad35f9b4738b2d78957a
2020-05-22 01:37:06 -07:00
Dhruv Kaushik
fcc2e6ea0f gralloc: Change HAL_PIXEL_FORMAT_YCbCr_420_P010 macro
Use value 54 from system include for HAL_PIXEL_FORMAT_YCbCr_420_P010

Change-Id: I5a008141a857f4c7c3e4f116c78553f34030ae2f
Crs-fixed: 2688319
2020-05-20 23:47:39 -07:00
Dileep Marchya
b768004454 display: Add interface to set display attributes
- Add interface to set content fps on a display

CRs-Fixed: 2681693
Change-Id: Ic05459e91c84197490e978aa8c65af2f6a2b496e
2020-05-20 18:31:26 -07:00
qctecmdr
65a9ce9dae Merge "config: fix the signature to get getDebugProperty/getSupportedDsiBitClks" 2020-05-20 01:04:27 -07:00
Padmanabhan Komanduru
30f1b5d2ae config: fix the signature to get getDebugProperty/getSupportedDsiBitClks
Change-Id: I16e83341e708d4223be10da38363eab6e46c4b18
CRs-Fixed: 2686395
2020-05-14 11:37:59 +05:30
Venkat Thogaru
9bea0aaafa display: Fix null pointer dereference
Change-Id: I90236ee583a6862866b74f3645ff39e96673794a
2020-05-13 12:27:53 +05:30
qctecmdr
340e7f7cb0 Merge "display: add libdisplayconfig.qti to product packages" 2020-05-02 23:32:32 -07:00
qctecmdr
3fc2bc24e1 Merge "display: Add interface to get current frame rate from SmoMo" 2020-05-02 23:32:32 -07:00
qctecmdr
0ce7be9173 Merge "display: Fix dependency compile error" 2020-05-02 23:32:32 -07:00
Mohamed Moussa
192d186207 display: Fix dependency compile error
When enforce compile time product I/F, system_ext module
cannot link to product module and vice versa.
When PRODUCT_PRODUCT_VNDK_VERSION := current, all native modules
in product partition are in the product variant. Adding system_ext_specific
and vendor_available will create system_ext variant and vendor variant.
This will fix the following dependency compile 2 errors:
-Error: MMCapability.cpp:33:10: fatal error: 'qd_utils.h' file not found
libwfdsinksm.so [MMCapability.cpp], installed in SYSTEM_EXT partition
and depends on libqdMetaData [qd_utils.h], accessable in product partition.
Replacing product_specific with system_ext_specific, while enforcing product I/F
will install libqdMetaData in system_ext and variant in product partition

-Error: dependency "libgralloc.qti" of "libqdMetaData" missing variant
libqdMetaData now moved to system_ext. Need to install libgralloc.qti
in system_ext.

Change-Id: Ic4eb768173f2125cee2bb1fa69665b50e8708ea5
2020-04-27 13:07:10 -07:00
Padmanabhan Komanduru
a4348dcfe9 display: add libdisplayconfig.qti to product packages
Change-Id: Ic8a69bc5368f9d41c5958181ecb091e6d0d4ad05
2020-04-23 19:36:53 +05:30
Sushil Chauhan
4a4eafe3b6 display: Add interface to get current frame rate from SmoMo
Add an interface to query the current frame rate from SmoMo, which is
based on its internal state.

CRs-Fixed: 2667026
Change-Id: Ia0b7305124c72e548dc7c935ab5b717945fbc7c2
2020-04-23 00:44:50 -07:00
Yichi Chen
bddad07ef1 gralloc: Refactor gralloc4.0 for some concerns in code review
There were some concerns raised in the intern code review process. Since
Qualcomm has merged their Gralloc4.0 changes into their codebase, the
patch created another standlane change to address the concerns within
the code review.

Bug: 141596968
Test: VtsHalGraphicsMapperV4_0TargetTest
Change-Id: I33905f5f1198089a1e3fe16e1fd46a8f614e8679
(cherry picked from commit 3dfff2a5af39b14422ede072e3e9d95596e5fc3f)
2020-04-14 08:21:22 -07:00
qctecmdr
8b2c335b17 Merge "display: Fix garbage values from UPDATE_COLOR_SPACE" 2020-04-14 04:15:42 -07:00
Mahesh Lanka
da0673916d display: Deprecate usage of clearMetaData
-- Deprecate usage of clearMetaData.
-- Use setMetaData interface to clear metadata.

Change-Id: I2ddc3163653c443eb664427a74714eb00b5ed100
2020-04-10 01:43:52 -07:00
Tharaga Balachandran
c20aa83dae display: Fix garbage values from UPDATE_COLOR_SPACE
This change initializes the local "ColorMetaData color"
to prevent uninitialized values being read.

CRs-Fixed: 2660086
Change-Id: I67284a57d4e12a0289824288b36804e3bd76fd02
2020-04-08 17:00:59 -04:00
Tharaga Balachandran
aa640f7b96 display: Add metadata types for allocated width and height
The standard metadata types for width and height return the
values requested by the client, rather than the width and height
of the allocated buffer. This change adds internal metadata types
so clients can query the allocated values.

CRs-Fixed: 2638621
Change-Id: I7c69cff65512c30e27eb86ef33f67079c979eeb6
2020-04-08 12:06:13 -07:00
qctecmdr
251cf65a33 Merge "commonsys-intf: display: Fix ContentLightLevel max avg light lvl" 2020-04-03 00:57:15 -07:00
Arun Kumar K.R
a6ab9d11b4 commonsys-intf: QTIGralloc: Add new camera FLEX formats
Define new camera FLEX formats for UBWC batch size of 2, 4, 8

Change-Id: Ibdbff8f802a7d2bc6ed0962b467ddf8ef3155175
Crs-fixed: 2654646
2020-04-01 11:14:25 +05:30
Arun Kumar K R
c133d5439d commonsys-intf: display: Fix ContentLightLevel max avg light lvl
- The field minPicAverageLightLevel is actually maxPicAverageLightLevel
  from the H.265 spec, mention it will be deprecated.
- Add new member maxPicAverageLightLevel which clients must use, this
  is same as maxFrameAverageLightLevel from CTA-861.G
- The unit for maxPicAverageLightLevel is 1 cd/m^2.

Change-Id: Ida73949d4e4595bc4505e7451c40c6e6976bd092
CRs-fixed: 2607978
2020-03-26 21:50:16 -07:00
Ramakant Singh
0ed17fb8a5 display: Remove redundant lib displayconfig
Change-Id: I9021a9460f08ae35a096e0d7d8739c2dc059ecbf
2020-03-01 21:25:16 -08: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
qctecmdr
0b169cb805 Merge "display: Remove gralloc debug property code" 2020-02-22 08:50:23 -08:00
Tharaga Balachandran
a6480a48d4 qdMetadata: Remove unused metadata types
This change removes metadata types which are not set. The color
space is also set through ColorMetadata, with helpers to convert
to/from the legacy type ColorSpace_t.

CRs-Fixed: 2606686
Change-Id: I2dd67c0082a31ca6900fe845c13d0519a2289060
2020-02-20 15:20:41 -08:00
Tharaga Balachandran
c398796f7c display: Remove gralloc debug property code
querySDEInfo is an unused function and can be removed.

CRs-Fixed: 2619084
Change-Id: I2857e1c8c77a48697c83af421cd3a8e3a92ec7ee
2020-02-13 17:11:18 -05:00
Padmanabhan Komanduru
d5010db9e1 display: add support for IDisplayConfig 2.0
Change-Id: I7193697b95ea58c5661d3a8782c30ada3813a042
2020-02-10 14:14:46 +05:30
qctecmdr
651d9fc79b Merge "gralloc: Move WFD usage flag to sanctioned vendor bit" 2020-01-28 20:15:08 -08:00