From 3368c0e6f2e64396805bfb75ae8fd5d9eefbb28e Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 13 Feb 2023 15:30:44 +0100 Subject: [PATCH] radv: reduce maximum line width to 8.0 Using 8191.875 seems to big for the hardware to correctly render wide rectangular lines. This can also be reproduced with AMDVLK by forcing rectangularLines = True, and fixed by reducing the maximum size as well. Other drivers seem to expose that value. Signed-off-by: Samuel Pitoiset Part-of: --- 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 c6740d31a2f..b4f7321c8df 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -2156,7 +2156,7 @@ radv_GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice, .maxCombinedClipAndCullDistances = 8, .discreteQueuePriorities = 2, .pointSizeRange = {0.0, 8191.875}, - .lineWidthRange = {0.0, 8191.875}, + .lineWidthRange = {0.0, 8.0}, .pointSizeGranularity = (1.0 / 8.0), .lineWidthGranularity = (1.0 / 8.0), .strictLines = false, /* FINISHME */