Module: Mesa Branch: main Commit: 865cab6a1cf9f95b7b1959ea9e518b3848285245 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=865cab6a1cf9f95b7b1959ea9e518b3848285245
Author: Marek Olšák <[email protected]> Date: Fri Sep 29 20:35:14 2023 -0400 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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25484> --- src/amd/common/ac_gpu_info.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c index 8029cfa71b2..57d31a67eee 100644 --- a/src/amd/common/ac_gpu_info.c +++ b/src/amd/common/ac_gpu_info.c @@ -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. */
