[FFmpeg-devel] [PATCH 1/2] vulkan_decode: fix pedantic validation issue
Lynne
dev at lynne.ee
Wed Oct 25 02:41:23 EEST 2023
Meant to be applied on top of my previous patch to fix frame context dimension allocation.
Fixes:
"Validation Error: [ VUID-VkImageViewCreateInfo-imageViewType-04974 ] Object 0: handle = 0x9f9b41000000003c, type = VK_OBJECT_TYPE_IMAGE; | MessageID = 0xc120e150 | vkCreateImageView():
Using pCreateInfo->viewType VK_IMAGE_VIEW_TYPE_2D and the subresourceRange.layerCount VK_REMAINING_ARRAY_LAYERS=(17) and must 1 (try looking into VK_IMAGE_VIEW_TYPE_*_ARRAY).
The Vulkan spec states: If viewType is VK_IMAGE_VIEW_TYPE_1D, VK_IMAGE_VIEW_TYPE_2D, or VK_IMAGE_VIEW_TYPE_3D; and subresourceRange.layerCount is VK_REMAINING_ARRAY_LAYERS,
then the remaining number of layers must be 1"
Patch attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-vulkan_decode-fix-pedantic-validation-issue.patch
Type: text/x-diff
Size: 4595 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20231025/dd6beab7/attachment.patch>
More information about the ffmpeg-devel
mailing list