mirror of
https://github.com/elwrcl/intel-hard-graphics.git
synced 2026-10-31 02:48:03 +03:00
hasvk: Work around FFmpeg commit 24db09a881c9e0eb5b36dcf693c6ac17e9d56be8.
This is mostly for old versions of the VVL. Assisted-by: Claude
This commit is contained in:
1 parent
c96439dde4
commit
b0d1db9406
1 file changed
+10
@@ -2488,6 +2488,16 @@ anv_CreateImageView(VkDevice _device,
|
||||
if (iview == NULL)
|
||||
return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
|
||||
|
||||
/* Workaround for FFmpeg commit 24db09a881c9e0eb5b36dcf693c6ac17e9d56be8. */
|
||||
const VkImageUsageFlags video_coincide_usage =
|
||||
VK_IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR |
|
||||
VK_IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHR;
|
||||
if ((image->vk.usage & video_coincide_usage) == video_coincide_usage &&
|
||||
(iview->vk.usage & VK_IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR) &&
|
||||
!(iview->vk.usage & VK_IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHR)) {
|
||||
iview->vk.usage |= VK_IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHR;
|
||||
}
|
||||
|
||||
iview->image = image;
|
||||
iview->n_planes = anv_image_aspect_get_planes(iview->vk.aspects);
|
||||
|
||||
|
||||
Reference in new issue
Block a user