From: Eric Anholt Date: Tue, 7 Aug 2018 01:53:57 +0000 (-0700) Subject: vc4: Fix a leak of the no-vertex-elements workaround BO. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9507e036994018d3038e6263b98c53b0c916d2cd;p=mesa.git 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.") --- diff --git a/src/gallium/drivers/vc4/vc4_draw.c b/src/gallium/drivers/vc4/vc4_draw.c index 900c0abaf20..06785516cae 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) {