Commit Graph

3964 Commits

Author SHA1 Message Date
Naseer Ahmed
280ce67a86 gralloc: Fix uncached settings on CPU rare read/write
Change-Id: I4187b4beaacf26388cdd4c9f2b7d4e49a5882983
2018-04-20 04:16:46 -07:00
Linux Build Service Account
fce408e4f8 Merge "sdm: Set connector mode on power off" 2018-04-18 10:52:44 -07:00
Linux Build Service Account
3019f2409d Merge "sdm: Restore the mode which is set by native QDCM API" 2018-04-18 10:52:41 -07:00
Dileep Marchya
70b2515e65 libdebug: Fix order of DLOG definitions.
Change-Id: I31d221fc083567f0a49a0944ad75dccc04a6a837
CRs-Fixed: 2223525
2018-04-16 09:21:31 +05:30
Naseer Ahmed
0efa976f97 display: libdisplaydebug fixes
* Remove kernel includes
* Fix warning/info/debug tags

Change-Id: Ibdf18b15bdf025fbbab4b2c3ba2670b253f2edb7
2018-04-15 20:29:57 -07:00
Linux Build Service Account
3e6ef5f637 Merge "sdm: Correct default properties." 2018-04-15 13:15:49 -07:00
Linux Build Service Account
a2c8cac0e5 Merge "sdm: Update vendor HDR capability logic" 2018-04-15 05:24:37 -07:00
Ramkumar Radhakrishnan
b8cce97295 sdm: Set connector mode on power off
CRTC ROI is set to full screen during power off. if SetActiveConfig()
called before SetPowerMode off, CRTC ROI is set to full screen based
on old resolution mode which results in failure. Hence set the new
connector mode as a part of SetPowerMode to avoid this.

Change-Id: Id3b16113a8f944b6fb839f23f6af8b56bba69fdc
CRs-Fixed: 2211483
2018-04-13 05:48:02 -07:00
Ramkumar Radhakrishnan
6b98373e6f hwc2: Fix VTS failure on setActiveConfig() testcase
New resolution mode being set as a part of next commit, if
getActiveConfig() is called before the next commit sdm provides
the old config that results in VTS failure. Hence return the pending
config instead of the current config.

Change-Id: I18660916dae1c9fc8b3390afed1b94d8448f5966
CRs-Fixed: 2211483
2018-04-12 15:14:48 -07:00
Anjaneya Prasad Musunuri
1a8c48f254 sdm: Correct default properties.
-- correct default values of vds enable property
 -- remove properties with default values
 -- remove prefer split by default.

Change-Id: I1ac530361b21a51a396898b41b6e7cf2115b3f28
CRs-Fixed: 2222567
2018-04-11 15:56:42 +05:30
Qing Huang
290639a9d5 sdm: Restore the mode which is set by native QDCM API
When HDR playback off, only allow sdr mode which is
set by SetColorMode in SDM to restore.
If the mode was set by native QDCM API, it can't to
restore it.

Get the active color mode which is can be set by
SetColorMode or native QDCM API before switch to
HDR mode, then restore it when HDR playback off.

Change-Id: Ifcd5f92fa687eac412a89a4a7efa8f5bf777564f
CRs-Fixed: 2169148
2018-04-11 03:14:42 -07:00
Uday Kiran Pichika
e08bbb4582 sdm: comply with treble guidelines
- Replace egl.swapinterval with macro name

CRs-Fixed: 2206249
Change-Id: I5a90823fc0496ab764de33be5322c07aa94280a4
2018-04-10 20:31:07 +05:30
Ch Ganesh Kumar
271ddb1f3d sdm: Update vendor HDR capability logic
HDR support capabilities were populated to SF, when panel and target
supports HDR. At SF, HDR layer is forced to GPU composition with new
HDR solution, if vendor does not support HDR. This change will populate
marking HDR support to true (for all display types) when primary panel
is internal.

Change-Id: I8305ae672cf8a721abf25ce026f21dbcbbb17928
2018-04-09 23:29:06 +05:30
Linux Build Service Account
c1b61ff197 Merge "sdm: Add missing default initializations" 2018-04-05 22:22:44 -07:00
Saurabh Shah
7694399a04 sdm: Add missing default initializations
Add missing default initializations. Remove reset().

Change-Id: Ib629db78b7b47afbf66193533870a6433ab9eec6
CRs-fixed: 2194609
2018-04-05 11:31:57 -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
42404f40b1 qdutils: Fix vendor flag
If VNDK version is not enabled, the vendor_available flag
only installs the library in the system partition

Change-Id: If49b05a1cb04472e9d4fecb98ba8b56a18029896
2018-04-04 10:35:23 -07:00
Linux Build Service Account
b1e623e031 Merge "hwc2: Add HLG cap in the HDR capabilities" 2018-04-03 19:42:21 -07:00
Linux Build Service Account
41247fcbe9 Merge "Revert "liblight: Add brightness level extension support"" 2018-04-03 10:54:15 -07:00
Linux Build Service Account
38b7a68c24 Merge "Revert "sdm: add one action to set panel brightness and refresh screen"" 2018-04-03 10:54:13 -07:00
Sushil Chauhan
970e351c76 hwc2: Add HLG cap in the HDR capabilities
Add HAL_HDR_HLG in the HDR Capabilities of HWC device implementation.

CRs-Fixed: 2209117
Change-Id: I64ea9c5f4dfe3f1eb8176906016242acbb2251e8
2018-04-03 10:10:46 -07:00
Linux Build Service Account
3bd713bd6d Merge "sdm: Use generic libdebug utility." 2018-04-03 05:35:06 -07:00
Linux Build Service Account
3c056091b6 Merge "libdebug: Add common debug utility." 2018-04-03 05:35:06 -07:00
Ch Ganesh Kumar
af75ef5d91 Revert "liblight: Add brightness level extension support"
This reverts commit 586c6d5f9a.

