nvk: Don't advertise residencyAlignedMipSize on MaxwellB+

DXVK/vkd3d-proton require this feature to be advertised as VK_FALSE for FL12 support:
https://github.com/doitsujin/dxvk/blob/v2.3.1/src/d3d11/d3d11_features.cpp#L305
https://github.com/HansKristian-Work/vkd3d-proton/blob/v2.12/libs/vkd3d/device.c#L7426

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28850>
This commit is contained in:
Echo J 2024-04-22 10:27:01 +03:00 committed by Marge Bot
parent be940a7dc6
commit d184808124

View file

@ -753,7 +753,7 @@ nvk_get_device_properties(const struct nvk_instance *instance,
/* Vulkan 1.0 sparse properties */
.sparseResidencyNonResidentStrict = true,
.sparseResidencyAlignedMipSize = true,
.sparseResidencyAlignedMipSize = info->cls_eng3d < MAXWELL_B, /* DXVK/vkd3d-proton requires this to be advertised as VK_FALSE for FL12 */
.sparseResidencyStandard2DBlockShape = true,
.sparseResidencyStandard2DMultisampleBlockShape = true,
.sparseResidencyStandard3DBlockShape = true,