From: Rob Clark Date: Thu, 25 Apr 2013 19:00:58 +0000 (-0400) Subject: freedreno: use writecombine buffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=73de07cbbcaf6804c489546cce1b3c55db4535ae;p=mesa.git freedreno: use writecombine buffers Better than uncached for writes, which are common for vertex buffer upload, etc. Signed-off-by: Rob Clark --- 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);