cso: unbind vertex buffers when unbinding context

cc: mesa-stable

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37276>
This commit is contained in:
Mike Blumenkrantz
2025-08-13 08:23:36 -04:00
committed by Marge Bot
parent 7f556805c1
commit 9f764486cb
@@ -440,6 +440,7 @@ cso_unbind_context(struct cso_context *cso)
ctx->base.pipe->bind_ms_state(ctx->base.pipe, NULL);
}
ctx->base.pipe->bind_vertex_elements_state(ctx->base.pipe, NULL);
ctx->base.pipe->set_vertex_buffers(ctx->base.pipe, 0, NULL);
if (ctx->has_streamout)
ctx->base.pipe->set_stream_output_targets(ctx->base.pipe, 0, NULL, NULL, 0);