radeonsi: don't decompress DCC for float formats in si_compute_copy_image

Format reinterpretation disabled it.

Fixes: 1d64a1045e "radeonsi: enable dcc image stores on gfx10+"

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10261>
(cherry picked from commit e0ffd1f928)
This commit is contained in:
Marek Olšák 2021-03-23 20:49:18 -04:00 committed by Eric Engestrom
parent 8636a1220c
commit 742188d95a
2 changed files with 2 additions and 1 deletions

View file

@ -112,7 +112,7 @@
"description": "radeonsi: don't decompress DCC for float formats in si_compute_copy_image",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "1d64a1045ea205ee0297d2f741a824811570fc6d"
},

View file

@ -460,6 +460,7 @@ void si_compute_copy_image(struct si_context *sctx, struct pipe_resource *dst, u
assert(util_format_is_subsampled_422(src_format) == util_format_is_subsampled_422(dst_format));
if (!vi_dcc_enabled((struct si_texture*)src, src_level) &&
!vi_dcc_enabled((struct si_texture*)dst, dst_level) &&
src_format == dst_format &&
util_format_is_float(src_format) &&
!util_format_is_compressed(src_format)) {