diff options
author | Marek Olšák <[email protected]> | 2014-02-01 14:01:20 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-02-04 20:19:16 +0100 |
commit | 796e2fba8cc21f8e190bc143b6209ca417c54976 (patch) | |
tree | d1004a4f97e51a98fa72d8e150536feedbaf3f55 /src/gallium/drivers/radeon/r600_buffer_common.c | |
parent | 0354b769c2ee865ed40e9994f2147f2d86e989b7 (diff) |
r600g,radeonsi: treat DYNAMIC and STREAM usage as STAGING
Diffstat (limited to 'src/gallium/drivers/radeon/r600_buffer_common.c')
-rw-r--r-- | src/gallium/drivers/radeon/r600_buffer_common.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gallium/drivers/radeon/r600_buffer_common.c b/src/gallium/drivers/radeon/r600_buffer_common.c index d29671ec402..1a9a5dd4332 100644 --- a/src/gallium/drivers/radeon/r600_buffer_common.c +++ b/src/gallium/drivers/radeon/r600_buffer_common.c @@ -105,19 +105,15 @@ bool r600_init_resource(struct r600_common_screen *rscreen, switch(usage) { case PIPE_USAGE_STAGING: - /* Staging resources participate in transfers, i.e. are used + case PIPE_USAGE_DYNAMIC: + case PIPE_USAGE_STREAM: + /* These resources participate in transfers, i.e. are used * for uploads and downloads from regular resources. * We generate them internally for some transfers. */ initial_domain = RADEON_DOMAIN_GTT; domains = RADEON_DOMAIN_GTT; break; - case PIPE_USAGE_DYNAMIC: - case PIPE_USAGE_STREAM: - /* Default to GTT, but allow the memory manager to move it to VRAM. */ - initial_domain = RADEON_DOMAIN_GTT; - domains = RADEON_DOMAIN_GTT | RADEON_DOMAIN_VRAM; - break; case PIPE_USAGE_DEFAULT: case PIPE_USAGE_STATIC: case PIPE_USAGE_IMMUTABLE: |