Mesa (master): radv: do not decompress levels without DCC with the compute path

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 18 09:22:09 UTC 2019


Module: Mesa
Branch: master
Commit: e8917dcadb376168150b36d2390644186724bc25
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e8917dcadb376168150b36d2390644186724bc25

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Tue Jun 18 10:30:44 2019 +0200

radv: do not decompress levels without DCC with the compute path

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

---

 src/amd/vulkan/radv_meta_fast_clear.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/amd/vulkan/radv_meta_fast_clear.c b/src/amd/vulkan/radv_meta_fast_clear.c
index 6e5fee552b0..cb7b43d546c 100644
--- a/src/amd/vulkan/radv_meta_fast_clear.c
+++ b/src/amd/vulkan/radv_meta_fast_clear.c
@@ -801,6 +801,11 @@ radv_decompress_dcc_compute(struct radv_cmd_buffer *cmd_buffer,
 	                     device->meta_state.fast_clear_flush.dcc_decompress_compute_pipeline);
 
 	for (uint32_t l = 0; l < radv_get_levelCount(image, subresourceRange); l++) {
+
+		/* Do not decompress levels without DCC. */
+		if (!radv_dcc_enabled(image, subresourceRange->baseMipLevel + l))
+			continue;
+
 		radv_image_view_init(&iview, cmd_buffer->device,
 				     &(VkImageViewCreateInfo) {
 					     .sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO,




More information about the mesa-commit mailing list