History

vulkan: move buffer allocation av_log message

Its more useful when buffers are allocated, not in the pool.

Lynne committed 2 years ago

Commit dfaade71 parent 1edc7481 file · +4 −3Browse files

Unified · Split

libavutil/vulkan.c+4−3
@@ -962,6 +962,10 @@ int ff_vk_create_buf(FFVulkanContext *s, FFVkBuffer *buf, size_t size, · 961 unmodified lines
962962 .pNext = &ded_req,
963963 };
964964
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+
965969 ret = vk->CreateBuffer(s->hwctx->act_dev, &buf_spawn, s->hwctx->alloc, &buf->buf);
966970 if (ret != VK_SUCCESS) {
967971 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
12001204 ff_vk_free_buf(ctx, data);
12011205 memset(data, 0, sizeof(*data));
12021206
1203− av_log(ctx, AV_LOG_DEBUG, "Allocating buffer of %"SIZE_SPECIFIER" bytes for pool %p\n",
1204− size, *buf_pool);
1205−
12061207 err = ff_vk_create_buf(ctx, data, size,
12071208 create_pNext, NULL, usage,
12081209 mem_props);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t