From 7ae85c54fc08ac67c8066a4748a391fbb14aa0a5 Mon Sep 17 00:00:00 2001 From: claude-noether Date: Thu, 14 May 2026 08:39:14 +0000 Subject: [PATCH] =?UTF-8?q?iter17=20=CE=B1-20=20(test):=20MIN=5FCAP=5FPOOL?= =?UTF-8?q?=2024=20->=2011=20to=20match=20kdirect?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Quick discriminator: if pool depth affects rkvdec's per-codec state machine, reducing libva's pool to kdirect's ~11 might change Bug 4/5/6 hashes. Reverts to 24 if test shows no change or regression. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/cap_pool.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/cap_pool.h b/src/cap_pool.h index a1bf6a5..3aba400 100644 --- a/src/cap_pool.h +++ b/src/cap_pool.h @@ -67,7 +67,15 @@ #include /* for VIDEO_MAX_PLANES */ -#define MIN_CAP_POOL 24 +/* + * iter17 α-20: reduced from 24 to 11 as a test — matches kdirect + * (ffmpeg-v4l2request) CAPTURE pool depth on the same fixture. iter15 + * ioctl-sequence diff showed kdirect issues CREATE_BUFS count=1 × 11 + * while libva did CREATE_BUFS count=24. If pool depth or buffer-index + * range affects rkvdec's per-codec state machine, this is a discriminator. + * Revert to 24 if 11 is too tight for mpv-16-surface continuous playback. + */ +#define MIN_CAP_POOL 11 enum cap_slot_state { CAP_SLOT_FREE = 0, /* available for a new decode acquisition */