aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark2016-06-01 15:11:52 -0500
committerRob Clark2016-07-20 18:42:21 -0500
commit892141a321c7acd32000e145916217eda2da14bb (patch)
treef9f0e26dceae9892f1b385eed0b16c627e976cb7 /freedreno/msm/msm_device.c
parent19b82b9817b696cfe06d32340cb65231775b203b (diff)
downloadexternal-libdrm-892141a321c7acd32000e145916217eda2da14bb.tar.gz
external-libdrm-892141a321c7acd32000e145916217eda2da14bb.tar.xz
external-libdrm-892141a321c7acd32000e145916217eda2da14bb.zip
freedreno/msm: use private bo-cache for ringbuffer bo's
Since they get vmap'd on the kernel side, they are a bit more costly. Don't let them mingle with the riffraff. Signed-off-by: Rob Clark <robclark@freedesktop.org>
Diffstat (limited to 'freedreno/msm/msm_device.c')
-rw-r--r--freedreno/msm/msm_device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/freedreno/msm/msm_device.c b/freedreno/msm/msm_device.c
index 25c097c2..727baa44 100644
--- a/freedreno/msm/msm_device.c
+++ b/freedreno/msm/msm_device.c
@@ -39,6 +39,7 @@
39static void msm_device_destroy(struct fd_device *dev) 39static void msm_device_destroy(struct fd_device *dev)
40{ 40{
41 struct msm_device *msm_dev = to_msm_device(dev); 41 struct msm_device *msm_dev = to_msm_device(dev);
42 fd_bo_cache_cleanup(&msm_dev->ring_cache, 0);
42 free(msm_dev); 43 free(msm_dev);
43} 44}
44 45
@@ -61,5 +62,7 @@ drm_private struct fd_device * msm_device_new(int fd)
61 dev = &msm_dev->base; 62 dev = &msm_dev->base;
62 dev->funcs = &funcs; 63 dev->funcs = &funcs;
63 64
65 fd_bo_cache_init(&msm_dev->ring_cache, TRUE);
66
64 return dev; 67 return dev;
65} 68}