From 73de07cbbcaf6804c489546cce1b3c55db4535ae Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Thu, 25 Apr 2013 15:00:58 -0400 Subject: freedreno: use writecombine buffers Better than uncached for writes, which are common for vertex buffer upload, etc. Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/freedreno_resource.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c index b5efdce469d..00f3db867b4 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.c +++ b/src/gallium/drivers/freedreno/freedreno_resource.c @@ -155,7 +155,8 @@ fd_resource_create(struct pipe_screen *pscreen, rsc->cpp = util_format_get_blocksize(tmpl->format); size = rsc->pitch * tmpl->height0 * rsc->cpp; - flags = DRM_FREEDRENO_GEM_TYPE_KMEM; /* TODO */ + flags = DRM_FREEDRENO_GEM_CACHE_WCOMBINE | + DRM_FREEDRENO_GEM_TYPE_KMEM; /* TODO */ rsc->bo = fd_bo_new(screen->dev, size, flags); -- cgit v1.2.3