mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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:
parent
c4e2878537
commit
7d22e4c7ba
1 changed files with 0 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue