r600g: disable hardware blit for stream texture
authorChristian König <deathsimple@vodafone.de>
Fri, 26 Nov 2010 20:44:22 +0000 (21:44 +0100)
committerChristian König <deathsimple@vodafone.de>
Fri, 26 Nov 2010 20:44:22 +0000 (21:44 +0100)
src/gallium/drivers/r600/r600_texture.c

index ec7bd0d75cdb19d63f781915eec0a0e918b90355..65d6acb9e4cfa7e265bb9eb5ac7a0479187ad972 100644 (file)
@@ -575,7 +575,8 @@ struct pipe_transfer* r600_texture_get_transfer(struct pipe_context *ctx,
                 use_staging_texture = TRUE;
 
         if (!permit_hardware_blit(ctx->screen, texture) ||
-            (texture->flags & R600_RESOURCE_FLAG_TRANSFER))
+            (texture->flags & R600_RESOURCE_FLAG_TRANSFER) ||
+            (texture->usage == PIPE_USAGE_STREAM))
                 use_staging_texture = FALSE;
 
        trans = CALLOC_STRUCT(r600_transfer);