gallium/noop: don't unref buffers passed to set_vertex_buffers to fix crashes

this code is invalid after the refcounting rework

Fixes: b3133e250e - gallium: add pipe_context::resource_release to eliminate buffer refcounting

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38329>
This commit is contained in:
Marek Olšák 2025-10-05 22:58:39 -04:00 committed by Marge Bot
parent c4e2878537
commit 7d22e4c7ba

View file

@ -185,12 +185,6 @@ static void noop_set_vertex_buffers(struct pipe_context *ctx,
unsigned count,
const struct pipe_vertex_buffer *buffers)
{
for (unsigned i = 0; i < count; i++) {
if (!buffers[i].is_user_buffer) {
struct pipe_resource *buf = buffers[i].buffer.resource;
pipe_resource_reference(&buf, NULL);
}
}
}
static void *noop_create_vertex_elements(struct pipe_context *ctx,