mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-18 12:56:56 +00:00
hwcontext_vulkan: consider encode DBPs as always independent
This commit is contained in:
parent
32d47166c8
commit
8875da347a
@ -2672,8 +2672,9 @@ static int vulkan_frames_init(AVHWFramesContext *hwfc)
|
|||||||
* Only fill them in automatically if the image is not going to be used as
|
* Only fill them in automatically if the image is not going to be used as
|
||||||
* a DPB-only image, and we have SAMPLED/STORAGE bits set. */
|
* a DPB-only image, and we have SAMPLED/STORAGE bits set. */
|
||||||
if (!hwctx->img_flags) {
|
if (!hwctx->img_flags) {
|
||||||
int is_lone_dpb = (hwctx->usage & VK_IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHR) &&
|
int is_lone_dpb = ((hwctx->usage & VK_IMAGE_USAGE_VIDEO_ENCODE_DPB_BIT_KHR) ||
|
||||||
!(hwctx->usage & VK_IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR);
|
((hwctx->usage & VK_IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHR) &&
|
||||||
|
!(hwctx->usage & VK_IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR)));
|
||||||
int sampleable = hwctx->usage & (VK_IMAGE_USAGE_SAMPLED_BIT |
|
int sampleable = hwctx->usage & (VK_IMAGE_USAGE_SAMPLED_BIT |
|
||||||
VK_IMAGE_USAGE_STORAGE_BIT);
|
VK_IMAGE_USAGE_STORAGE_BIT);
|
||||||
if (sampleable && !is_lone_dpb) {
|
if (sampleable && !is_lone_dpb) {
|
||||||
|
Loading…
Reference in New Issue
Block a user