Skip to content

Commit

Permalink
decode: fix the DPB imageBarriers baseArrayLayer
Browse files Browse the repository at this point in the history
  • Loading branch information
zlatinski committed Nov 24, 2024
1 parent 78ca688 commit b47e0db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vk_video_decoder/libs/VkVideoDecoder/VkVideoDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,7 @@ int VkVideoDecoder::DecodePictureWithParameters(VkParserPerFrameDecodeParameters
// pictureResourcesInfo[resId].image can be a nullptr handle if the picture is not-existent.
if (pictureResourcesInfo[resId].image && (pictureResourcesInfo[resId].currentImageLayout != VK_IMAGE_LAYOUT_VIDEO_DECODE_DPB_KHR)) {
imageBarriers[numDpbBarriers] = dpbBarrierTemplates[0];
imageBarriers[numDpbBarriers].subresourceRange.baseArrayLayer = pCurrFrameDecParams->pictureResources[resId].baseArrayLayer;
imageBarriers[numDpbBarriers].oldLayout = pictureResourcesInfo[resId].currentImageLayout;
imageBarriers[numDpbBarriers].newLayout = VK_IMAGE_LAYOUT_VIDEO_DECODE_DPB_KHR;
imageBarriers[numDpbBarriers].image = pictureResourcesInfo[resId].image;
Expand Down

0 comments on commit b47e0db

Please sign in to comment.