Commit Graph

3881 Commits

Author SHA1 Message Date
Naseer Ahmed
04a804a8f1 display: Use log.h from VNDK
Change-Id: I8aa8566036a44b1587f5cfe6c745e11a3dd19481
2018-03-06 20:41:14 -05:00
Linux Build Service Account
c4fdf73cfb Merge "gralloc: Use default interfaces of allocator/mapper" 2018-03-03 04:28:11 -08:00
Linux Build Service Account
b1c29b379a Merge "hwc2: hidl: Remove _vendor from display config" 2018-03-02 22:43:26 -08:00
Naseer Ahmed
62dd96c7a7 gralloc: Use default interfaces of allocator/mapper
Use default interfaces until BOARD_VNDK_VERSION is enabled

Change-Id: I3192c912ca790174f6fc6acb37988d6720167b07
2018-03-02 20:23:40 -08:00
Naseer Ahmed
ea4a9984db hwc2: hidl: Remove _vendor from display config
Change-Id: I7e0358ee4789ce6595da51ab3a47b0e65c8676d8
2018-03-02 11:30:07 -05:00
Naseer Ahmed
503c5c068a displayconfig: hidl fixes
Remove LOCAL_COPY_HEADERS and hidl.base@1.0
Change-Id: I8a7c0b03fee3ef5c8d2f9f7e76d5d9cbe4b77c43
2018-03-02 11:03:07 -05:00
Gousemoodhin Nadaf
7dab1c1e76 sdm: Use monotonic clock in HAL
gettimeofday() function returns wall clock time which can change if the
time is updated using NTP etc. Use clock_gettime() function to get
monotonic clock time to safely and reliably measure elapsed time in
a program.

CRs-Fixed: 2190449
Change-Id: Icc7e470b6427db58837473039d0537748de5b2aa
2018-02-27 02:46:17 -08:00
Srinivas Rao Narne
6f3e3f2e42 Remove Unused Variable to Fix Compilation Error
Change-Id: I5bd784dd9ebbd1905fb0727bf69fd2f6cbb00e36
2018-02-26 15:50:06 -08:00
Naseer Ahmed
cf5dd89532 gralloc: Update implementation defined format in buffer info
Change-Id: I1a53c5524587b9d5fe318b63152169a77f11a0b5
2018-02-26 12:59:22 -05:00
Naseer Ahmed
a422f35f04 gralloc: Add allocator and mapper HALs
Implement the hidl .hal interfaces directly instead of using the
default shims.
This is required since new additions to .hal will no longer be
added to the legacy gralloc1 C header.

Change-Id: If577a14f75d7d13da0ff656c96ab451d21c910ce
2018-02-20 12:17:01 -08:00
Gerrit - the friendly Code Review server
9b937a7018 Merge changes into display.lnx.4.1 2018-02-13 23:22:56 -08:00
Naseer Ahmed
bfd66dbf6c gralloc: Move to new directory
In preparation for the hidlization of gralloc.
Also delete obsolete libgralloc

Change-Id: Id657f985cff1bdbf86c781efc52e8bda4e3d27b4
2018-02-13 11:45:12 -05:00
Naseer Ahmed
3d22e3fa23 display: Merge changes from display.lnx.4.0
Change-Id: I9cd5aec75486514b6dfb04b6edc58e6eff1ff01b
2018-02-13 11:21:11 -05:00
Soumil Shah
345ae29957 Add missing include file to fix compilation error
Add include of errno.h.

Change-Id: I9c62ffd6feffd55d0adeafe0ff84b0336e139481
2018-02-02 10:37:24 -08:00
Linux Build Service Account
f5464da301 Merge "hwc: Dump in SDM only if layer stack is valid" 2018-01-31 00:53:16 -08:00
Linux Build Service Account
aa547488a2 Merge "hwc: Fix request flag reset and Present() bailout" 2018-01-31 00:53:15 -08:00
Linux Build Service Account
0847b23637 Merge "hwc2: Dup buffer fd in SetLayerBuffer() to avoid fb_id failure" 2018-01-30 09:26:39 -08:00
Linux Build Service Account
02a31d6a6b Merge "hwc2: Avoid flush for command mode panels" 2018-01-29 20:10:26 -08:00
Linux Build Service Account
7737462cf9 Merge "hwc2: Update layer frame rate from metadata only if it is valid" 2018-01-29 20:10:25 -08:00
Linux Build Service Account
48d4a6c806 Merge "sdm: Define HW HDR EOTF values" 2018-01-29 20:10:24 -08:00
Linux Build Service Account
3fcc310a8a Merge "sdm: Close stored retire fence on display deinit" 2018-01-29 20:10:21 -08:00
Linux Build Service Account
70fd968c13 Merge "hwc: Fix cancel_lock condition" 2018-01-29 20:10:20 -08:00
Linux Build Service Account
c40fd0e20b Merge "SDM: Change log category to avoid excessive logging" 2018-01-24 15:49:15 -08:00
Ramkumar Radhakrishnan
525e643511 hwc2: Dup buffer fd in SetLayerBuffer() to avoid fb_id failure
Buffer fd for layers/client target is getting closed in ComposerClient
without hwcomposer knowledge, So creation of fb_id for that buffer
failed during DP disconnect. Hence duplicate the buffer fd to avoid
create fb id failures.

