From: Christian König Date: Wed, 13 Jul 2011 14:35:19 +0000 (+0200) Subject: r600g: prevent hardware blitting based on resource usage X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0a22fead5e08b9ebfd2b64e6262e1e803a8e927;p=mesa.git r600g: prevent hardware blitting based on resource usage It doesn't make much sense for STAGING and STREAM resources to be hardware blitted into VRAM. --- diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c index 37e75be6cf2..10c32c53a6d 100644 --- a/src/gallium/drivers/r600/r600_texture.c +++ b/src/gallium/drivers/r600/r600_texture.c @@ -313,7 +313,14 @@ static boolean permit_hardware_blit(struct pipe_screen *screen, PIPE_BIND_SAMPLER_VIEW)) return FALSE; - return TRUE; + switch (res->usage) { + case PIPE_USAGE_STREAM: + case PIPE_USAGE_STAGING: + return FALSE; + + default: + return TRUE; + } } static boolean r600_texture_get_handle(struct pipe_screen* screen,