summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_gpu_info.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-11-27 01:06:11 +0100
committerBas Nieuwenhuizen <[email protected]>2017-12-18 09:31:06 +0100
commitb308bb8773492b0a7868cddb8f0b056af8032966 (patch)
tree18fcfb88112dfbd3ddaa00c4f7627059572c6c2b /src/amd/common/ac_gpu_info.c
parent1c3cda7d27750be0804137f9a9222828e57354b8 (diff)
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 <[email protected]>
Diffstat (limited to 'src/amd/common/ac_gpu_info.c')
-rw-r--r--src/amd/common/ac_gpu_info.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c
index 0576dd369cf..c042bb229ce 100644
--- a/src/amd/common/ac_gpu_info.c
+++ b/src/amd/common/ac_gpu_info.c
@@ -277,6 +277,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;