Change-Id: I7fb04aff9605ac28a64dcd615fa4804caa923996
CRs-Fixed: 2157977
2018-01-23 15:07:29 -08:00
Linux Build Service Account
24682bf12b Merge "gralloc1: Update SECURE_DISPLAY usage bit value" 2018-01-23 05:12:49 -08:00
Sushil Chauhan
0935c7595f hwc2: Update layer frame rate from metadata only if it is valid
To compare for Skip Validate feature, update the layer frame rate
from the buffer metadata, only if it is valid.

CRs-Fixed: 2175653
Change-Id: Ia3f6a8e928ded91c26729062e7ed20a687744ad1
2018-01-19 15:02:08 -08:00
Naseer Ahmed
70de9deab9 display: Merge changes from display.lnx.4.0
Change-Id: I5906a2e18c61cc12740fdae2316b0090d314c1cc
2018-01-19 15:52:28 -05:00
Saurabh Shah
998ad47024 hwc: Fix cancel_lock condition
Fix cancel_lock condition while coming out of validate. HWCDisplay
can return Error::HasChanges code which is not an actual error

Change-Id: Id5886b27baaba0e34fa3a0e8d919da7ac8a9e495
CRs-fixed: 2175020
2018-01-19 11:18:58 -08:00
Pullakavi Srinivas
92d1b82fe8 sdm: Close stored retire fence on display deinit
CRs-Fixed: 2161136
Change-Id: I27a4fc7cdac226fcae095f90bdb09f9b6e9a9162
2018-01-19 12:05:48 +05:30
Uday Kiran Pichika
8d82773a2c hwc2: Avoid flush for command mode panels
Avoid flush for command mode panels when layer stack
is empty

CRs-Fixed: 2170435
Change-Id: Ia99799e568d75c59ecf0b24ad04e967a028bc37c
2018-01-18 20:50:14 -08:00
Saurabh Shah
dccc0f4512 hwc: Dump in SDM only if layer stack is valid
If a layer is created or destroyed before Dump, the layer stack
is in invalid state. Prevent SDM Dump if stack hasn't been validated.

Change-Id: I1ce14a058d05d9d4204b69ea8f8fb7e7a035448e
CRs-fixed: 2165898
2018-01-18 11:07:17 -08:00
Saurabh Shah
4118304e5c hwc: Fix request flag reset and Present() bailout
The ClearRequestFlags() method iterates over layer_stack_ instead of
layer_set_. This causes a use-after-free since DestroyLayer() removes
layer from layer_set_ only. Besides that, the method need not be
virtual and has a redundant loop. This change removes the
ClearRequestFlags() method and clears flags in an existing loop.

Present() bails out if layer_set_ is empty or a shutdown is pending.
Since layers could have been destroyed before Present(), ideally
bailing out on re-validation has a higher priority over the rest.

Change-Id: Ic7b31bbd07a22b8df47fccb2024b3415ab3a559b
CRs-fixed: 2165926
2018-01-18 11:06:33 -08:00
Sushil Chauhan
f863d0b03a sdm: Define HW HDR EOTF values
Define HDR EOTF (Electro Optical Transfer Function) values in SDM.

CRs-Fixed: 2157996
Change-Id: Idf726c5028921a6f8a3ba978ff2db1a380f0f726
2018-01-16 16:28:49 -08:00
Ramkumar Radhakrishnan
07254304fa sdm: Set multirect mode to driver via plane property
Change-Id: Ia3b33e8761392ca211f210e6600a47dde9c768e0
CRs-Fixed: 2166036
2018-01-15 14:32:03 -08:00
Anjaneya Prasad Musunuri
b6fe970239 gralloc1: Update SECURE_DISPLAY usage bit value
Update the value of GRALLOC1_CONSUMER_USAGE_PRIVATE_SECURE_DISPLAY
as it conflicts with BufferUsage::GPU_DATA_BUFFER.

