From f72071fbc35a703c058b4113ca91559774c70e77 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 12 Oct 2022 13:42:58 -0400 Subject: [PATCH] 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: --- src/gallium/drivers/zink/zink_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_state.c b/src/gallium/drivers/zink/zink_state.c index 99628d85d2f..a4f362f27fc 100644 --- a/src/gallium/drivers/zink/zink_state.c +++ b/src/gallium/drivers/zink/zink_state.c @@ -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; }