From 7ef3d652b2515de002b7e161b320a80e2a2bbe9c Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Thu, 18 Jan 2024 17:53:13 -0800 Subject: [PATCH] anv/sparse: enable MSAA for Sparse when applicable The newer platforms can't support 8x and 16x since Tile64's shape for them is not a standard block shape (and claiming standard block shapes is higher priority than supporting things without it). The TileYs platforms are fine. Reviewed-by: Lionel Landwerlin Signed-off-by: Paulo Zanoni Part-of: --- src/intel/vulkan/anv_device.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 3fc65e4ec27..f6476a8b1b9 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -509,10 +509,12 @@ get_features(const struct anv_physical_device *pdevice, .sparseResidencyBuffer = has_sparse_or_fake, .sparseResidencyImage2D = has_sparse_or_fake, .sparseResidencyImage3D = has_sparse_or_fake, - .sparseResidency2Samples = false, - .sparseResidency4Samples = false, - .sparseResidency8Samples = false, - .sparseResidency16Samples = false, + .sparseResidency2Samples = has_sparse_or_fake, + .sparseResidency4Samples = has_sparse_or_fake, + .sparseResidency8Samples = has_sparse_or_fake && + pdevice->info.verx10 != 125, + .sparseResidency16Samples = has_sparse_or_fake && + pdevice->info.verx10 != 125, .variableMultisampleRate = true, .inheritedQueries = true,