From: Timur Kristóf Date: Wed, 20 Jul 2022 12:36:10 +0000 (+0200) Subject: ac: Add has_gang_submit field to ac_gpu_info. X-Git-Tag: upstream/23.3.3~15281 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=24404d83305df22c036010b8895f2ebac3c1f5f8;p=platform%2Fupstream%2Fmesa.git ac: Add has_gang_submit field to ac_gpu_info. Signed-off-by: Timur Kristóf Reviewed-by: Bas Nieuwenhuizen Part-of: --- diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c index bdf74bc4b28..cba74ccd1bd 100644 --- a/src/amd/common/ac_gpu_info.c +++ b/src/amd/common/ac_gpu_info.c @@ -927,6 +927,7 @@ bool ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info) */ info->has_sparse_vm_mappings = info->gfx_level >= GFX7; info->has_scheduled_fence_dependency = info->drm_minor >= 28; + info->has_gang_submit = info->drm_minor >= 49; info->mid_command_buffer_preemption_enabled = device_info.ids_flags & AMDGPU_IDS_FLAGS_PREEMPTION; info->has_tmz_support = has_tmz_support(dev, info, device_info.ids_flags); info->kernel_has_modifiers = has_modifiers(fd); @@ -1545,6 +1546,7 @@ void ac_print_gpu_info(struct radeon_info *info, FILE *f) fprintf(f, " has_sparse_vm_mappings = %u\n", info->has_sparse_vm_mappings); fprintf(f, " has_stable_pstate = %u\n", info->has_stable_pstate); fprintf(f, " has_scheduled_fence_dependency = %u\n", info->has_scheduled_fence_dependency); + fprintf(f, " has_gang_submit = %u\n", info->has_gang_submit); fprintf(f, " mid_command_buffer_preemption_enabled = %u\n", info->mid_command_buffer_preemption_enabled); fprintf(f, " has_tmz_support = %u\n", info->has_tmz_support); diff --git a/src/amd/common/ac_gpu_info.h b/src/amd/common/ac_gpu_info.h index 94b8f05b394..81f6f723a9b 100644 --- a/src/amd/common/ac_gpu_info.h +++ b/src/amd/common/ac_gpu_info.h @@ -192,6 +192,7 @@ struct radeon_info { bool has_eqaa_surface_allocator; bool has_sparse_vm_mappings; bool has_scheduled_fence_dependency; + bool has_gang_submit; bool has_stable_pstate; /* Whether SR-IOV is enabled or amdgpu.mcbp=1 was set on the kernel command line. */ bool mid_command_buffer_preemption_enabled;