From d3f735a2497c16b57ce4645998c37a294faa9f08 Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Thu, 10 Jun 2021 12:47:51 +0200 Subject: [PATCH] ac: Enable 32bit predication on gfx9 with fw feature version 52. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Amdvlk does this as well and it passes the vulkan CTS on renoir. Signed-off-by: Georg Lehmann Reviewed-by: Samuel Pitoiset Reviewed-by: Marek Olšák Part-of: --- src/amd/common/ac_gpu_info.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c index bc7be71b23c..f7a9a5b5a47 100644 --- a/src/amd/common/ac_gpu_info.c +++ b/src/amd/common/ac_gpu_info.c @@ -909,8 +909,10 @@ bool ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info, /* Support for GFX10.3 was added with F32_ME_FEATURE_VERSION_31 but the * feature version wasn't bumped. */ - info->has_32bit_predication = info->chip_class >= GFX10 && - info->me_fw_feature >= 32; + info->has_32bit_predication = (info->chip_class >= GFX10 && + info->me_fw_feature >= 32) || + (info->chip_class == GFX9 && + info->me_fw_feature >= 52); /* Get the number of good compute units. */ info->num_good_compute_units = 0;