Commit Graph

3193 Commits

Author SHA1 Message Date
Linux Build Service Account
72d3062d41 Merge "gralloc1: Fix sign conversion error" 2017-03-16 13:41:51 -07:00
Linux Build Service Account
cfa399d5ac Merge "lights/sdm: Add support for new brightness node" 2017-03-16 12:11:16 -07:00
Saurabh Shah
8b021cface lights/sdm: Add support for new brightness node
Add support for the new brightness node under
/sys/class/backlight/panel0-backlight/brightness

Change-Id: I6489c6e3796b3f455b1aef3caae84da307e554e4
CRs-fixed: 1114808
2017-03-15 19:37:41 -07:00
Linux Build Service Account
96da729233 Merge "sdm: Fix file path for input layer dump." 2017-03-15 03:53:19 -07:00
Linux Build Service Account
fcaabf2dee Merge "liblight: Add brightness level extension support" 2017-03-14 10:33:53 -07:00
Linux Build Service Account
890f2dddd7 Merge "sdm: fb: Ensure backward compatibility for backlight extn" 2017-03-14 10:33:53 -07:00
Naseer Ahmed
7dc06d1046 gralloc1: Fix sign conversion error
CRs-Fixed: 2019290
Change-Id: I512656aa42158d47a5a0fcb5a430ccb65a1344e7
2017-03-14 09:45:29 -07:00
Xu Yang
586c6d5f9a liblight: Add brightness level extension support
Add brightness level extension API to set backlight
through display API. The feature is enabled by property.

Change-Id: Ia6911433705cc946ed73ffc820396c350e3c8b88
2017-03-14 01:57:54 -07:00
Linux Build Service Account
692f91424d Merge "gralloc1: Drop ZSL check" 2017-03-13 22:58:32 -07:00
Linux Build Service Account
0a7d5af8bc Merge "gralloc1: Add Dump() in buffer manager" 2017-03-13 18:14:33 -07:00
Naseer Ahmed
d0c5bb612f gralloc1: Drop ZSL check
The gralloc1 header does not have a clearly defined ZSL mask.
Ignore the ZSL flag (which was previous just a combination of
camera read and write) and check for read/write separately

Bug: 36072030
CRs-Fixed: 2018754
Change-Id: I337df6860cf8098ef51f5affc0b8b79242e77824
2017-03-13 17:50:57 -04:00
Naseer Ahmed
699b45750b gralloc1: Add additional debug logging
CRs-Fixed: 2018334
Change-Id: I4ef2613ec69ca98818ed9c4f8d2408c4df2d039e
2017-03-13 17:50:57 -04:00
Naseer Ahmed
ef287dc13d gralloc1: Use handle as map key
The handle map is process local and the id may not be unique for
a given process

Bug: 36135145
CRs-Fixed: 2018333
Change-Id: Ic2bba13107787fd54121c978bff7e507eeb7dd64
2017-03-13 17:50:57 -04:00
Linux Build Service Account
d77bc08802 Merge "sdm: Change idle fallback time dynamically." 2017-03-12 23:23:25 -07:00
Naseer Ahmed
dc918136ae gralloc1: Add Dump() in buffer manager
CRs-Fixed: 2016226
Change-Id: Ia09de175b6b0c837ae9d66deb6f08615a7cf6baa
2017-03-11 23:59:06 -05:00
Linux Build Service Account
2714037885 Merge "sdm: drm: Add user space to DRM driver struct conversion for PGC" 2017-03-10 11:11:27 -08:00
Linux Build Service Account
bf805fdf05 Merge "sdm: Add property to disable partial split" 2017-03-10 03:21:33 -08:00
Rajesh Yadav
5e2b69f441 sdm: fb: Ensure backward compatibility for backlight extn
Backlight extn feature is not enabled for all targets.
Ensure backward compatibility.

Change-Id: Ic27f0ca96c8c76cd9bd8afe15ac9d93a04cb04df
2017-03-09 19:19:15 +05:30
Xu Yang
c31d7f8d94 sdm: add one action to set panel brightness and refresh screen
Add one action to set panel brightness and refresh screen. The
backlight level is cached and sent through display commit IOCTL
to driver, which would take effect along with display commit.

Change-Id: I87483e82b5c13ef25c1da956ac9403162afd031e
2017-03-09 19:18:08 +05:30
Pramodh Kumar Mukunda
2fdd16adee sdm: Fix file path for input layer dump.
Change-Id: If9f12377432310ad298db5cb80b5d49571bf85bb
CRs-Fixed: 2016599
2017-03-09 04:28:44 -08:00
Saurabh Shah
14ee4b688b sdm: rotator: Port min downscale and downscale compression
Port min downscale and downscale compression capabilities support
to DRM path

Change-Id: I4842d1598195aef09159801a7efcd0a61ee9840e
CRs-fixed: 1114808
2017-03-08 17:21:36 -08:00
Ping Li
cd557c1906 sdm: drm: const correctness
Add const keyword to references that will not be modified.

CRs-Fixed: 2007376
Change-Id: I40f66ca57bd0393c339bc500d5217577bd752a1f
2017-03-08 17:19:31 -08:00
Linux Build Service Account
319f1e808e Merge "sdm: drm: Add user space to DRM driver struct conversion for gamut" 2017-03-08 12:11:10 -08: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
Ping Li
d00094273f sdm: drm: Add user space to DRM driver struct conversion for PGC
In order to support QDCM features with DRM driver, a layer of
conversion from QDCM struct to DRM driver stuct is needed.
This change adds the conversion for PGC feature.

CRs-Fixed: 2007376
Change-Id: I8f5c91028a776cd61cf984b6d763e8960fe2e5bf
2017-03-06 10:13:13 -08:00
Linux Build Service Account
d9f61ce2ca Merge "gralloc: Add support for 8-bit RAW MIPI stream" 2017-03-05 21:39:05 -08:00
Linux Build Service Account
ce565d2191 Merge "sdm: Add support to handle idle power collapse event" 2017-03-05 21:39:03 -08:00
Linux Build Service Account
c2b20a3a09 Merge "sdm: Destroy singleton DRMMaster instance" 2017-03-03 23:49:01 -08:00
Linux Build Service Account
b0a253bf3a Merge "sdm: Add support for rotator with DRM" 2017-03-03 18:53:05 -08:00
Pullakavi Srinivas
c1a71ca211 sdm: Add property to disable partial split
Change-Id: Ia6a60d5e13eb7c18ce02232e1b8e4c98629a7556
CRs-Fixed: 2010024
2017-03-02 03:47:25 -08:00
Linux Build Service Account
11e8ee03a2 Merge "sdm: Create HWCUevent thread before creating display." 2017-03-02 01:35:35 -08:00
Naseer Ahmed
1e54952f4c Revert "display: Move all opensource modules to vendor partition"
This reverts commit 4c790408b1.

Change-Id: I32c48e300e8c641b196210c4412b635e1c1941f0
CRs-Fixed: 2013665
2017-03-01 18:50:25 -05:00
Saurabh Shah
a57cf169f4 sdm: Destroy singleton DRMMaster instance
Destroy singleton DRMMaster instance on teardown, this is important
for back to back API test runs

Change-Id: I27e5d2adcc9d0805281dd0c858eaed5af745b269
CRs-fixed: 1114808
2017-03-01 11:20:04 -08:00
Naseer Ahmed
4c790408b1 display: Move all opensource modules to vendor partition
CRs-Fixed: 2010492

Change-Id: I80bb14624e9a47189777bd4c8f8847ca946df74c
2017-02-28 23:55:12 -05:00
Ramkumar Radhakrishnan
2337d700f6 sdm: Add support to handle idle power collapse event
Reset cached LUT information for all pipes on idle power collapse
event for command mode panel

Change-Id: Iadd042fc016ac4df174caea08d7404e840e39c35
CRs-Fixed: 1115657
2017-02-28 20:02:34 -08:00
Ramkumar Radhakrishnan
9f163268a3 sdm: Create HWCUevent thread before creating display.
Enable hotplug for external display after creating HWCUevent thread
to avoid missing connect/disconnect events for external display.

Change-Id: I8f2ec72b772c96534236617d50b2e22c168a7477
CRs-Fixed: 2010385
2017-02-28 12:29:04 -08:00
Dileep Marchya
b06308d123 sdm: Change idle fallback time dynamically.
- Query composition manager for an optimal
  idle time for the current draw cycle.
- Avoid setting same idle time again on sysfs.

CRs-Fixed: 2011276
Change-Id: I4afde21ad630953d5f701fb3d123435028bdfef2
2017-02-28 12:23:06 +05:30
Linux Build Service Account
0beb2fd1a8 Merge "gralloc: Add support for raw12" 2017-02-27 19:53:53 -08:00
Linux Build Service Account
0f05e188a1 Merge "hwc2: Fix dumpsys bug" 2017-02-27 18:19:18 -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
Ping Li
85d9c785a3 sdm: drm: Add user space to DRM driver struct conversion for gamut
In order to support QDCM features with DRM driver, a layer of
conversion from QDCM struct to DRM driver stuct is needed.
This change adds the conversion for Gamut feature.

CRs-Fixed: 2007376
Change-Id: Ic2209a92fac021722c51c64716c2dd5566ee17b6
2017-02-27 17:20:36 -08:00
Ping Li
281f48de8a sdm: drm: Add post-processing support in SDM
SDM added support for the DRM driver recently. This change
adds the similar support in the SDM to enable/disable
post-processing features via DRM driver for QDCM.

CRs-Fixed: 2007376
Change-Id: I39d8d2c76a28aac0675c559dceb6dcf74eb170fb
2017-02-27 17:20:30 -08:00
Ping Li
68f7040b1c sdm: color-manager: Add new PP versions to color manager
This change adds a new gamut version to color manager to support
the newly introduced gamut version in hardware.
An new value kSDEPpVersionInvalid is also added to indicate
invalid PP feature version for error cases.

CRs-Fixed: 2007376
Change-Id: Ib1a738fdf39fa28f163c5d7fa08260c36451f3fc
2017-02-27 17:20:25 -08:00
Naseer Ahmed
66d5b49155 hwc2: Fix dumpsys bug
Pass the correct size of dump.
CRs-Fixed: 2011174
Change-Id: I6bb1b78a84bd996c780875811bec1020dff648e3
2017-02-27 12:31: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
Linux Build Service Account
b08b43ff0b Merge "sdm: Fix vector initialization" 2017-02-26 17:04:42 -08:00
Linux Build Service Account
3394427d7a Merge "sdm: Add support to recompute rectangles considering flips" 2017-02-26 17:04:40 -08:00
Saurabh Shah
a228f120a5 sdm: Add support for rotator with DRM
Add support for using rotator with DRM driver

Change-Id: I7fda6cb5bda571c3cc80dcae53238800cc875c0b
CRs-fixed: 1114808
2017-02-24 09:25:37 -08:00
Linux Build Service Account
dd54f8443f Merge "sdm: Increase SurfaceFlinger fd limits" 2017-02-22 13:41:11 -08:00
Naseer Ahmed
8f9c7c3232 gralloc1: Fixes for hidl
* Fix capabilities check
* Use unique ID for backing store per the hidl spec

CRs-Fixed: 2009826
Change-Id: Ifc2be98a00dc3b0e4fd4e3e4c8d343de6afd8560
2017-02-21 15:59:40 -08:00