From 11adea4b24140db37bc1eb5c858435602d2ce224 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Tue, 12 Sep 2017 20:06:37 +0200 Subject: ac: add radeon_info::has_sync_file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle --- src/amd/common/ac_gpu_info.c | 1 + src/amd/common/ac_gpu_info.h | 1 + 2 files changed, 2 insertions(+) (limited to 'src/amd') diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c index d10b0eb0af9..82ff18d4366 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_sync_file = info->has_syncobj && info->drm_minor >= 21; info->num_render_backends = amdinfo->rb_pipes; info->clock_crystal_freq = amdinfo->gpu_counter_freq; if (!info->clock_crystal_freq) { diff --git a/src/amd/common/ac_gpu_info.h b/src/amd/common/ac_gpu_info.h index 5722709d24f..960fd74fcf0 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_sync_file; /* Shader cores. */ uint32_t r600_max_quad_pipes; /* wave size / 16 */ -- cgit v1.2.3