Mesa (18.2): vc4: Fix a leak of the no-vertex-elements workaround BO.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Aug 9 00:30:43 UTC 2018
Module: Mesa
Branch: 18.2
Commit: d39fb6d1571597964c31adf380a1e772838936c7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d39fb6d1571597964c31adf380a1e772838936c7
Author: Eric Anholt <eric at anholt.net>
Date: Mon Aug 6 18:53:57 2018 -0700
vc4: Fix a leak of the no-vertex-elements workaround BO.
Fixes: bd1925562ad1 ("vc4: Convert the driver to emitting the shader record using pack macros.")
(cherry picked from commit 9507e036994018d3038e6263b98c53b0c916d2cd)
---
src/gallium/drivers/vc4/vc4_draw.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/drivers/vc4/vc4_draw.c b/src/gallium/drivers/vc4/vc4_draw.c
index 900c0abaf2..06785516ca 100644
--- a/src/gallium/drivers/vc4/vc4_draw.c
+++ b/src/gallium/drivers/vc4/vc4_draw.c
@@ -222,6 +222,8 @@ vc4_emit_gl_shader_state(struct vc4_context *vc4,
attr.coordinate_shader_vpm_offset = 0;
attr.vertex_shader_vpm_offset = 0;
}
+
+ vc4_bo_unreference(&bo);
}
cl_emit(&job->bcl, GL_SHADER_STATE, shader_state) {
More information about the mesa-commit
mailing list