Mesa (master): radv: adjust the maximum number of coverage samples for VRS

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Dec 18 13:36:40 UTC 2020


Module: Mesa
Branch: master
Commit: c9e1264ec7fa729779ea974b3f264f4765a81d06
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c9e1264ec7fa729779ea974b3f264f4765a81d06

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Mon Dec 14 17:30:11 2020 +0100

radv: adjust the maximum number of coverage samples for VRS

It should actually be 4 because the maximum fragment size supported
by the hardware is 2x2.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8100>

---

 src/amd/vulkan/radv_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 3811c3264e3..a1a51ccc0de 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -2147,7 +2147,7 @@ void radv_GetPhysicalDeviceProperties2(
 			props->fragmentShadingRateNonTrivialCombinerOps = true;
 			props->maxFragmentSize = (VkExtent2D) { 2, 2 };
 			props->maxFragmentSizeAspectRatio = 1;
-			props->maxFragmentShadingRateCoverageSamples = 1;
+			props->maxFragmentShadingRateCoverageSamples = 2 * 2;
 			props->maxFragmentShadingRateRasterizationSamples =
 				VK_SAMPLE_COUNT_1_BIT |
 				VK_SAMPLE_COUNT_2_BIT |



More information about the mesa-commit mailing list