aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/zink/zink_state.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/zink/zink_state.c b/src/gallium/drivers/zink/zink_state.c
index 814e1e29b6c..709627079d8 100644
--- a/src/gallium/drivers/zink/zink_state.c
+++ b/src/gallium/drivers/zink/zink_state.c
@@ -406,7 +406,9 @@ zink_bind_rasterizer_state(struct pipe_context *pctx, void *cso)
{
struct zink_context *ctx = zink_context(pctx);
ctx->rast_state = cso;
- ctx->gfx_pipeline_state.rast_state = &ctx->rast_state->hw_state;
+
+ if (ctx->rast_state)
+ ctx->gfx_pipeline_state.rast_state = &ctx->rast_state->hw_state;
}
static void