Change-Id: I7af568b0924b6d1bfce903f8d758f21d369c193c
2018-04-03 10:59:43 +05:30
Ch Ganesh Kumar
c4db309c3e Revert "sdm: add one action to set panel brightness and refresh screen"
This reverts commit c31d7f8d94.

Conflicts:
	sdm/include/private/color_params.h
	sdm/libs/core/fb/hw_device.cpp
	sdm/libs/hwc/hwc_display.cpp
	sdm/libs/hwc/hwc_display.h
	sdm/libs/hwc/hwc_session.cpp

Change-Id: I76729ee9ae83a611fca632e18315d478bcf13fa4
2018-04-02 22:22:20 -07:00
Dileep Marchya
a2e6d9bf3d sdm: Use generic libdebug utility.
CRs-Fixed: 2211061
Change-Id: Ib949c40ff63a61a4476876c45357a40a702c9a01
2018-04-03 10:24:43 +05:30
Dileep Marchya
1bfb21012e libdebug: Add common debug utility.
- Add sdm and drm independent debug utility.

CRs-Fixed: 2211061
Change-Id: I48f9d8080ce05cff0ac0982f8e7123fec969e695
2018-04-03 10:24:24 +05:30
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
Naseer Ahmed
e7650ea727 display: VNDK header fixes
Change-Id: Id7604ac803e49940aa2b49e106b414b4be1a25ad
2018-03-27 20:31:44 -04:00
Naseer Ahmed
ba0f83c385 display: Partially convert makefiles to blueprints
Change-Id: I5429ecee3985e305290e312921725460ef195b83
2018-03-27 20:11:15 -04:00
Linux Build Service Account
269e170176 Merge "hwc2: Avoid overwriting metadata refresh rate." 2018-03-23 02:17:57 -07:00
Linux Build Service Account
6c69928b05 Merge "sdm: color transform support for HDR playback" 2018-03-23 02:17:54 -07:00
Pullakavi Srinivas
5d3d866c02 hwc2: Avoid overwriting metadata refresh rate.
-- Compute sanitized metadata refresh rate.
-- Populate display's operating refresh rate to all
   the layers that donot support metadata refresh rate.

Change-Id: Iaf17e4e10da543e110fcf6ba7648d60807069f98
2018-03-22 07:17:18 -07:00
Ch Ganesh Kumar
918d5d96e8 sdm: color transform support for HDR playback
In HDR playback case, colortransform is not applied, if it was set already.
This change will help restore color transform for HDR playback.

Change-Id: I3cf6f9eb7c5632e8622ccec2c0c40e3b51e8ad9b
2018-03-22 06:50:49 -07:00
Uday Kiran Pichika
2cc9fa6c87 sdm: comply with treble guidelines
Modify the property names and use macros in place of them

CRs-Fixed: 2206249
Change-Id: I0ccc09fc8335560654e487e78552f79ff7a083de
2018-03-20 21:43:26 -07:00
Linux Build Service Account
57b7d7d8ef Merge "qdMetaData: Remove USE_COLOR_METADATA macro" 2018-03-16 15:38:34 -07:00
Linux Build Service Account
0393b82b62 Merge "sdm: comply with treble guidelines" 2018-03-16 15:38:31 -07:00
Linux Build Service Account
391c797d62 Merge "sdm: Fallback on scRGB layers" 2018-03-15 16:51:51 -07:00
Saurabh Dubey
07eae575b6 qdMetaData: Remove USE_COLOR_METADATA macro
Remove USE_COLOR_METADATA macro from all places
and execute color_metadata specific code unconditionally.

Change-Id: I7980fbb8bc64b82bce66949d0db440d3ab9bf0c4
CRs-Fixed: 2205473
2018-03-15 07:27:24 -07:00
Linux Build Service Account
11142edc2d Merge "sdm: Merge release fence after set power mode" 2018-03-14 19:56:08 -07:00
Naseer Ahmed
b653d0a759 sdm: Fallback on scRGB layers
We don't know how to handle blending when scRGB layers show up.
Fallback entirely to GPU.

Bug: 72125973
Change-Id: Ib01ac0c920bd34f011f0a4d3e76e71d4c7b036e2
2018-03-14 18:27:47 -07:00
Linux Build Service Account
a448113e2e Merge "sdm: Fix refresh seqeunce for QDCM solid fill color" 2018-03-14 09:24:26 -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
Pullakavi Srinivas
de9863c5ae displayconfig: Export header's path.
Change-Id: Ieb8e18c68e1c1bb51698dadd81cc0a8f02721335
2018-03-12 21:34:56 -07:00
Linux Build Service Account
78378f4871 Merge "hwc: Reset stack invalidation state after Prepare" 2018-03-12 21:15:46 -07:00
Linux Build Service Account
c836e192d6 Merge "sdm:hwc2: Initialize color mode count for virtual display." 2018-03-12 18:58:37 -07:00
Linux Build Service Account
1d487729ca Merge "sdm: Drop HW VSYNC in min FPS state." 2018-03-12 18:58:36 -07:00
Linux Build Service Account
8a81ea7b6c Merge "hwc2: Set validated flag when layer stack is empty." 2018-03-12 18:58:34 -07:00
Namit Solanki
5917a0e09a sdm: Drop idle timeout event if refresh is in progress.
- Drop idle timeout event if it occurs between prepare()
  and commit() i.e. device is not really in idle state
  since a new refresh cycle has already started.

Change-Id: If66353ac38bd3a5463fb7fa002e61fb8ed7c80d8
CRs-Fixed: 2181941
2018-03-12 07:36:26 -07:00