zink: pass line width from rast_state to gfx_pipeline_state.
authorDuncan Hopkins <duncan@duncanhopkins.me.uk>
Tue, 24 Sep 2019 15:03:04 +0000 (16:03 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 29 Oct 2019 20:38:26 +0000 (20:38 +0000)
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
src/gallium/drivers/zink/zink_state.c

index dba85ef43e84bb35c85261a4eea382dac047fb6d..340c725f9dce01c07c20eaab60925e473b42eeef 100644 (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