From f5879012cae7aec330e19def5f253d5d18edd201 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Wed, 2 Jun 2021 11:45:29 -0700 Subject: [PATCH] freedreno/drm: Use cached-coherent cmdstream buffers Some more extreme examples, like gl_driver2_off, can be bottlenecked on writes to cmdstream. OTOH the CP is pretty pipelined in how it slurps in memory, so the penalty of using coherent buffers should not be so much. Signed-off-by: Rob Clark Part-of: --- src/freedreno/drm/freedreno_bo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/drm/freedreno_bo.c b/src/freedreno/drm/freedreno_bo.c index f80c549aa64..23644b7b2f1 100644 --- a/src/freedreno/drm/freedreno_bo.c +++ b/src/freedreno/drm/freedreno_bo.c @@ -142,7 +142,7 @@ _fd_bo_set_name(struct fd_bo *bo, const char *fmt, va_list ap) struct fd_bo * fd_bo_new_ring(struct fd_device *dev, uint32_t size) { - uint32_t flags = FD_BO_GPUREADONLY; + uint32_t flags = FD_BO_GPUREADONLY | FD_BO_CACHED_COHERENT; struct fd_bo *bo = bo_new(dev, size, flags, &dev->ring_cache); if (bo) { bo->bo_reuse = RING_CACHE;