Mesa (pipe-video): r600g: reenable hardware blits for STATIC and IMMUTABLE resources
Christian König
deathsimple at kemper.freedesktop.org
Fri Jul 15 15:57:01 UTC 2011
Module: Mesa
Branch: pipe-video
Commit: 211887c92baf25db14251ed496140207b15e0ccb
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=211887c92baf25db14251ed496140207b15e0ccb
Author: Christian König <deathsimple at vodafone.de>
Date: Wed Jul 13 17:05:58 2011 +0200
r600g: reenable hardware blits for STATIC and IMMUTABLE resources
Getting the driver in sync with mainline.
---
src/gallium/drivers/r600/r600_texture.c | 18 ++++++++----------
1 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
index a6161e5..10c32c5 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -298,7 +298,7 @@ static boolean permit_hardware_blit(struct pipe_screen *screen,
/* hackaround for S3TC */
if (util_format_is_compressed(res->format))
return TRUE;
-
+
if (!screen->is_format_supported(screen,
res->format,
res->target,
@@ -313,16 +313,14 @@ 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:
- case PIPE_USAGE_STATIC:
- case PIPE_USAGE_IMMUTABLE:
- return FALSE;
+ switch (res->usage) {
+ case PIPE_USAGE_STREAM:
+ case PIPE_USAGE_STAGING:
+ return FALSE;
- default:
- return TRUE;
- }
+ default:
+ return TRUE;
+ }
}
static boolean r600_texture_get_handle(struct pipe_screen* screen,
More information about the mesa-commit
mailing list