mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
ac/gpu_info: don't allow register shadowing with SR-IOV due to bad performance
This is only for gfx11. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25484>
This commit is contained in:
parent
6e20f820c6
commit
865cab6a1c
1 changed files with 3 additions and 1 deletions
|
|
@ -1016,7 +1016,9 @@ 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->register_shadowing_required = device_info.ids_flags & AMDGPU_IDS_FLAGS_PREEMPTION;
|
||||
/* WARNING: Register shadowing decreases performance by up to 50% on GFX11 with current FW. */
|
||||
info->register_shadowing_required = device_info.ids_flags & AMDGPU_IDS_FLAGS_PREEMPTION &&
|
||||
info->gfx_level < GFX11;
|
||||
info->has_tmz_support = has_tmz_support(dev, info, device_info.ids_flags);
|
||||
info->kernel_has_modifiers = has_modifiers(fd);
|
||||
info->uses_kernel_cu_mask = false; /* Not implemented in the kernel. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue