mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 22:30:11 +01:00
radv: only mark DCC as compressed when drawing if layout allows it
Just having DCC enabled on the base level doesn't mean we are using compressed rendering. 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/10667>
This commit is contained in:
parent
75d7c752af
commit
ff38e3aadd
1 changed files with 1 additions and 1 deletions
|
|
@ -1739,7 +1739,7 @@ radv_emit_fb_color_state(struct radv_cmd_buffer *cmd_buffer, int index,
|
|||
}
|
||||
}
|
||||
|
||||
if (radv_dcc_enabled(image, iview->base_mip)) {
|
||||
if (G_028C70_DCC_ENABLE(cb_color_info)) {
|
||||
/* Drawing with DCC enabled also compresses colorbuffers. */
|
||||
VkImageSubresourceRange range = {
|
||||
.aspectMask = iview->aspect_mask,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue