Skip to content

[upstream #1730] Scripts: require a cursor update when finding record writers - #398

Draft
ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1730
Draft

ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1730

Conversation

@ufoptg

@ufoptg ufoptg commented Nov 25, 2026

Copy link
Copy Markdown
Owner

record_writers.py counted a matched bounds check as a record writer even when the cursor store appeared only after a return or at a forward fallback target. Stop the scan at those boundaries and count a site only if its fast path stores the updated cursor.

What is in it

  • Restrict the scan in scripts/re/record_writers.py. Add regressions for both boundaries and document the rule.

Tested

  • Windows 11 Pro 26200, Intel i7-9750H, 32 GB RAM, NVIDIA Quadro RTX 3000 (driver 32.0.15.9706), Rust/Cargo 1.100.0 MSVC, DXC 1.9.2609.5, debug builds without debug symbols or incremental compilation.
  • Local commit c5788f8b098e099ee45914d1b83396de23434e21 and GitHub head 3c891ac137177c9e76d4ce9c96ceb2016f9adcff have the same Git tree and parent. The runs used the local commit.
  • cargo build --workspace --locked passed. cargo test --workspace --locked --no-fail-fast -- --test-threads=4 reported 863 passed, 0 failed, 42 ignored. XCL_ADAPTER=nvidia and XCL_HEAP_WINDOWS=1. The bundled title tests passed.
  • Two wave64 skips counted as passes by Cargo: gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware.
  • python -B -m unittest discover -s scripts -p 'test_*.py' passed all 17 tests. Before the fix both synthetic listings reported one false site. After it both report zero, and the existing positive cases still report one.

Regression run

  • Script, test and documentation change.

Not tested

  • Native wave64 hardware, the 42 explicitly ignored tests and real game/SDK data. No XCL_SAMPLE_* inputs were supplied.

AI use

  • Codex (gpt-6.2-sol) investigated, wrote the change and regression test, ran the tests and drafted this description.

Mirror of xcl-dev#1730 (auto-synced, do not edit).

The record-writer scan could pick up a cursor store after a return or inside the fallback block. Limit the scan to the fast path and report only completed matches.

Assisted-by: Codex (gpt-6.2-sol)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants