From 1acf0b4bd4fdddec1d1d045115fc133256595997 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Tue, 14 Jun 2022 00:11:11 -0700 Subject: [PATCH] dzn: Support dynamic line width .wideLines = false, which forbids the user to set the line width to something different than 1. We're thus safe to claim support for dynamic line width and do nothing in CmdSetLineWidth() other than checking the value passed is 1.0f. Reviewed-by: Jesse Natalie Part-of: --- src/microsoft/vulkan/dzn_pipeline.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/microsoft/vulkan/dzn_pipeline.c b/src/microsoft/vulkan/dzn_pipeline.c index 7618b38..a66a3ee 100644 --- a/src/microsoft/vulkan/dzn_pipeline.c +++ b/src/microsoft/vulkan/dzn_pipeline.c @@ -1168,6 +1168,9 @@ dzn_graphics_pipeline_create(struct dzn_device *device, if (ret) goto out; break; + case VK_DYNAMIC_STATE_LINE_WIDTH: + /* Nothing to do since we just support lineWidth = 1. */ + break; default: unreachable("Unsupported dynamic state"); } } -- 2.7.4