diff options
author | Marek Olšák <[email protected]> | 2015-08-24 01:08:48 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-10-28 11:52:17 +0100 |
commit | e82c527f1fc2f8ddc64954ecd06b0de3cea92e93 (patch) | |
tree | 6db18194cb7488ee84b1bf050714f9f6ded2a1f1 /src/gallium/drivers | |
parent | 6a4dc1ad492d7d53c5c17e6eb975f0ed44b6741d (diff) |
radeonsi: allow copying between compatible compressed and uncompressed formats
which is where a block in src maps to a pixel in dst and vice versa.
e.g. DXT1 <-> R32G32_UINT
DXT5 <-> R32G32B32A32_UINT
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_blit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_blit.c b/src/gallium/drivers/radeonsi/si_blit.c index 302b75ccce4..fce014a1e6b 100644 --- a/src/gallium/drivers/radeonsi/si_blit.c +++ b/src/gallium/drivers/radeonsi/si_blit.c @@ -507,7 +507,7 @@ void si_resource_copy_region(struct pipe_context *ctx, util_blitter_default_dst_texture(&dst_templ, dst, dst_level, dstz); util_blitter_default_src_texture(&src_templ, src, src_level); - if (util_format_is_compressed(src->format) && + if (util_format_is_compressed(src->format) || util_format_is_compressed(dst->format)) { unsigned blocksize = util_format_get_blocksize(src->format); |