r300g: accelerate resoure_copy_region for rgtc
authorMarek Olšák <maraeo@gmail.com>
Tue, 1 Mar 2011 20:15:20 +0000 (21:15 +0100)
committerMarek Olšák <maraeo@gmail.com>
Tue, 1 Mar 2011 23:54:06 +0000 (00:54 +0100)
src/gallium/drivers/r300/r300_blit.c

index 8c13ac5dff783616617cf9eaaa4cabd3885a3985..6391ea7f3be7c46d4be7fce7045dcf21deb2c869 100644 (file)
@@ -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,