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
962 .pNext = &ded_req,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 ret = vk->CreateBuffer(s->hwctx->act_dev, &buf_spawn, s->hwctx->alloc, &buf->buf);969 ret = vk->CreateBuffer(s->hwctx->act_dev, &buf_spawn, s->hwctx->alloc, &buf->buf);
966 if (ret != VK_SUCCESS) {970 if (ret != VK_SUCCESS) {
967 av_log(s, AV_LOG_ERROR, "Failed to create buffer: %s\n",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 ff_vk_free_buf(ctx, data);1204 ff_vk_free_buf(ctx, data);
1201 memset(data, 0, sizeof(*data));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 err = ff_vk_create_buf(ctx, data, size,1207 err = ff_vk_create_buf(ctx, data, size,
1207 create_pNext, NULL, usage,1208 create_pNext, NULL, usage,
1208 mem_props);1209 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