Commit 44de03b0 authored by Samuel Pitoiset's avatar Samuel Pitoiset

nvc0: unreference images when the context is destroyed

Like other resources, we need to unreference all images.
Signed-off-by: Samuel Pitoiset's avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin's avatarIlia Mirkin <imirkin@alum.mit.edu>
parent 8ae78f7d
......@@ -161,6 +161,10 @@ nvc0_context_unreference_resources(struct nvc0_context *nvc0)
for (i = 0; i < NVC0_MAX_BUFFERS; ++i)
pipe_resource_reference(&nvc0->buffers[s][i].buffer, NULL);
for (s = 0; s < 6; ++s)
for (i = 0; i < NVC0_MAX_IMAGES; ++i)
pipe_resource_reference(&nvc0->images[s][i].resource, NULL);
for (i = 0; i < nvc0->num_tfbbufs; ++i)
pipe_so_target_reference(&nvc0->tfbbuf[i], NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment