History

avutil/hwcontext_vulkan: also re-query dprops in device_init()

This can be unset if using an externally provided device, as in this case device_create() never gets called. (cherry picked from commit 881224b21324e5f0c43569928cf96f0e92a686e2)

Niklas Haas committed 1 year ago

Commit eeff85f1 parent bc88c1d1 file · +2 −0Browse files

Unified · Split

libavutil/hwcontext_vulkan.c+2−0
@@ -1868,6 +1868,8 @@ static int vulkan_device_init(AVHWDeviceContext *ctx) · 1867 unmodified lines
18681868 p->props.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2;
18691869 p->props.pNext = &p->hprops;
18701870 p->hprops.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXT;
1871+ p->hprops.pNext = &p->dprops;
1872+ p->dprops.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES;
18711873
18721874 vk->GetPhysicalDeviceProperties2(hwctx->phys_dev, &p->props);
18731875 av_log(ctx, AV_LOG_VERBOSE, "Using device: %s\n",

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