vc4: Fix a leak of the no-vertex-elements workaround BO.
authorEric Anholt <eric@anholt.net>
Tue, 7 Aug 2018 01:53:57 +0000 (18:53 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 7 Aug 2018 02:10:06 +0000 (19:10 -0700)
Fixes: bd1925562ad1 ("vc4: Convert the driver to emitting the shader record using pack macros.")
src/gallium/drivers/vc4/vc4_draw.c

index 900c0abaf2029bf02a12c693c5ef28cdbbcb85bd..06785516cae2367f5a99e4f46020fd2c08fbd5f8 100644 (file)
@@ -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) {