Its more useful when buffers are allocated, not in the pool.
Unified · Split
| @@ -962,6 +962,10 @@ int ff_vk_create_buf(FFVulkanContext *s, FFVkBuffer *buf, size_t size, · 961 unmodified lines | ||
| 962 | 962 | .pNext = &ded_req, |
| 963 | 963 | }; |
| 964 | 964 | |
| 965 | + av_log(s, AV_LOG_DEBUG, "Creating a buffer of %"SIZE_SPECIFIER" bytes, " | |
| 966 | + "usage: 0x%x, flags: 0x%x\n", | |
| 967 | + size, usage, flags); | |
| 968 | + | |
| 965 | 969 | ret = vk->CreateBuffer(s->hwctx->act_dev, &buf_spawn, s->hwctx->alloc, &buf->buf); |
| 966 | 970 | if (ret != VK_SUCCESS) { |
| 967 | 971 | av_log(s, AV_LOG_ERROR, "Failed to create buffer: %s\n", |
| @@ -1200,9 +1204,6 @@ int ff_vk_get_pooled_buffer(FFVulkanContext *ctx, AVBufferPool **buf_pool, · 232 unmodified lines | ||
| 1200 | 1204 | ff_vk_free_buf(ctx, data); |
| 1201 | 1205 | memset(data, 0, sizeof(*data)); |
| 1202 | 1206 | |
| 1203 | − av_log(ctx, AV_LOG_DEBUG, "Allocating buffer of %"SIZE_SPECIFIER" bytes for pool %p\n", | |
| 1204 | − size, *buf_pool); | |
| 1205 | − | |
| 1206 | 1207 | err = ff_vk_create_buf(ctx, data, size, |
| 1207 | 1208 | create_pNext, NULL, usage, |
| 1208 | 1209 | mem_props); |