radv: simplify depth aspect check in radv_handle_image_transition()
this info is already available, so reduce cpu overhead Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20751>
This commit is contained in:
committed by
Marge Bot
parent
f9ff2d9d07
commit
8fc5d93060
@@ -10469,7 +10469,7 @@ radv_handle_image_transition(struct radv_cmd_buffer *cmd_buffer, struct radv_ima
|
||||
if (src_layout == dst_layout && src_queue_mask == dst_queue_mask)
|
||||
return;
|
||||
|
||||
if (vk_format_has_depth(image->vk.format)) {
|
||||
if (image->vk.aspects & VK_IMAGE_ASPECT_DEPTH_BIT) {
|
||||
radv_handle_depth_image_transition(cmd_buffer, image, src_layout, dst_layout,
|
||||
src_queue_mask, dst_queue_mask, range, sample_locs);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user