Repository navigation
HLE/Bink: neutralize skipped movie frame buffers to YUV black - #3245
Saksukella wants to merge 1 commit into
Conversation
…ppear immediately GitHub search `status:success` lags on newly opened PRs (dropping PRs like #3247/#3245/#3237 even when all required CheckRuns are green). Scan non-draft PRs without `status:success` (moving `mergeable` to Stage B for speed) and filter directly on live CheckRuns. Also sort newer PRs first within each priority bucket. Assisted-by: Antigravity (Gemini 4 Neon)
|
Review (diff read, not a merge-check):
Suggested verdict: not yet (drop the fallback or gate it on a known DLL version). (Review written with Claude Code, Claude Opus 5.5; the first point was traced in the code.) |
|
No other PR to main makes this change. The same problem is solved in a different way by commit f0255ae on AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
When
XCL_SKIP_BINKskips a Bink 2 movie (BinkNextFrame/BinkDoFrame*fast-advanced), the title's YUV plane buffers remain zero-filled (Y=0x00, cR=0x00, cB=0x00). Because YUV(0, 0, 0)converts to bright green (0xff008700) in the title's YUV-to-RGB shader, skipped cutscenes and logos flash or hold a solid green frame instead of black. This change tracks registered Bink frame buffers whileXCL_SKIP_BINKis active and fills skipped planes to neutral YUV black (Y=0x00,cR=0x80,cB=0x80,A=0xFF,H=0x00).What is in it
crates/xcl/src/hle/bink.rs:BinkRegisterFrameBuffersandBinkAllocateFrameBufferswhenXCL_SKIP_BINKis enabled, tracking opened handles and registeredBINKFRAMEBUFFERSdescriptors and cleaning up onBinkClose.VirtualQuerywritable check on Windows + 64 MiB cap) before filling skipped movie planes to neutral YUV black (Y=0x00,cR=0x80,cB=0x80,A=0xFF,H=0x00).BINKFRAMEBUFFERSABI offsets (bink_frame_buffers_abi_offsets) and plane neutralization / null-plane handling (neutralize_frame_buffers_fills_yuv_black_and_skips_null_planes).Tested
32.0.32029.2010), AMD Ryzen 9 7900X, 32 GB RAM, Windows 11 Pro (build26200),rustc 1.100.0 (0ef1bc386 2026-11-09); debug (tests) and release (xcl.exe).cargo test --lib -p xcl hle::bink -- --test-threads=4: 6 passed, 0 failed, 0 ignored (0.01s).cargo check --workspace: passed.Regression run
Not tested
cargo test --workspacerun (targetedhle::binksuite +cargo check --workspace+ 60sTitleID 7952987Asmoke run were executed).AI use