zink: pass line width from rast_state to gfx_pipeline_state.

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
This commit is contained in:
Duncan Hopkins 2019-09-24 16:03:04 +01:00 committed by Erik Faye-Lund
parent 52aa7f3e05
commit bb8e6994cc

View file

@ -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