mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
zink: check for right feature
I accidentally repeated the rectangular lines test instead of checking
for smooth lines. Whoopsie!
Fixes: c3b0f439a7 ("zink: fill in the right line-mode based on state")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11841>
This commit is contained in:
parent
e3542b35a8
commit
a4cb07dcd5
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue