radv: remove extra assignment in radv_decompress_resolve_subpass_src()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 11 Jun 2019 06:17:22 +0000 (08:17 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 11 Jun 2019 06:17:22 +0000 (08:17 +0200)
baseArrayLayer is defined twice, trivial.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_meta_resolve.c

index f1fa05cf8b31d1c2822a66510251b3b92b82a67f..8c4bfa63ac7505b8be3734144763f971e3b85e0d 100644 (file)
@@ -725,7 +725,6 @@ radv_decompress_resolve_subpass_src(struct radv_cmd_buffer *cmd_buffer)
 
                VkImageResolve region = {};
                region.srcSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
-               region.srcSubresource.baseArrayLayer = 0;
                region.srcSubresource.mipLevel = 0;
                region.srcSubresource.baseArrayLayer = src_iview->base_layer;
                region.srcSubresource.layerCount = layer_count;