diff options
author | Christian König <[email protected]> | 2014-01-27 03:40:25 -0700 |
---|---|---|
committer | Christian König <[email protected]> | 2014-02-06 16:08:22 +0100 |
commit | 96e8b916a7a39a9ba58e92d1ad77b5501de63ac7 (patch) | |
tree | ba395f50e59a9a1fb4a7427e6d9161155efb9d6c /src/gallium | |
parent | 9b218dcdd7877b81d8b6c55799b6ec33e1cc8079 (diff) |
radeon: just don't map VRAM buffers at all
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeon/r600_texture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index 878b26f2093..eb1e191d0f9 100644 --- a/src/gallium/drivers/radeon/r600_texture.c +++ b/src/gallium/drivers/radeon/r600_texture.c @@ -911,8 +911,8 @@ static void *r600_texture_transfer_map(struct pipe_context *ctx, if (rtex->surface.level[level].mode >= RADEON_SURF_MODE_1D) use_staging_texture = TRUE; - /* Untiled buffers in VRAM, which is slow for CPU reads */ - if ((usage & PIPE_TRANSFER_READ) && !(usage & PIPE_TRANSFER_MAP_DIRECTLY) && + /* Untiled buffers in VRAM, which is slow for CPU reads and writes */ + if (!(usage & PIPE_TRANSFER_MAP_DIRECTLY) && (rtex->resource.domains == RADEON_DOMAIN_VRAM)) { use_staging_texture = TRUE; } |