radv: make sure to mark DCC as compressed on GFX11

The bit has moved to FDCC_ENABLE on GFX11.
Found by inspection.

Cc: 22.3 mesa-stable
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/20005>
(cherry picked from commit ccac91db7b)
This commit is contained in:
Samuel Pitoiset 2022-11-25 12:00:33 +01:00 committed by Eric Engestrom
parent 78a07aa90b
commit dd7e8d3cdb
2 changed files with 4 additions and 2 deletions

View file

@ -1426,7 +1426,7 @@
"description": "radv: make sure to mark DCC as compressed on GFX11",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -2190,7 +2190,9 @@ radv_emit_fb_color_state(struct radv_cmd_buffer *cmd_buffer, int index,
}
}
if (G_028C70_DCC_ENABLE(cb_color_info)) {
if (cmd_buffer->device->physical_device->rad_info.gfx_level >= GFX11
? G_028C78_FDCC_ENABLE(cb_fdcc_control)
: G_028C70_DCC_ENABLE(cb_color_info)) {
/* Drawing with DCC enabled also compresses colorbuffers. */
VkImageSubresourceRange range = {
.aspectMask = iview->vk.aspects,