Change-Id: I7c236705528e6fc9d06ba298527e314da030bd34
CRs-Fixed: 2169110
2018-01-14 21:08:50 -08:00
Linux Build Service Account
37cff3c778 Merge "hwc: Allow callback deregistration" 2018-01-12 22:02:18 -08:00
Linux Build Service Account
c5e28ca7f0 Merge "sdm: Fix multiple VBlank registration" 2018-01-12 17:03:51 -08:00
Linux Build Service Account
387c47a66d Merge "gralloc: Add missing format HAL_PIXEL_FORMAT_YCrCb_420_SP_VENUS" 2018-01-12 17:03:48 -08:00
Linux Build Service Account
ef6eb8dc1e Merge "qdutils/hwc: Remove unused code surrounding fps calculations" 2018-01-12 17:03:45 -08:00
Linux Build Service Account
e6e0224ded Merge "sdm: Add virtual flag in HWPipeInfo to find pipe pairs" 2018-01-12 17:03:42 -08:00
Linux Build Service Account
1700d8daea Merge "sdm: Unregister fb_ids after Validate" 2018-01-12 17:03:38 -08:00
Saurabh Shah
9c72e07adc hwc: Allow callback deregistration
ComposerClient calls RegisterCallbacks() with nullptr to deregister
callbacks when SF dies. Allow this operation to avoid crashes since
HWC is still active.

Change-Id: I431d232130ec8cfb06cc40e81ef4e733496aa442
CRs-fixed: 2165931
2018-01-10 18:27:13 -08:00
Pothuluraiah Usarthi
0fb9ce340c Adding flag 'TARGET_DISABLE_DISPLAY'
Disabling compilation of display hal module if build flag
TARGET_DISABLE_DISPLAY is set to true.

Change-Id: I4ce621803601a1412e173224f41da6e5a219688c
CRs-Fixed: 2170353
2018-01-10 18:12:24 -08:00
Saurabh Dubey
46efdd11fc SDM: Change log category to avoid excessive logging
1) Revert previous change to avoid multiple occurance of a certain log.

Change-Id: Iace9b213bc465b1bdd1c608d09f80e721a75ae07
Crs-fixed: 2146757
2018-01-09 10:17:38 +05:30
Saurabh Shah
00a40ba6e2 sdm: Fix multiple VBlank registration
Currently VBlank registration happens even if polling thread wakes up
for other events. This causes multiple wake-ups on actual VBlank.
This change registers for VBlank in VBlank handler and on VBlank
enable, if it's not already registered.

Change-Id: I4aada5a5bd28382d60c68865c20eaabda5325ccf
CRs-fixed: 2167257
2018-01-08 15:52:46 -08:00
Ramkumar Radhakrishnan
e769e8e7a1 sdm: Add virtual flag in HWPipeInfo to find pipe pairs
Change-Id: Id2a867a10991341f7e52c78ca721e9db3e1685bf
CRs-Fixed: 2154113
2018-01-05 14:04:06 -08:00
Ramkumar Radhakrishnan
b338690ade hwc2: Fix acquire fence fd leak in SetLayerBuffer()
Close acquire fence fd of the null buffer with client requested
composition is DEVICE/CURSOR

Change-Id: I40a4a0ddc413af797a04fff39a2f0b5c4c9396af
CRs-Fixed: 2167175
2018-01-05 12:10:43 -08:00
Saurabh Shah
dbb572e6fb gralloc: Add missing format HAL_PIXEL_FORMAT_YCrCb_420_SP_VENUS
Add missing HAL_PIXEL_FORMAT_YCrCb_420_SP_VENUS in YUV format checks.
Move IsYUVFormat utility to grallocutils.

Change-Id: I8103ba2aead0d00aede21a0b43a59af741b2df95
CRs-fixed: 2166182
2018-01-04 15:38:01 -08:00
Saurabh Shah
546f77bed5 qdutils/hwc: Remove unused code surrounding fps calculations
Remove unused code surrounding fps calculations from qdutils and hwc

Change-Id: I1d78a26fdd582ae184fd7367cf692e472283fee1
CRs-fixed: 2157422
2018-01-04 15:31:25 -08:00
Saurabh Shah
4d4f4007cc sdm: Unregister fb_ids after Validate
HWC allows destruction of layers between Validate and Commit.
Buffer fds could also get updated in between. Unregister fb_id after
Validate to avoid carrying over stale fds as keys to Commit

Change-Id: Ic26a7644ffb1fb4da26b24364a33ac9293031867
CRs-Fixed: 2157977
2018-01-02 10:12:56 -08:00