History

hwcontext_vulkan: Fix build with older Vulkan headers

(cherry picked from commit 4a42e5a1e2991036e5ae5b3906c31c5f530dd764)

Mark Thompson committed 1 year ago

Commit efa64c21 parent 9c5f6541 file · +1 −1Browse files

Unified · Split

libavutil/hwcontext_vulkan.c+1−1
@@ -2908,7 +2908,7 @@ static int vulkan_frames_init(AVHWFramesContext *hwfc) · 2907 unmodified lines
2908 if (p->dev_is_nvidia &&2908 if (p->dev_is_nvidia &&
2909 (((fmt->nb_images == 1) && (fmt->vk_planes > 1)) ||2909 (((fmt->nb_images == 1) && (fmt->vk_planes > 1)) ||
2910 (av_pix_fmt_desc_get(hwfc->sw_format)->nb_components == 1)))2910 (av_pix_fmt_desc_get(hwfc->sw_format)->nb_components == 1)))
2911 supported_usage &= ~VK_IMAGE_USAGE_HOST_TRANSFER_BIT;2911 supported_usage &= ~VK_IMAGE_USAGE_HOST_TRANSFER_BIT_EXT;
2912 2912
2913 /* Image usage flags */2913 /* Image usage flags */
2914 if (!hwctx->usage) {2914 if (!hwctx->usage) {

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