From 10b6d9230cbeda43b81fe5b4bd5515ad8d6407d9 Mon Sep 17 00:00:00 2001 From: Michael Skorokhodov Date: Fri, 8 Apr 2022 21:18:44 +0300 Subject: [PATCH] anv: Update line range This commit increases the maximum line width to 8.0 for SLK+ and to 7.9921875 for BDW and earlier. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6234 Fixes: fce0027d ("anv: Unbreak wide lines on HSW/BDW") Signed-off-by: Mykhailo Skorokhodov Reviewed-by: Ivan Briano Part-of: --- src/intel/vulkan/anv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index da907456ec7..fe7e120b6c1 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -1995,7 +1995,7 @@ void anv_GetPhysicalDeviceProperties( * Since the Windows driver does the same, it's probably fair to assume * that no one needs more than this. */ - .lineWidthRange = { 0.0, 7.9921875 }, + .lineWidthRange = { 0.0, devinfo->ver >= 9 ? 8.0 : 7.9921875 }, .pointSizeGranularity = (1.0 / 8.0), .lineWidthGranularity = (1.0 / 128.0), .strictLines = false,