diff options
author | Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> | 2017-11-27 01:06:11 +0100 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-02-23 14:16:03 -0800 |
commit | fd1aa710bc55951224dd1f9e3366c0cfd3e01898 (patch) | |
tree | 7d753816086aed5cd6b11bf3781566b1409f7d13 /src | |
parent | 7d019c72d802a334c9cde48c3b20541f72a8d301 (diff) |
UPSTREAM: amd/common: Add detection of the syncobj wait/signal/reset ioctls.
First amdgpu bump after inclusion was 20 (which was done for local BOs).
Reviewed-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit b308bb8773492b0a7868cddb8f0b056af8032966)
BUG=b:73102056
TEST=run nougat-mr1-cts-dev deqp vulkan tests.
Change-Id: If2cede07cd2779d1d526aecee0b4c0f1d5bb5a4a
Reviewed-on: https://chromium-review.googlesource.com/913492
Commit-Ready: Bas Nieuwenhuizen <basni@chromium.org>
Tested-by: Bas Nieuwenhuizen <basni@chromium.org>
Reviewed-by: Chad Versace <chadversary@chromium.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/common/ac_gpu_info.c | 1 | ||||
-rw-r--r-- | src/amd/common/ac_gpu_info.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c index 2e560125508..677c2145f4c 100644 --- a/src/amd/common/ac_gpu_info.c +++ b/src/amd/common/ac_gpu_info.c @@ -269,6 +269,7 @@ bool ac_query_gpu_info(int fd, amdgpu_device_handle dev, vce.available_rings ? vce_version : 0; info->has_userptr = true; info->has_syncobj = has_syncobj(fd); + info->has_syncobj_wait = info->has_syncobj && info->drm_minor >= 20; info->has_sync_file = info->has_syncobj && info->drm_minor >= 21; info->has_ctx_priority = info->drm_minor >= 22; info->num_render_backends = amdinfo->rb_pipes; diff --git a/src/amd/common/ac_gpu_info.h b/src/amd/common/ac_gpu_info.h index 92c94f046b5..3ef9cc89483 100644 --- a/src/amd/common/ac_gpu_info.h +++ b/src/amd/common/ac_gpu_info.h @@ -81,6 +81,7 @@ struct radeon_info { uint32_t drm_patchlevel; bool has_userptr; bool has_syncobj; + bool has_syncobj_wait; bool has_sync_file; bool has_ctx_priority; |