mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
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 commite0ffd1f928)
This commit is contained in:
parent
8636a1220c
commit
742188d95a
2 changed files with 2 additions and 1 deletions
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue