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:

committed by
Marge Bot

parent
c95b646e23
commit
899c774b9a
@@ -244,6 +244,14 @@ struct vk_queue_submit {
|
|||||||
struct vk_sync_timeline_point **_signal_points;
|
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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user