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 <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11176>
This commit is contained in:
parent
076196ae08
commit
f5879012ca
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue