1
0
Fork 0

vulkan_decode: correct flipped condition in image layout

Changed by the previous commit.
Caused validation issues on hardware with !reuse_dpb_dst but not layered_dpb.
This commit is contained in:
Lynne 2023-10-25 21:56:03 +02:00
parent 0b3616231d
commit 70864e6adb
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
1 changed files with 1 additions and 1 deletions

View File

@ -449,7 +449,7 @@ int ff_vk_decode_frame(AVCodecContext *avctx,
.srcAccessMask = VK_ACCESS_2_NONE,
.dstAccessMask = VK_ACCESS_2_VIDEO_DECODE_WRITE_BIT_KHR,
.oldLayout = vkf->layout[0],
.newLayout = (dec->layered_dpb && vp->dpb_frame) ?
.newLayout = (dec->layered_dpb || vp->dpb_frame) ?
VK_IMAGE_LAYOUT_VIDEO_DECODE_DST_KHR :
VK_IMAGE_LAYOUT_VIDEO_DECODE_DPB_KHR, /* Spec, 07252 utter madness */
.srcQueueFamilyIndex = vkf->queue_family[0],