Mesa (master): radv: Only enable sparse features on Polaris and newer.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jan 26 17:05:22 UTC 2021
Module: Mesa
Branch: master
Commit: 3c03fa5801ceccd2f9e408cc42f1dfad57b234d9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3c03fa5801ceccd2f9e408cc42f1dfad57b234d9
Author: Timur Kristóf <timur.kristof at gmail.com>
Date: Thu Jan 21 08:46:17 2021 +0100
radv: Only enable sparse features on Polaris and newer.
On Fiji, the CTS image can cause a hang when these are enabled.
Let's enable them for Polaris and newer only, for now.
Gitlab: #4136
Fixes: 9f43b44bf06c61735dbab7e8e508642315bd93d1
Signed-off-by: Timur Kristóf <timur.kristof at gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8646>
---
src/amd/vulkan/radv_device.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 3a50a3790dc..2a06fc3a5ee 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -1030,9 +1030,9 @@ void radv_GetPhysicalDeviceFeatures(
.shaderInt64 = true,
.shaderInt16 = true,
.sparseBinding = true,
- .sparseResidencyBuffer = pdevice->rad_info.chip_class >= GFX8,
- .sparseResidencyImage2D = pdevice->rad_info.chip_class >= GFX8,
- .sparseResidencyAliased = pdevice->rad_info.chip_class >= GFX8,
+ .sparseResidencyBuffer = pdevice->rad_info.family >= CHIP_POLARIS10,
+ .sparseResidencyImage2D = pdevice->rad_info.family >= CHIP_POLARIS10,
+ .sparseResidencyAliased = pdevice->rad_info.family >= CHIP_POLARIS10,
.variableMultisampleRate = true,
.shaderResourceMinLod = true,
.shaderResourceResidency = true,
@@ -1679,8 +1679,8 @@ void radv_GetPhysicalDeviceProperties(
.deviceType = pdevice->rad_info.has_dedicated_vram ? VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU : VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU,
.limits = limits,
.sparseProperties = {
- .residencyNonResidentStrict = pdevice->rad_info.chip_class >= GFX8,
- .residencyStandard2DBlockShape = pdevice->rad_info.chip_class >= GFX8,
+ .residencyNonResidentStrict = pdevice->rad_info.family >= CHIP_POLARIS10,
+ .residencyStandard2DBlockShape = pdevice->rad_info.family >= CHIP_POLARIS10,
},
};
More information about the mesa-commit
mailing list