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>
(cherry picked from commit 9f764486cb)
This commit is contained in:
Mike Blumenkrantz 2025-08-13 08:23:36 -04:00 committed by Eric Engestrom
parent 50394e4f7a
commit 8ec6872fe3
2 changed files with 2 additions and 1 deletions

View file

@ -5454,7 +5454,7 @@
"description": "cso: unbind vertex buffers when unbinding context",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -438,6 +438,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);