summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-08-06 18:53:57 -0700
committerEric Anholt <[email protected]>2018-08-06 19:10:06 -0700
commit9507e036994018d3038e6263b98c53b0c916d2cd (patch)
treee6f80b2badc69861ee2a3841c5e6856abebd0c53 /src
parent86095e9bb1335b082554ed2ceaaa66470b24cb28 (diff)
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.")
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/vc4/vc4_draw.c2
1 files changed, 2 insertions, 0 deletions
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) {