From: Duncan Hopkins Date: Tue, 24 Sep 2019 15:03:04 +0000 (+0100) Subject: zink: pass line width from rast_state to gfx_pipeline_state. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb8e6994ccb17e0ecb985d8f645f1a961d4b0355;p=mesa.git zink: pass line width from rast_state to gfx_pipeline_state. Reviewed-by: Erik Faye-Lund --- 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