zink: clamp line_stipple_factor to 1 if stipple is disabled
0 is technically an illegal value even though it won't be read in this case cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19065>
This commit is contained in:

committed by
Marge Bot

parent
2710ef4c2a
commit
f72071fbc3
@@ -616,7 +616,7 @@ zink_create_rasterizer_state(struct pipe_context *pctx,
|
||||
}
|
||||
|
||||
if (!rs_state->line_stipple_enable) {
|
||||
state->base.line_stipple_factor = 0;
|
||||
state->base.line_stipple_factor = 1;
|
||||
state->base.line_stipple_pattern = UINT16_MAX;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user