Skip to content
Snippets Groups Projects
Commit a989e999 authored by Samuel Pitoiset's avatar Samuel Pitoiset Committed by Juan A. Suárez
Browse files

radv: fix radv_layout_dcc_compressed() when image doesn't have DCC


num_dcc_levels means that DCC is supported, but this doesn't
mean that it's enabled by the driver. Instead, we should rely
on radv_image_has_dcc().

This fixes some multisample regressions since 0babc8e5
("radv: fix picking the method for resolve subpass") on Vega.
This is because the resolve method changed from HW to FS, but
those fails are totally unexpected, so there might some
differences between Polaris and Vega here.

Fixes: 44fcf587 ("radv: Disable DCC for GENERAL layout and compute transfer dest.")
Signed-off-by: default avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: default avatarBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
(cherry picked from commit 9eac4924)
[Juan A. Suarez: do not call radv_image_has_dcc(), as it is not defined]
Signed-off-by: default avatarJuan A. Suarez Romero <jasuarez@igalia.com>
parent 1d44ea34
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment