From 8af358d8bc9f7563cd76313b16d7b149197a4b2c Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Sat, 8 Feb 2014 09:51:15 -0800 Subject: gallium/pipebuffer: Add a cache buffer manager bypass mask MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In some situations, it may be desirable to bypass the cache at buffer creation but to insert the buffer in the cache at buffer destruction. One such situation is where we already have a kernel representation of a buffer that we want to use, but we also want to insert it in the cache when it's freed up. Signed-off-by: Thomas Hellstrom Reviewed-by: José Fonseca Reviewed-by: Brian Paul Cc: "10.1" --- src/gallium/winsys/radeon/drm/radeon_drm_winsys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/winsys/radeon/drm') diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c index b7137d221ca..6f0e2a57669 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c @@ -645,7 +645,7 @@ PUBLIC struct radeon_winsys *radeon_drm_winsys_create(int fd) ws->kman = radeon_bomgr_create(ws); if (!ws->kman) goto fail; - ws->cman = pb_cache_manager_create(ws->kman, 1000000, 2); + ws->cman = pb_cache_manager_create(ws->kman, 1000000, 2, 0); if (!ws->cman) goto fail; -- cgit v1.2.3