vulkan: Add a vk_queue_submit_has_bind() helper

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25576>
This commit is contained in:
Faith Ekstrand
2023-10-05 17:02:00 -05:00
committed by Marge Bot
parent c95b646e23
commit 899c774b9a

View File

@@ -244,6 +244,14 @@ struct vk_queue_submit {
struct vk_sync_timeline_point **_signal_points;
};
static inline bool
vk_queue_submit_has_bind(const struct vk_queue_submit *submit)
{
return submit->buffer_bind_count > 0 ||
submit->image_opaque_bind_count > 0 ||
submit->image_bind_count > 0;
}
#ifdef __cplusplus
}
#endif