hasvk: Rework H.264 decode into long mode.

This is why the previously added slice header parser exists.

Assisted-by: Claude
This commit is contained in:
dancingmirrors authored and elwrcl committed 2026-07-21 22:08:59 +03:00
1 parent c3fe6d4a87
commit 23b29b1f92
4 files changed
+626 -226

No files matched your search

+3 -4
View File
@@ -3209,10 +3209,9 @@ VkResult anv_AllocateMemory(
mem->dedicated_image = image;
/* Some legacy (non-modifiers) consumers need the tiling to be set on
* the BO. In this case, we have a dedicated allocation.
*/
if (image->vk.wsi_legacy_scanout) {
if (image->vk.wsi_legacy_scanout ||
(image->vk.usage & (VK_IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR |
VK_IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHR))) {
const struct isl_surf *surf = &image->planes[0].primary_surface.isl;
result = anv_device_set_bo_tiling(device, mem->bo,
surf->row_pitch_B,