Mesa (main): dzn: Support dynamic line width

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 15 00:33:47 UTC 2022


Module: Mesa
Branch: main
Commit: 1acf0b4bd4fdddec1d1d045115fc133256595997
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1acf0b4bd4fdddec1d1d045115fc133256595997

Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Tue Jun 14 00:11:11 2022 -0700

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 <jenatali at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16971>

---

 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 7618b380765..a66a3eeb243 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");
          }
       }



More information about the mesa-commit mailing list