radv: keep DCC compressed for clears on compute with image stores

Without image stores, DCC is always decompressed on compute.

Cc: 21.1 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10168>
(cherry picked from commit 66e1b42d06)
This commit is contained in:
Samuel Pitoiset 2021-04-12 09:24:46 +02:00 committed by Eric Engestrom
parent 8e39721254
commit 7e32a89902
2 changed files with 2 additions and 2 deletions

View file

@ -499,7 +499,7 @@
"description": "radv: keep DCC compressed for clears on compute with image stores",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": null
},

View file

@ -2053,7 +2053,7 @@ radv_cmd_clear_image(struct radv_cmd_buffer *cmd_buffer, struct radv_image *imag
surf.level = range->baseMipLevel + l;
surf.layer = range->baseArrayLayer + s;
surf.aspect_mask = range->aspectMask;
surf.disable_compression = true;
surf.disable_compression = false;
radv_meta_clear_image_cs(cmd_buffer, &surf, &internal_clear_value.color);
} else {
radv_clear_image_layer(cmd_buffer, image, image_layout, range, format, l, s,