Mesa (master): r300g: accelerate resoure_copy_region for rgtc
Marek Olšák
mareko at kemper.freedesktop.org
Tue Mar 1 23:54:31 UTC 2011
Module: Mesa
Branch: master
Commit: 30600e3dabd5055a838ddfbf0c3fe6b0eac83979
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=30600e3dabd5055a838ddfbf0c3fe6b0eac83979
Author: Marek Olšák <maraeo at gmail.com>
Date: Tue Mar 1 21:15:20 2011 +0100
r300g: accelerate resoure_copy_region for rgtc
---
src/gallium/drivers/r300/r300_blit.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/r300/r300_blit.c b/src/gallium/drivers/r300/r300_blit.c
index 8c13ac5..6391ea7 100644
--- a/src/gallium/drivers/r300/r300_blit.c
+++ b/src/gallium/drivers/r300/r300_blit.c
@@ -474,7 +474,8 @@ static void r300_resource_copy_region(struct pipe_context *pipe,
}
/* Handle compressed formats. */
- if (desc->layout == UTIL_FORMAT_LAYOUT_S3TC) {
+ if (desc->layout == UTIL_FORMAT_LAYOUT_S3TC ||
+ desc->layout == UTIL_FORMAT_LAYOUT_RGTC) {
switch (util_format_get_blocksize(old_dst.format)) {
case 8:
/* 1 pixel = 4 bits,
More information about the mesa-commit
mailing list