Mesa (main): zink: check for right feature

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 14 07:40:16 UTC 2021


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

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Tue Jul 13 09:33:58 2021 +0200

zink: check for right feature

I accidentally repeated the rectangular lines test instead of checking
for smooth lines. Whoopsie!

Fixes: c3b0f439a78 ("zink: fill in the right line-mode based on state")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11841>

---

 src/gallium/drivers/zink/zink_state.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/zink/zink_state.c b/src/gallium/drivers/zink/zink_state.c
index ac6a591e383..93a52f15225 100644
--- a/src/gallium/drivers/zink/zink_state.c
+++ b/src/gallium/drivers/zink/zink_state.c
@@ -474,7 +474,7 @@ zink_create_rasterizer_state(struct pipe_context *pctx,
                state->hw_state.line_mode =
                   VK_LINE_RASTERIZATION_MODE_RECTANGULAR_EXT;
          } else if (rs_state->line_smooth) {
-            if (line_feats->stippledRectangularLines)
+            if (line_feats->stippledSmoothLines)
                state->hw_state.line_mode =
                   VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT;
          } else if (line_feats->stippledBresenhamLines)
@@ -493,7 +493,7 @@ zink_create_rasterizer_state(struct pipe_context *pctx,
                state->hw_state.line_mode =
                   VK_LINE_RASTERIZATION_MODE_RECTANGULAR_EXT;
          } else if (rs_state->line_smooth) {
-            if (line_feats->rectangularLines)
+            if (line_feats->smoothLines)
                state->hw_state.line_mode =
                   VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT;
          } else if (line_feats->bresenhamLines)



More information about the mesa-commit mailing list