From 013aa05edb6d6db7f3615c3d2242f80eee7cb742 Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Mon, 15 Mar 2021 22:15:39 +0100 Subject: [PATCH] radv: Use correct DCC compressed block size for sampling. Don't need to change the pre-GFX9 samplers because this option doesn't vary there. Fixes: f848f2adfae ("radv: Use ac_surface DCC settings for shareable images.") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4455 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4425 Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index affef2e..1b61bd4 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -874,7 +874,7 @@ gfx10_make_texture_descriptor(struct radv_device *device, if (radv_dcc_enabled(image, first_level)) { state[6] |= S_00A018_MAX_UNCOMPRESSED_BLOCK_SIZE(V_028C78_MAX_BLOCK_SIZE_256B) | - S_00A018_MAX_COMPRESSED_BLOCK_SIZE(V_028C78_MAX_BLOCK_SIZE_128B) | + S_00A018_MAX_COMPRESSED_BLOCK_SIZE(image->planes[0].surface.u.gfx9.dcc.max_compressed_block_size) | S_00A018_ALPHA_IS_ON_MSB(vi_alpha_is_on_msb(device, vk_format)); } -- 2.7.4