panvk: Only advertise MSAA-4
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 3 Sep 2021 15:00:53 +0000 (17:00 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Fri, 10 Sep 2021 09:40:34 +0000 (11:40 +0200)
We'll see if we want to support MSAA 8 and 16 later. MSAA 2 is not
supported.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762>

src/panfrost/vulkan/panvk_device.c

index 22fca7d..3c66240 100644 (file)
@@ -693,7 +693,8 @@ panvk_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice,
       }
    }
 
-   VkSampleCountFlags sample_counts = 0xf;
+   VkSampleCountFlags sample_counts =
+      VK_SAMPLE_COUNT_1_BIT | VK_SAMPLE_COUNT_4_BIT;
 
    /* make sure that the entire descriptor set is addressable with a signed
     * 32-bit int. So the sum of all limits scaled by descriptor size has to