mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
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:
parent
f9ff2d9d07
commit
8fc5d93060
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue