diff options
author | Samuel Pitoiset <[email protected]> | 2019-10-16 14:13:52 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-11-25 16:29:13 +0100 |
commit | 9dec90b7bc90ed72df35d1a9c53237250a6e27b3 (patch) | |
tree | 3d2618117ec6ddfb1ac24f40eaaac09b4e58d1ba /src | |
parent | 459bc77763b283aacde6571a7837f27db2bcd012 (diff) |
radv: set the image view aspect mask during subpass transitions
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 <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index a1c5d2b99b6..d65bc72327f 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -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; |