diff options
author | Rob Clark <[email protected]> | 2013-04-25 15:00:58 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2013-04-25 15:10:56 -0400 |
commit | 73de07cbbcaf6804c489546cce1b3c55db4535ae (patch) | |
tree | 49b4ec448f134a67fff85838cc8178bdb3c18545 | |
parent | f706d4d340f0778de23062ef13c54b07bfac7967 (diff) |
freedreno: use writecombine buffers
Better than uncached for writes, which are common for vertex buffer
upload, etc.
Signed-off-by: Rob Clark <[email protected]>
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_resource.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |