aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/kernel/vc4_gem.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-06-12 12:47:47 -0700
committerEric Anholt <[email protected]>2015-06-16 15:15:14 -0700
commit6dd55b49090da22d3a8e9226507a95e914eaf10f (patch)
treedf82a883e62f7b1b5468fe061d926ab9a8c473ea /src/gallium/drivers/vc4/kernel/vc4_gem.c
parent731ac05cc4e444175288032a76a29c95059af038 (diff)
vc4: Handle refcounting the exec BO like we do in the kernel.
This reduces the diff to the kernel, and will be useful when I make the kernel allocate more BOs as part of validation.
Diffstat (limited to 'src/gallium/drivers/vc4/kernel/vc4_gem.c')
-rw-r--r--src/gallium/drivers/vc4/kernel/vc4_gem.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/kernel/vc4_gem.c b/src/gallium/drivers/vc4/kernel/vc4_gem.c
index ac29ab35dbc..e559ddd1d4e 100644
--- a/src/gallium/drivers/vc4/kernel/vc4_gem.c
+++ b/src/gallium/drivers/vc4/kernel/vc4_gem.c
@@ -114,6 +114,9 @@ vc4_cl_validate(struct drm_device *dev, struct vc4_exec_info *exec)
}
#endif
+ list_addtail(&to_vc4_bo(&exec->exec_bo->base)->unref_head,
+ &exec->unref_list);
+
exec->ct0ca = exec->exec_bo->paddr + bin_offset;
exec->ct1ca = exec->exec_bo->paddr + render_offset;