From 451e6c1b32c2ea43d84ab60513dc6fde2373431c Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Wed, 8 Dec 2021 16:52:33 +0000 Subject: [PATCH] radv: have the null winsys set more fields I copied stuff from ac_gpu_info.c until there were no Sienna Cichild or Polaris10 fossil-db changes between real hardware and RADV_FORCE_FAMILY. Signed-off-by: Rhys Perry Reviewed-by: Samuel Pitoiset Cc: mesa-stable Part-of: --- src/amd/vulkan/winsys/null/radv_null_winsys.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/amd/vulkan/winsys/null/radv_null_winsys.c b/src/amd/vulkan/winsys/null/radv_null_winsys.c index 0313ed92a9c..4a133d013ea 100644 --- a/src/amd/vulkan/winsys/null/radv_null_winsys.c +++ b/src/amd/vulkan/winsys/null/radv_null_winsys.c @@ -136,6 +136,19 @@ radv_null_winsys_query_info(struct radeon_winsys *rws, struct radeon_info *info) info->has_image_load_dcc_bug = info->family == CHIP_DIMGREY_CAVEFISH || 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->address32_hi = info->chip_class >= GFX9 ? 0xffff8000u : 0x0; + + info->has_rbplus = info->family == CHIP_STONEY || info->chip_class >= GFX9; + info->rbplus_allowed = + info->has_rbplus && + (info->family == CHIP_STONEY || info->family == CHIP_VEGA12 || info->family == CHIP_RAVEN || + info->family == CHIP_RAVEN2 || info->family == CHIP_RENOIR || info->chip_class >= GFX10_3); + } static void