From 083ee5051c4444934fce921e2be9106132b6af53 Mon Sep 17 00:00:00 2001 From: dancingmirrors Date: Tue, 7 Jul 2026 13:37:52 -0600 Subject: [PATCH] hasvk: Properly handle complementary field pairs. The else branch here was also unreachable. Fixes the poisoned first field in https://files.lynne.ee/testsamples/bbc2.sample.h264. Assisted-by: Claude --- src/intel/vulkan_hasvk/anv_video_h264_slice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan_hasvk/anv_video_h264_slice.c b/src/intel/vulkan_hasvk/anv_video_h264_slice.c index 4359dc5..370d25b 100644 --- a/src/intel/vulkan_hasvk/anv_video_h264_slice.c +++ b/src/intel/vulkan_hasvk/anv_video_h264_slice.c @@ -134,7 +134,7 @@ anv_h264_gather_frefs( uint8_t parities = (ri->flags.top_field_flag ? ANV_H264_PAR_TOP : 0) | (ri->flags.bottom_field_flag ? ANV_H264_PAR_BOTTOM : 0); if (parities == 0) - continue; + parities = ANV_H264_PAR_TOP | ANV_H264_PAR_BOTTOM; struct anv_h264_fref f; f.slot = (uint8_t)ref_slots[i].slotIndex;