From: Michel Dänzer Date: Wed, 27 Mar 2013 11:43:32 +0000 (+0100) Subject: radeonsi: Handle arbitrary 2-byte formats in resource_copy_region X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6efb4870b7c735e4dc1907dfdfd1be3159dc451;p=mesa.git radeonsi: Handle arbitrary 2-byte formats in resource_copy_region Fixes mplayer -vo vdpau OSD. NOTE: This is a candidate for the 9.1 branch. Reported-by: Igor Vagulin Reviewed-by: Christian König Tested-by: Christian König --- diff --git a/src/gallium/drivers/radeonsi/r600_blit.c b/src/gallium/drivers/radeonsi/r600_blit.c index eb69cd54ee0..f9d2568d3aa 100644 --- a/src/gallium/drivers/radeonsi/r600_blit.c +++ b/src/gallium/drivers/radeonsi/r600_blit.c @@ -417,6 +417,12 @@ static void r600_resource_copy_region(struct pipe_context *ctx, r600_change_format(dst, dst_level, &orig_info[1], PIPE_FORMAT_R8_UNORM); break; + case 2: + r600_change_format(src, src_level, &orig_info[0], + PIPE_FORMAT_R8G8_UNORM); + r600_change_format(dst, dst_level, &orig_info[1], + PIPE_FORMAT_R8G8_UNORM); + break; case 4: r600_change_format(src, src_level, &orig_info[0], PIPE_FORMAT_R8G8B8A8_UNORM);