r600g: permit blitting between textures with STREAM and STAGING usage
authorMarek Olšák <maraeo@gmail.com>
Fri, 24 Feb 2012 16:05:21 +0000 (17:05 +0100)
committerMarek Olšák <maraeo@gmail.com>
Mon, 5 Mar 2012 13:22:20 +0000 (14:22 +0100)
Eventually I'd like to make every format blittable, so that the function
can go away.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/drivers/r600/r600_texture.c

index 26759153276bd6eb177c59ba0d35e1f5c17dd1ba..6e275ebc109ad89ac9b0490be8d2f8ca53a5f4a1 100644 (file)
@@ -444,14 +444,7 @@ static boolean permit_hardware_blit(struct pipe_screen *screen,
                                 PIPE_BIND_SAMPLER_VIEW))
                return FALSE;
 
-       switch (res->usage) {
-       case PIPE_USAGE_STREAM:
-       case PIPE_USAGE_STAGING:
-               return FALSE;
-
-       default:
-               return TRUE;
-       }
+       return TRUE;
 }
 
 static boolean r600_texture_get_handle(struct pipe_screen* screen,