mirror of
https://github.com/elwrcl/intel-hard-graphics.git
synced 2026-10-31 02:48:03 +03:00
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:
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;
|
||||
|
||||
Reference in new issue
Block a user