mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 14:40:13 +01:00
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:
parent
78a07aa90b
commit
dd7e8d3cdb
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue