From: Marek Olšák Date: Tue, 1 Mar 2011 20:15:20 +0000 (+0100) Subject: r300g: accelerate resoure_copy_region for rgtc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=30600e3dabd5055a838ddfbf0c3fe6b0eac83979;p=mesa.git r300g: accelerate resoure_copy_region for rgtc --- diff --git a/src/gallium/drivers/r300/r300_blit.c b/src/gallium/drivers/r300/r300_blit.c index 8c13ac5dff7..6391ea7f3be 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,