From: Marek Olšák Date: Sun, 2 May 2010 15:19:03 +0000 (+0200) Subject: r300g: fix surface_copy for compressed formats X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b2cf97c5c84c3a92f97f335b27f754aa42c5259;p=mesa.git r300g: fix surface_copy for compressed formats No accelerated blitting for these, it's too messy. --- diff --git a/src/gallium/drivers/r300/r300_blit.c b/src/gallium/drivers/r300/r300_blit.c index 928ad300eee..819d5e3f0c8 100644 --- a/src/gallium/drivers/r300/r300_blit.c +++ b/src/gallium/drivers/r300/r300_blit.c @@ -137,7 +137,8 @@ void r300_surface_copy(struct pipe_context* pipe, if (!pipe->screen->is_format_supported(pipe->screen, old_format, src->texture->target, PIPE_BIND_RENDER_TARGET | - PIPE_BIND_SAMPLER_VIEW, 0)) { + PIPE_BIND_SAMPLER_VIEW, 0) && + util_format_description(old_format)->layout == UTIL_FORMAT_LAYOUT_PLAIN) { switch (util_format_get_blocksize(old_format)) { case 1: new_format = PIPE_FORMAT_I8_UNORM;