amd/common: Add detection of the syncobj wait/signal/reset ioctls.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 27 Nov 2017 00:06:11 +0000 (01:06 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 18 Dec 2017 08:31:06 +0000 (09:31 +0100)
First amdgpu bump after inclusion was 20 (which was done for local BOs).

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_gpu_info.c
src/amd/common/ac_gpu_info.h

index 0576dd369cf0e58759618b9a69f6dec37f50e5d1..c042bb229ce43343800f21010cad867f4ec53355 100644 (file)
@@ -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;
index 5b9e51658b076cdb755520a3312537e16e8f25f1..04e17f91c597c871546fbefab2f5390e6e2f2aa9 100644 (file)
@@ -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;