mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-07 13:49:53 +00:00
vulkan_dpx: use host visible allocation for host image copy buffer
Fixes black screen on Nvidia.
This commit is contained in:
parent
162e07da61
commit
231f735d55
1 changed files with 2 additions and 1 deletions
|
|
@ -102,7 +102,8 @@ static int host_upload_image(AVCodecContext *avctx,
|
|||
VK_BUFFER_USAGE_STORAGE_BUFFER_BIT |
|
||||
VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT,
|
||||
NULL, size,
|
||||
VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT);
|
||||
VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT |
|
||||
VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue