r600g,radeonsi: treat DYNAMIC and STREAM usage as STAGING
authorMarek Olšák <marek.olsak@amd.com>
Sat, 1 Feb 2014 13:01:20 +0000 (14:01 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 4 Feb 2014 19:19:16 +0000 (20:19 +0100)
src/gallium/drivers/radeon/r600_buffer_common.c

index d29671ec40222c535bdcac7f409646eb2d5cffd0..1a9a5dd4332e2ee0244f36065bf50928bfef85dc 100644 (file)
@@ -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: