radv: set the image view aspect mask during subpass transitions
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 16 Oct 2019 12:13:52 +0000 (14:13 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 25 Nov 2019 15:29:13 +0000 (16:29 +0100)
No functional changes because the aspect mask is still not used
during image transitions but it will be needed for the separate
depth/stencil aspects logic.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c

index a1c5d2b99b6b26a4e78eda4eccc319db31477a4b..d65bc72327fc79eacf225ab21a6e8439e4bd4163 100644 (file)
@@ -2963,7 +2963,7 @@ static void radv_handle_subpass_image_transition(struct radv_cmd_buffer *cmd_buf
        struct radv_image_view *view = cmd_buffer->state.attachments[idx].iview;
        struct radv_sample_locations_state *sample_locs;
        VkImageSubresourceRange range;
-       range.aspectMask = 0;
+       range.aspectMask = view->aspect_mask;
        range.baseMipLevel = view->base_mip;
        range.levelCount = 1;
        range.baseArrayLayer = view->base_layer;