diff options
author | Rob Clark <[email protected]> | 2014-05-24 10:07:13 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2014-05-26 08:56:27 -0400 |
commit | 286863939f9b0896db1b382c967d0d92b14729c9 (patch) | |
tree | 929553931b44a3d8712f4f2fc145769fce89939d /src/gallium/drivers/freedreno/freedreno_resource.c | |
parent | f0748b50146ed3cda77c625efea67b1b032e7737 (diff) |
freedreno: few caps fixes
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_resource.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_resource.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c index 289f3653e12..ebc134a3bb0 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.c +++ b/src/gallium/drivers/freedreno/freedreno_resource.c @@ -48,6 +48,10 @@ realloc_bo(struct fd_resource *rsc, uint32_t size) uint32_t flags = DRM_FREEDRENO_GEM_CACHE_WCOMBINE | DRM_FREEDRENO_GEM_TYPE_KMEM; /* TODO */ + /* if we start using things other than write-combine, + * be sure to check for PIPE_RESOURCE_FLAG_MAP_COHERENT + */ + if (rsc->bo) fd_bo_del(rsc->bo); |