diff options
author | Eric Anholt <[email protected]> | 2014-07-31 12:19:29 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-08-11 14:45:30 -0700 |
commit | 027d730aff4abf89f8c01049d245c670c6740a26 (patch) | |
tree | 902a2eafb47db0b485be662b50d838cef76d3014 /src/gallium/drivers/vc4/vc4_cl.c | |
parent | 771d86abd6c204cef82c5838b1ed20e4b8dbfa85 (diff) |
vc4: Keep a reference to BOs queued for rendering.
Otherwise, once we're not flushing at the end of every draw, we'll free
things like gallium resources, and free the backing GEM object, before
we've flushed the rendering using it to the kernel.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_cl.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_cl.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/drivers/vc4/vc4_cl.c b/src/gallium/drivers/vc4/vc4_cl.c index 5c660d8d7a8..29b956e6e9a 100644 --- a/src/gallium/drivers/vc4/vc4_cl.c +++ b/src/gallium/drivers/vc4/vc4_cl.c @@ -61,10 +61,7 @@ vc4_gem_hindex(struct vc4_context *vc4, struct vc4_bo *bo) } cl_u32(&vc4->bo_handles, bo->handle); - -#ifdef USE_VC4_SIMULATOR - cl_ptr(&vc4->bo_pointers, bo); -#endif + cl_ptr(&vc4->bo_pointers, vc4_bo_reference(bo)); return hindex; } |