OSDN Git Service

minigbm: amdgpu: Disable explicit synchronization when possible.
authorBas Nieuwenhuizen <basni@chromium.org>
Fri, 23 Mar 2018 16:21:37 +0000 (17:21 +0100)
committerchrome-bot <chrome-bot@chromium.org>
Thu, 29 Mar 2018 17:25:27 +0000 (10:25 -0700)
commit3cf8c92dc25c0a34b3c1d1aa73759ac21db4b953
tree5a46ec6070f63d80d51da968d1bc3ab3fe0f9d98
parent0cfaaa5adb3e973a9ce5453b55a3177e3962c158
minigbm: amdgpu: Disable explicit synchronization when possible.

With drm minor 21 both radv and mesa can do all the explicit
synchornization extensions and hence explicit synchronization gets
used.

However, as implicit synchronization is not disabled we can get
surprises like cyclic dependencies if producer and consumer are too
far out of sync with each other.

Therefore this disables implicit synchronization if the kernel is
new enough for explicit synchronization to get used.

v2: - Fix up compile errors
    - Actually set priv->addrlib

BUG=b:76135512
TEST=Run dEQP-VK.wsi.android.swapchain.render.basic 10 times on
     Kahlee.

Change-Id: I6e5389793e82b167e025b7d94958effad278c361
Reviewed-on: https://chromium-review.googlesource.com/978166
Commit-Ready: Bas Nieuwenhuizen <basni@chromium.org>
Tested-by: Bas Nieuwenhuizen <basni@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
amdgpu.c