Module: Mesa
Branch: master
Commit: df3005de189f5120bc06f6cba35ecaf5c4503229
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=df3005de189f5120bc06f6cba35ecaf5c4503229

Author: Eric Anholt <e...@anholt.net>
Date:   Wed Jul 29 14:41:22 2015 -0700

vc4: Avoid leaking indirect array access UBOs.

---

 src/gallium/drivers/vc4/vc4_uniforms.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/vc4/vc4_uniforms.c 
b/src/gallium/drivers/vc4/vc4_uniforms.c
index d4c7137..3bf6672 100644
--- a/src/gallium/drivers/vc4/vc4_uniforms.c
+++ b/src/gallium/drivers/vc4/vc4_uniforms.c
@@ -283,6 +283,8 @@ vc4_write_uniforms(struct vc4_context *vc4, struct 
vc4_compiled_shader *shader,
         }
 
         cl_end(&vc4->uniforms, uniforms);
+
+        vc4_bo_unreference(&ubo);
 }
 
 void

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to