Mesa (staging/22.0): anv: Update line range
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu May 26 16:40:23 UTC 2022
Module: Mesa
Branch: staging/22.0
Commit: b455bf5e546709311c671402444b0ae03857c085
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b455bf5e546709311c671402444b0ae03857c085
Author: Michael Skorokhodov <mykhailo.skorokhodov at globallogic.com>
Date: Fri Apr 8 21:18:44 2022 +0300
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 <mykhailo.skorokhodov at globallogic.com>
Reviewed-by: Ivan Briano <ivan.briano at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15879>
(cherry picked from commit 10b6d9230cbeda43b81fe5b4bd5515ad8d6407d9)
---
.pick_status.json | 2 +-
src/intel/vulkan/anv_device.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pick_status.json b/.pick_status.json
index ce19c5adfea..54ba81cddea 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -484,7 +484,7 @@
"description": "anv: Update line range",
"nominated": true,
"nomination_type": 1,
- "resolution": 0,
+ "resolution": 1,
"because_sha": "fce0027d913f6538cb1f1d40675191d2a9ffadfe"
},
{
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 2a530051d37..46d989e9c55 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -1941,7 +1941,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,
More information about the mesa-commit
mailing list