From: Marek Olšák Date: Fri, 24 Feb 2012 16:05:21 +0000 (+0100) Subject: r600g: permit blitting between textures with STREAM and STAGING usage X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=515a64a28ce9566c85443209784944838a0d6d62;p=mesa.git r600g: permit blitting between textures with STREAM and STAGING usage Eventually I'd like to make every format blittable, so that the function can go away. Reviewed-by: Alex Deucher Reviewed-by: Christian König --- diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c index 26759153276..6e275ebc109 100644 --- a/src/gallium/drivers/r600/r600_texture.c +++ b/src/gallium/drivers/r600/r600_texture.c @@ -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,