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
This commit is contained in:
dancingmirrors authored and elwrcl committed 2026-07-21 22:25:26 +03:00
1 parent 22ce819de6
commit 083ee5051c
1 file changed
+1 -1
@@ -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;