<p dir="ltr">Yes, oops. Shouldn't fix any invalidation issues. Could fix unbounded memory growth due to switching back and forth between cp and 3d without setting any new images. Please fold this into your series.</p>
<div class="gmail_quote">On May 19, 2016 4:13 AM, "Samuel Pitoiset" <<a href="mailto:samuel.pitoiset@gmail.com">samuel.pitoiset@gmail.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Oops? Your patch is based on your gl43 branch with my images series but this is not yet upstream. ;)<br>
<br>
Anyway, the idea sounds good to me and might explain some invalidation issues, perhaps? I'll have look later.<div class="elided-text"><br>
<br>
On 05/19/2016 03:28 AM, Ilia Mirkin wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Otherwise we can end up in a situation where that bin just grows and<br>
grows.<br>
<br>
Signed-off-by: Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu" target="_blank">imirkin@alum.mit.edu</a>><br>
---<br>
 src/gallium/drivers/nouveau/nvc0/nvc0_tex.c | 5 +++++<br>
 1 file changed, 5 insertions(+)<br>
<br>
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c b/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c<br>
index cc5ea5e..2523c20 100644<br>
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c<br>
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c<br>
@@ -963,6 +963,11 @@ nvc0_validate_suf(struct nvc0_context *nvc0, int s)<br>
    struct nouveau_pushbuf *push = nvc0->base.pushbuf;<br>
    struct nvc0_screen *screen = nvc0->screen;<br>
<br>
+   if (s == 5)<br>
+      nouveau_bufctx_reset(nvc0->bufctx_cp, NVC0_BIND_CP_SUF);<br>
+   else<br>
+      nouveau_bufctx_reset(nvc0->bufctx_3d, NVC0_BIND_3D_SUF);<br>
+<br>
    for (int i = 0; i < NVC0_MAX_IMAGES; ++i) {<br>
       struct pipe_image_view *view = &nvc0->images[s][i];<br>
       int width, height, depth;<br>
<br>
</blockquote>
<br>
-- <br></div><font color="#888888">
-Samuel<br>
</font></blockquote></div>