<p dir="ltr">Reviewed-by: Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu">imirkin@alum.mit.edu</a>></p>
<div class="gmail_quote">On May 6, 2016 9:09 AM, "Samuel Pitoiset" <<a href="mailto:samuel.pitoiset@gmail.com">samuel.pitoiset@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Like other resources, we need to unreference all images.<br>
<br>
Signed-off-by: Samuel Pitoiset <<a href="mailto:samuel.pitoiset@gmail.com">samuel.pitoiset@gmail.com</a>><br>
---<br>
 src/gallium/drivers/nouveau/nvc0/nvc0_context.c | 4 ++++<br>
 1 file changed, 4 insertions(+)<br>
<br>
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_context.c b/src/gallium/drivers/nouveau/nvc0/nvc0_context.c<br>
index f6c58f2..428b33d 100644<br>
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_context.c<br>
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_context.c<br>
@@ -161,6 +161,10 @@ nvc0_context_unreference_resources(struct nvc0_context *nvc0)<br>
       for (i = 0; i < NVC0_MAX_BUFFERS; ++i)<br>
          pipe_resource_reference(&nvc0->buffers[s][i].buffer, NULL);<br>
<br>
+   for (s = 0; s < 6; ++s)<br>
+      for (i = 0; i < NVC0_MAX_IMAGES; ++i)<br>
+         pipe_resource_reference(&nvc0->images[s][i].resource, NULL);<br>
+<br>
    for (i = 0; i < nvc0->num_tfbbufs; ++i)<br>
       pipe_so_target_reference(&nvc0->tfbbuf[i], NULL);<br>
<br>
--<br>
2.8.0<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div>