Commit Graph

3498 Commits

Author SHA1 Message Date
Prabhanjan Kandula
dbc8aed64d sdm: Add support for solid fill mixer stage
- Define drm interface for setting solid fill stage info on crtc.
- Define sdm private structure for solid fill layers in hw layer config.
- Add DAL translation of setting up solidfill stages for atomic commit.
- Multiply alpha component of color with plane alpha.

Change-Id: I60ac64beee31986f83fcfe025a7ece02aa0198b1
CRs-fixed: 2026472
2017-07-18 15:45:53 -07:00
Prabhanjan Kandula
bfed662b85 sdm: Resource interface change for stop
Pass hw layers for Stop call on resource interface.
This allows RM to complete any required handling
before validating current frame on a given display.

Change-Id: Iba56da9528464a226e747a84183183d84e69c07a
CRs-fixed: 2054566
2017-07-18 14:05:24 -07:00
Linux Build Service Account
8b76f57354 Merge "sdm: Avoid duplicate BW config on crtc" 2017-07-18 13:10:34 -07:00
Linux Build Service Account
4d73c014fe Merge "sdm: Configure RMFB delay based on whether it is refcounted" 2017-07-17 21:29:06 -07:00
Linux Build Service Account
b9b6c00e60 Merge "gralloc1: Add support for 10-bit tight pack usage flag" 2017-07-17 21:29:05 -07:00
Linux Build Service Account
539b96c24b Merge "gralloc1: Deprecate usage flags for internal/external only" 2017-07-17 21:29:05 -07:00
Linux Build Service Account
8df02280d9 Merge "hwc2: Set client target dataspace" 2017-07-17 21:29:03 -07:00
Linux Build Service Account
267741cdaf Merge "sdm: Add support to simulate reduced configuration" 2017-07-17 21:29:02 -07:00
Linux Build Service Account
bfbffd6b16 Merge "qdutils: Handle color-metadata on non-HDR targets" 2017-07-17 20:07:19 -07:00
Linux Build Service Account
b0d83624e7 Merge "hwc2: Copy UBWC Compression stats from Metadata to layer_buffer" 2017-07-17 20:07:17 -07:00
Linux Build Service Account
c1af1ba9ad Merge "qdutils: Support Get/Set of UBWC CR Stats metadata" 2017-07-17 20:07:17 -07:00
Prabhanjan Kandula
f890c252de sdm: Avoid duplicate BW config on crtc
Bring bandwidth config out of loop to avoid setting per layer.

Change-Id: I3597e7f3daa58db73f8ee4c9b63fd6ad67ff69ac
CRs-fixed: 2054566
2017-07-17 10:52:37 -07:00
Gopikrishnaiah Anandan
76815525eb sdm: drm: Add support for sde hardware revision caching
SDE hardware version should be cached by drm crtc which will be passed
onto the clients of colormanager. Based on the SDE hardware version
clients will know which feature set is supported. Change adds support to
cache sde version.

Change-Id: I09051bcdfc0f759297519c3abd46373944967ada
2017-07-17 10:52:36 -07:00
Anjaneya Prasad Musunuri
0a48110086 sdm: Add support to simulate reduced configuration
Add support to simulate reduce plane configuration.

Change-Id: Ic4633668ff255840af3a175a66d553ee017bb27b
CRs-Fixed: 2071452
2017-07-16 22:05:25 -07:00
Linux Build Service Account
b8b9bc725b Merge "hwc2: Allow non-atomic execution of validate and present apis" 2017-07-14 17:52:36 -07:00
Gurunath Ramaswamy
f081afee55 hwc2: Copy UBWC Compression stats from Metadata to layer_buffer
CRs-Fixed: 2073410

Change-Id: Ie7b84686a54ecdfec2fd4a885e1a294b51c6397e
2017-07-14 11:56:08 -07:00
Gurunath Ramaswamy
b494c02d94 qdutils: Support Get/Set of UBWC CR Stats metadata
CRs-Fixed: 2073410

Change-Id: I133307d63d301a24af183b18a330eb160459c805
2017-07-14 11:18:17 -07:00
Linux Build Service Account
37bfa25dc4 Merge "sdm: drm: Read Panel HDR caps" 2017-07-14 03:57:08 -07:00
Linux Build Service Account
ebba9c12d6 Merge "libgralloc1: Initialize stride and height from handle by default" 2017-07-13 21:22:42 -07:00
Linux Build Service Account
03a7991014 Merge "sdm: Handle unknown connector topology after WB config" 2017-07-13 17:50:47 -07:00
Linux Build Service Account
0abff2aa7a Merge "display: Cleanup unused code" 2017-07-13 17:50:46 -07:00
Linux Build Service Account
7fbb3ec123 Merge "hwc2: Modify the Config Count" 2017-07-13 17:50:46 -07:00
Linux Build Service Account
a126161639 Merge "sdm: drm: Clear the color structures after freeing memory" 2017-07-13 17:50:45 -07:00
Linux Build Service Account
2b8d9c5328 Merge "sdm: drm: Add support for secure use cases" 2017-07-13 17:50:42 -07:00
Linux Build Service Account
7cf3d5b18a Merge "qdutils: Use POD copy for metadata" 2017-07-13 05:19:26 -07:00
Linux Build Service Account
92131afd30 Merge "hwc2: Apply default color mode on boot complete" 2017-07-13 05:19:26 -07:00
Sushil Chauhan
80e5843315 sdm: drm: Read Panel HDR caps
Read Panel HDR capabilities from DRMConnectorInfo.

CRs-Fixed: 2073357
Change-Id: I48346e116f147bc3c32967e68e7e4a9e514de2c6
2017-07-11 14:00:34 -07:00
Saurabh Shah
23cd08af20 sdm: Configure RMFB delay based on whether it is refcounted
Configure RMFB delay based on whether it is refcounted. If it is,
fb_id should be released immediately from userspace and driver will
free it when its usage is over. If not refcounted userspace needs
to defer freeing fb_id until a time where driver usage will be over.

Change-Id: I162723a5426c7e7c041d444ba50a73475858e96f
CRs-fixed: 1114808
2017-07-11 10:24:30 -07:00
Uday Kiran Pichika
5649e1c4f4 qdutils: Handle color-metadata on non-HDR targets
CRs-Fixed: 2074296
Change-Id: I7aeb82b662455656dd48352201504516ebadf156
2017-07-11 12:04:30 +05:30
Ramkumar Radhakrishnan
0574753d8d libgralloc1: Initialize stride and height from handle by default
Initialize stride/height with width/height of handle by default to
avoid returning invalid values to the client.

Change-Id: Iefa488fb50bbbb6aa9c6daf86af3f64092e56344
CRs-Fixed: 2073298
2017-07-10 17:46:56 -07:00
Naseer Ahmed
8502008020 display: Cleanup unused code
CRs-Fixed: 2048735
Change-Id: Ief7f8ae4006ab211272191b66bd4bd854d9098b2
2017-07-10 18:19:08 -04:00
Uday Kiran Pichika
6c26ba9560 hwc2: Allow non-atomic execution of validate and present apis
Replace sequence locks with scope locks

