ac/gpu_info: simplify how has_accelerated_dot_product is set

Reviewed-by: Mihai Preda <mhpreda@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19419>
This commit is contained in:
Marek Olšák 2022-10-21 15:08:15 -04:00 committed by Marge Bot
parent a338a2da58
commit a54c8cdaf2
2 changed files with 4 additions and 4 deletions

View file

@ -1063,8 +1063,8 @@ bool ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info)
* instruction encoding which accumulates with the destination.
*/
info->has_accelerated_dot_product =
info->family == CHIP_ARCTURUS || info->family == CHIP_ALDEBARAN ||
info->family == CHIP_VEGA20 || info->family >= CHIP_NAVI12;
info->family == CHIP_VEGA20 ||
(info->family >= CHIP_ARCTURUS && info->family != CHIP_NAVI10);
/* TODO: Figure out how to use LOAD_CONTEXT_REG on GFX6-GFX7. */
info->has_load_ctx_reg_pkt =

View file

@ -147,8 +147,8 @@ radv_null_winsys_query_info(struct radeon_winsys *rws, struct radeon_info *info)
info->family == CHIP_NAVI23 || info->family == CHIP_VANGOGH;
info->has_accelerated_dot_product =
info->family == CHIP_ARCTURUS || info->family == CHIP_ALDEBARAN ||
info->family == CHIP_VEGA20 || info->family >= CHIP_NAVI12;
info->family == CHIP_VEGA20 ||
(info->family >= CHIP_ARCTURUS && info->family != CHIP_NAVI10);
info->address32_hi = info->gfx_level >= GFX9 ? 0xffff8000u : 0x0;