render/vulkan: add "acquire" to vulkan_sync_foreign_texture()

Makes it more obvious that this is about the acquire side, not the
release side.
This commit is contained in:
Simon Ser 2026-02-14 18:06:40 +01:00 committed by Simon Zeni
parent ff4ce12179
commit 8c8d6363a1
3 changed files with 3 additions and 3 deletions

View file

@ -475,7 +475,7 @@ bool vulkan_wait_command_buffer(struct wlr_vk_command_buffer *cb,
bool vulkan_sync_render_pass_release(struct wlr_vk_renderer *renderer,
struct wlr_vk_render_pass *pass);
bool vulkan_sync_foreign_texture(struct wlr_vk_texture *texture,
bool vulkan_sync_foreign_texture_acquire(struct wlr_vk_texture *texture,
int sync_file_fds[static WLR_DMABUF_MAX_PLANES]);
bool vulkan_read_pixels(struct wlr_vk_renderer *vk_renderer,

View file

@ -386,7 +386,7 @@ static bool render_pass_submit(struct wlr_render_pass *wlr_pass) {
sync_file_fds[0] = sync_file_fd;
} else {
struct wlr_vk_texture *texture = pass_texture->texture;
if (!vulkan_sync_foreign_texture(texture, sync_file_fds)) {
if (!vulkan_sync_foreign_texture_acquire(texture, sync_file_fds)) {
wlr_log(WLR_ERROR, "Failed to wait for foreign texture DMA-BUF fence");
continue;
}

View file

@ -1011,7 +1011,7 @@ static bool buffer_export_sync_file(struct wlr_vk_renderer *renderer, struct wlr
return true;
}
bool vulkan_sync_foreign_texture(struct wlr_vk_texture *texture,
bool vulkan_sync_foreign_texture_acquire(struct wlr_vk_texture *texture,
int sync_file_fds[static WLR_DMABUF_MAX_PLANES]) {
return buffer_export_sync_file(texture->renderer, texture->buffer, DMA_BUF_SYNC_READ, sync_file_fds);
}