vulkan: remove FFVkBuffer.stage and access

Keeping global state for every buffer is unncessary and possibly
suboptimal.
This commit is contained in:
Lynne
2025-12-23 19:08:04 +01:00
parent c3e117670d
commit c3530d9a70
2 changed files with 0 additions and 6 deletions

View File

@@ -1309,8 +1309,6 @@ int ff_vk_get_pooled_buffer(FFVulkanContext *ctx, AVBufferPool **buf_pool,
return AVERROR(ENOMEM);
data = (FFVkBuffer *)ref->data;
data->stage = VK_PIPELINE_STAGE_2_ALL_COMMANDS_BIT;
data->access = VK_ACCESS_2_NONE;
if (data->size >= size)
return 0;

View File

@@ -91,10 +91,6 @@ typedef struct FFVkBuffer {
size_t size;
VkDeviceAddress address;
/* Local use only */
VkPipelineStageFlags2 stage;
VkAccessFlags2 access;
/* Only valid when allocated via ff_vk_get_pooled_buffer with HOST_VISIBLE or
* via ff_vk_host_map_buffer */
uint8_t *mapped_mem;