From bb8e6994ccb17e0ecb985d8f645f1a961d4b0355 Mon Sep 17 00:00:00 2001 From: Duncan Hopkins Date: Tue, 24 Sep 2019 16:03:04 +0100 Subject: [PATCH] zink: pass line width from rast_state to gfx_pipeline_state. Reviewed-by: Erik Faye-Lund --- src/gallium/drivers/zink/zink_state.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_state.c b/src/gallium/drivers/zink/zink_state.c index dba85ef43e8..340c725f9dc 100644 --- a/src/gallium/drivers/zink/zink_state.c +++ b/src/gallium/drivers/zink/zink_state.c @@ -422,8 +422,10 @@ zink_bind_rasterizer_state(struct pipe_context *pctx, void *cso) struct zink_context *ctx = zink_context(pctx); ctx->rast_state = cso; - if (ctx->rast_state) + if (ctx->rast_state) { ctx->gfx_pipeline_state.rast_state = &ctx->rast_state->hw_state; + ctx->gfx_pipeline_state.line_width = ctx->rast_state->line_width; + } } static void -- 2.30.2