CRs-Fixed: 2069729
Change-Id: I38d2a7d0c3de2dd77e924c492e89a5397a070113
2017-07-10 00:37:41 -07:00
Linux Build Service Account
8aa99e0056 Merge "hwc2: Check composition type in SetLayerBuffer" 2017-07-09 02:34:29 -07:00
Linux Build Service Account
1d4c70354e Merge "sdm: Change frame dump directory" 2017-07-09 02:34:28 -07:00
Linux Build Service Account
6a1556f2df Merge "sdm/hwc Handle Suspend/Resume for virtual display with DRM" 2017-07-09 02:34:26 -07:00
Linux Build Service Account
cbfbc26fd1 Merge "sdm: PowerOff crtc before cleaning up display." 2017-07-09 02:34:25 -07:00
Linux Build Service Account
bdde04c4ce Merge "hwc: Add scalar tag to dynamic debug" 2017-07-09 02:34:24 -07:00
Linux Build Service Account
0f928ecf46 Merge "sdm: Handle InverseMount adjustments in SDM." 2017-07-09 01:27:44 -07:00
Linux Build Service Account
2cbc85fbee Merge "sdm: Save debug logs on pingpong timeout" 2017-07-09 01:27:44 -07:00
Linux Build Service Account
0e5ccc3d94 Merge "sdm: Do not reset acquire and release fences." 2017-07-09 01:27:41 -07:00
Linux Build Service Account
53e4a95cfc Merge "hwc2: fix for accessing right buffer variable name" 2017-07-09 01:27:40 -07:00
Uday Kiran Pichika
2b396bc7e3 hwc2: Modify the Config Count
CRs-Fixed: 2072496
Change-Id: Ia742b130ca30a32bdbf992d87dcf3bf137ca5f9c
2017-07-07 06:36:08 -07:00
Sushil Chauhan
1021cc0c0a sdm: drm: Add support for secure use cases
1. Set FB Secure translation mode for Plane.
2. Set Security level for CRTC.

CRs-Fixed: 2054074
Change-Id: I39610f2d9548641c724d1a7c16b23865c29323df
2017-07-06 14:21:44 -07:00
Naseer Ahmed
e9b8762b62 qdutils: Use POD copy for metadata
CRs-Fixed: 2072303
Change-Id: Icc15706df10098f419966d28f30c2246fafc26bc
2017-07-06 15:22:43 -04:00
Ramkumar Radhakrishnan
4747d0ffdf sdm: Handle unknown connector topology after WB config
Initialize topology to SINGLE_LM or DUAL_LM_MERGE based on Writeback
configuration and max_mixer_width if topology is set to UNKNOWN.

Change-Id: I1b5968854cb5ac5fce19001ad04e93ac6a529c3d
CRs-Fixed: 2072354
2017-07-06 12:11:19 -07:00
Dileep Marchya
d16da3ecba sdm: hwc2: Add support for HDMI as primary.
- Create external display if HDMI is already
  connected on boot.
- Wait for hotplug connect event if HDMI is not
  connected on boot.
- Notify surfaceflinger only once when primary
  display is created for first time.
- Destroy and recreate SDM external display on
  successive disconnect/connect. Do not notify
  surfaceflinger any subsequent hotplug events.
- Add null display implementation to route any
  incoming calls from surfaceflinger when display
  is disconnected.

CRs-Fixed: 2037067
Change-Id: I649756452d714e538c313cf80c0144934ad494f9
2017-07-05 06:09:59 -07:00
Ch Ganesh Kumar
86c4651737 hwc2: Apply default color mode on boot complete
Add change to apply default color mode at
device bootup.

Change-Id: If4a5b70ce3bb28a64757b64815e5b4e56ca515a7
CRs-fixed: 2057516
2017-07-05 13:25:50 +05:30
Linux Build Service Account
a46ce7c6e3 Merge "hwc2: Implement IDisplayConfig HIDL service." 2017-07-04 23:01:32 -07:00
Naseer Ahmed
2f8f8d4338 gralloc1: Update client allocated handle behaviour
Client allocated handles give us a dup'd fd so we can
retain/release normally.

Change-Id: I0ec7cb6b86cbf23c160a81750144b5ca751c4104
Bug: 62470929
CRs-Fixed: 2060697
2017-07-04 12:50:19 -07:00
Naseer Ahmed
a6ba1fbc5e hwc2: Set client target dataspace
Change-Id: I5c122f9c819c2845b8b30539d953cb62af4e4358
2017-07-04 10:07:13 -07:00