PR permission #717

Open
opened 2026-11-26 04:13:52 +00:00 by github-bot · 21 comments
Owner

@⁠draggygaggy-maker on GitHub · 2026-11-24 07:43 UTC · original

Hey Marvisak!

I'd like to contribute code to VIctory, but the New pull request button is disabled for my account.

I've already set up the Rust development environment and successfully run all 264 non-ignored workspace tests. I've also shared Windows/NVIDIA test results in #181.

Is there a process for getting permission to submit pull requests, or another preferred contribution method?

GitHub: @⁠draggygaggy-maker

Thanks!

**@⁠draggygaggy-maker** on GitHub · 2026-11-24 07:43 UTC · [original](https://github.com/Marvisak/VIctory/issues/717) Hey Marvisak! I'd like to contribute code to VIctory, but the **New pull request** button is disabled for my account. I've already set up the Rust development environment and successfully run all 264 non-ignored workspace tests. I've also shared Windows/NVIDIA test results in #181. Is there a process for getting permission to submit pull requests, or another preferred contribution method? GitHub: @⁠draggygaggy-maker Thanks!
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:13:52 +00:00
Author
Owner

@⁠ifBars on GitHub · 2026-11-24 07:46 UTC · original

@⁠draggygaggy-maker As far as I am aware, PRs are closed for everyone at the moment due to the overwhelming amount of them. Nothing you can do but wait.

**@⁠ifBars** on GitHub · 2026-11-24 07:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/717#issuecomment-7125348042) @⁠draggygaggy-maker As far as I am aware, PRs are closed for everyone at the moment due to the overwhelming amount of them. Nothing you can do but wait.
Author
Owner

@⁠Zilumz1 on GitHub · 2026-11-24 08:25 UTC · original

@⁠Marvisak I'd also like PR access once you reopen it, or collaborator access if you're adding people to help with verification.

What I can offer is a hardware configuration that isn't otherwise covered: Windows 10 Pro + AMD Radeon RX 580 (Polaris / GCN4), driver 31.0.21925.1001. That's Windows 10 without shader model 6.6 by default, on pre-RDNA AMD hardware.

So far:

  • Built the workspace and ran cargo test --workspace on this machine. Everything passes except the eight GPU valu_tests, which need SM 6.6 (the #84 case).
  • Tested #486 here and reported the results: 62 passed / 7 failed → 69 passed / 0 failed with the Agility SDK 1.620.2 runtime.

Until PRs reopen, I'm glad to keep testing open PRs on this setup, especially Windows 10 and AMD ones, so you have hardware results before reviewing. I won't open duplicates of existing work.

AI-assisted; the test results I post are real runs on my machine.

**@⁠Zilumz1** on GitHub · 2026-11-24 08:25 UTC · [original](https://github.com/Marvisak/VIctory/issues/717#issuecomment-7126119760) @⁠Marvisak I'd also like PR access once you reopen it, or collaborator access if you're adding people to help with verification. What I can offer is a hardware configuration that isn't otherwise covered: **Windows 10 Pro + AMD Radeon RX 580 (Polaris / GCN4), driver 31.0.21925.1001**. That's Windows 10 without shader model 6.6 by default, on pre-RDNA AMD hardware. So far: - Built the workspace and ran `cargo test --workspace` on this machine. Everything passes except the eight GPU `valu_tests`, which need SM 6.6 (the #84 case). - Tested #486 here and reported the results: [62 passed / 7 failed → 69 passed / 0 failed](https://git.gtahub.st/github/Marvisak--VIctory/pulls/486) with the Agility SDK 1.620.2 runtime. Until PRs reopen, I'm glad to keep testing open PRs on this setup, especially Windows 10 and AMD ones, so you have hardware results before reviewing. I won't open duplicates of existing work. AI-assisted; the test results I post are real runs on my machine.
Author
Owner

@⁠EatCodeSleep2 on GitHub · 2026-11-24 08:33 UTC · original

@⁠Marvisak add me as a collaborator. I have RTX 5070 and 64GB DDR5 to offer

**@⁠EatCodeSleep2** on GitHub · 2026-11-24 08:33 UTC · [original](https://github.com/Marvisak/VIctory/issues/717#issuecomment-7126286904) @⁠Marvisak add me as a collaborator. I have RTX 5070 and 64GB DDR5 to offer
Author
Owner

@⁠Revens2 on GitHub · 2026-11-24 08:39 UTC · original

Same situation as above: "New pull request" is disabled for my account, so I'd like to know which route you prefer.

What I can bring:

  • Hardware/test coverage that isn't in the current results: Windows 11, RTX 5070 (Blackwell), NVIDIA driver 32.0.16.2124. I can run open PRs and report Tested <commit> on RTX 5070 / 32.0.16.2124 / Windows 11: pass|fail.
  • cargo test --workspace run locally, cargo xtask policy clean, no game data in anything I post.
  • Bug reports from real runs of the title, asset policy respected (no dumps, no captures, no extracted assets).

Option (a): you re-enable PRs for my account (github.com/Revens2).
Option (b): I fork, push a branch, and link it in the relevant issue, as others are doing right now.

Either works for me. All results I post are real runs on my machine; the analysis is AI-assisted.

**@⁠Revens2** on GitHub · 2026-11-24 08:39 UTC · [original](https://github.com/Marvisak/VIctory/issues/717#issuecomment-7126400989) Same situation as above: "New pull request" is disabled for my account, so I'd like to know which route you prefer. What I can bring: - Hardware/test coverage that isn't in the current results: Windows 11, RTX 5070 (Blackwell), NVIDIA driver 32.0.16.2124. I can run open PRs and report `Tested <commit> on RTX 5070 / 32.0.16.2124 / Windows 11: pass|fail`. - `cargo test --workspace` run locally, `cargo xtask policy` clean, no game data in anything I post. - Bug reports from real runs of the title, asset policy respected (no dumps, no captures, no extracted assets). Option (a): you re-enable PRs for my account (github.com/Revens2). Option (b): I fork, push a branch, and link it in the relevant issue, as others are doing right now. Either works for me. All results I post are real runs on my machine; the analysis is AI-assisted.
Author
Owner

@⁠undeadhuman37 on GitHub · 2026-11-24 08:54 UTC · original

Same question here. I'd like to contribute and have tested fixes ready on my fork (undeadhuman37/VIctory). @⁠Marvisak, when PRs reopen, or is there another way you'd like fixes sent (pull a branch, patch in an issue, or a short list of approved contributors)? Happy to wait, and I will pick issues that have no open PR. My work is written with AI assistance (Claude Code) and tested locally; nothing from the game goes in the repo.

**@⁠undeadhuman37** on GitHub · 2026-11-24 08:54 UTC · [original](https://github.com/Marvisak/VIctory/issues/717#issuecomment-7126711465) Same question here. I'd like to contribute and have tested fixes ready on my fork (undeadhuman37/VIctory). @⁠Marvisak, when PRs reopen, or is there another way you'd like fixes sent (pull a branch, patch in an issue, or a short list of approved contributors)? Happy to wait, and I will pick issues that have no open PR. My work is written with AI assistance (Claude Code) and tested locally; nothing from the game goes in the repo.
Author
Owner

@⁠RKouchoo on GitHub · 2026-11-24 09:28 UTC · original

i dont know if you guys realise how much work 450 PR's actually is even with AI assistance

**@⁠RKouchoo** on GitHub · 2026-11-24 09:28 UTC · [original](https://github.com/Marvisak/VIctory/issues/717#issuecomment-7127453115) i dont know if you guys realise how much work 450 PR's actually is even with AI assistance
Author
Owner

@⁠Revens2 on GitHub · 2026-11-24 09:42 UTC · original

All the more reason to let more people join the project so we can filter and review PRs .

**@⁠Revens2** on GitHub · 2026-11-24 09:42 UTC · [original](https://github.com/Marvisak/VIctory/issues/717#issuecomment-7127769522) All the more reason to let more people join the project so we can filter and review PRs .
Author
Owner

@⁠Revens2 on GitHub · 2026-11-24 10:52 UTC · original

The stand-in gamepad in crates/victory-hle/src/modules/gameinput.rs maps
KeyState.virtual_key to pad buttons. A virtual key is the letter the key
types, so the table only holds on a US layout: on AZERTY the key labelled
Z sits where QWERTY has W, and Q where QWERTY has A. The left stick
therefore moves on the wrong physical keys and the two triggers swap.

Scan codes name the physical key, so one table serves every layout.

What changed:

  • FALLBACK_BUTTONS becomes [(u32, u32); 14], scan code to button, and
    fallback matches on KeyState.scan_code instead of virtual_key.
  • The virtual-key letters stay in comments so the table still reads.
  • A test holds z + q on an AZERTY board and expects the left stick, and
    checks that the key labelled W lands on the left trigger's physical key.

Test: cargo test -p victory-hle (95 passed), including the new case
the_stand_in_pad_reads_physical_keys_not_layout_letters.

Branch (based on main at ffe310e):
https://github.com/Revens2/VIctory/tree/fix/hle-keyboard-scan-codes

No game data, no title log, no local path in this report.

**@⁠Revens2** on GitHub · 2026-11-24 10:52 UTC · [original](https://github.com/Marvisak/VIctory/issues/717#issuecomment-7129364382) The stand-in gamepad in `crates/victory-hle/src/modules/gameinput.rs` maps `KeyState.virtual_key` to pad buttons. A virtual key is the letter the key types, so the table only holds on a US layout: on AZERTY the key labelled `Z` sits where QWERTY has `W`, and `Q` where QWERTY has `A`. The left stick therefore moves on the wrong physical keys and the two triggers swap. Scan codes name the physical key, so one table serves every layout. What changed: - `FALLBACK_BUTTONS` becomes `[(u32, u32); 14]`, scan code to button, and `fallback` matches on `KeyState.scan_code` instead of `virtual_key`. - The virtual-key letters stay in comments so the table still reads. - A test holds `z` + `q` on an AZERTY board and expects the left stick, and checks that the key labelled `W` lands on the left trigger's physical key. Test: `cargo test -p victory-hle` (95 passed), including the new case `the_stand_in_pad_reads_physical_keys_not_layout_letters`. Branch (based on `main` at ffe310e): https://github.com/Revens2/VIctory/tree/fix/hle-keyboard-scan-codes No game data, no title log, no local path in this report.
Author
Owner

@⁠Pablo-Barros on GitHub · 2026-11-24 10:55 UTC · original

@⁠Marvisak I'd like PR access when it reopens, or to help with verification in the meantime.

What I can offer is hardware you cannot test on yourself: Windows 11 Pro 26300, RTX 3070 (Ampere, no 64-lane waves), Ryzen 7 7800X3D, 31 GB RAM, and the title (1.0.2.1, b99f876b74d4a77f). On main ffe310e, whole title, the 320 compute pipelines this card refuses are exactly the 320 emitted modules that declare WaveSize(64), which a Radeon runs.

Ready and waiting for a PR:

  • victory compare, an A/B of two translate --list outputs program by program: #787. One commit on main ffe310e (branch); both of CI's clippy commands clean, cargo test --workspace --locked 347 passed, 0 failed.
  • #180 measured on this card against the current main, with that tool: 528 pipelines gained, 12 lost on a 32-lane host, 0 validations lost (report).
  • My specs and baseline are in #49 (report).

Until PRs reopen I'll keep verifying the NVIDIA-relevant ones on the real corpus and posting counts there, and I won't open duplicates of existing work.

AI use: the reports were produced with an agent (Claude Code) at my request; the builds, runs and counts are from this machine, and nothing from the game is posted.

**@⁠Pablo-Barros** on GitHub · 2026-11-24 10:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/717#issuecomment-7129415409) @⁠Marvisak I'd like PR access when it reopens, or to help with verification in the meantime. What I can offer is hardware you cannot test on yourself: Windows 11 Pro 26300, RTX 3070 (Ampere, no 64-lane waves), Ryzen 7 7800X3D, 31 GB RAM, and the title (1.0.2.1, `b99f876b74d4a77f`). On `main` `ffe310e`, whole title, the 320 compute pipelines this card refuses are exactly the 320 emitted modules that declare `WaveSize(64)`, which a Radeon runs. Ready and waiting for a PR: - `victory compare`, an A/B of two `translate --list` outputs program by program: #787. One commit on `main` `ffe310e` ([branch](https://github.com/Pablo-Barros/VIctory/tree/cli/translate-compare)); both of CI's clippy commands clean, `cargo test --workspace --locked` 347 passed, 0 failed. - #180 measured on this card against the current `main`, with that tool: 528 pipelines gained, 12 lost on a 32-lane host, 0 validations lost ([report](https://git.gtahub.st/github/Marvisak--VIctory/pulls/180)). - My specs and baseline are in #49 ([report](https://git.gtahub.st/github/Marvisak--VIctory/issues/49)). Until PRs reopen I'll keep verifying the NVIDIA-relevant ones on the real corpus and posting counts there, and I won't open duplicates of existing work. AI use: the reports were produced with an agent (Claude Code) at my request; the builds, runs and counts are from this machine, and nothing from the game is posted.
Author
Owner

@⁠slint6614-dev on GitHub · 2026-11-24 11:01 UTC · original

@⁠Marvisak I'd like PR access when it reopens (or collaborator access for verification), in case it helps.

What I can offer is AMD hardware with 64-lane waves on both console-relevant generations: an RX 9070 (RDNA4) and a Ryzen 9600X iGPU (RDNA2, gfx1036, close to the console's GPU), on Windows 11, with the full retail shader pack for corpus runs.

What I've been doing in the meantime, without opening PRs:

  • translate --validate --pipelines on the full pack for about 100 open PRs, each merged with current main, with counts posted on each PR. For example: #612 cost 323 validated programs after it merged, #586 loses 591 mesh programs, and #542/#437 crash the pipeline path with 0xC0000005 on AMD.
  • AMD hardware runs of the valu_tests with negative controls (fix reverted, test kept) on both GPUs, e.g. #706, #448, #284, #426 and #682. Several of these showed that a test passes without its fix, or fails for a reason other than the one being tested.

No game data is ever posted, only counts.

**@⁠slint6614-dev** on GitHub · 2026-11-24 11:01 UTC · [original](https://github.com/Marvisak/VIctory/issues/717#issuecomment-7129550084) @⁠Marvisak I'd like PR access when it reopens (or collaborator access for verification), in case it helps. What I can offer is AMD hardware with 64-lane waves on both console-relevant generations: an **RX 9070 (RDNA4)** and a **Ryzen 9600X iGPU (RDNA2, gfx1036, close to the console's GPU)**, on Windows 11, with the full retail shader pack for corpus runs. What I've been doing in the meantime, without opening PRs: - `translate --validate --pipelines` on the full pack for about 100 open PRs, each merged with current main, with counts posted on each PR. For example: #612 cost 323 validated programs after it merged, #586 loses 591 mesh programs, and #542/#437 crash the pipeline path with 0xC0000005 on AMD. - AMD hardware runs of the `valu_tests` with negative controls (fix reverted, test kept) on both GPUs, e.g. #706, #448, #284, #426 and #682. Several of these showed that a test passes without its fix, or fails for a reason other than the one being tested. No game data is ever posted, only counts.
Author
Owner

@⁠JFIREonFIRE on GitHub · 2026-11-24 11:01 UTC · original

@⁠Marvisak I'd like collaborator access if you add people to help with verification and review, or PR access whenever it reopens.

What I can offer:

  • Hardware: Windows 11, RTX 3090 (Ampere), i9-9900K, 32 GB RAM. The title is 1.0.2.1 (b99f876b74d4a77f). It boots on main to the account picker on this card.
  • Open PRs:
    • #618, appended input-element offsets aligned as D3D12 does.
    • #633, GetModuleFileNameA in the ANSI code page.
  • Branches waiting for a PR: posted as issues with branch links, for example #792, each with a regression test and passing both clippy configurations from CI.
  • I can test open PRs on this card and report pass or fail with the commit and driver.

My work is AI-assisted (Claude Code) and tested locally. Nothing from the game goes in the repo.

**@⁠JFIREonFIRE** on GitHub · 2026-11-24 11:01 UTC · [original](https://github.com/Marvisak/VIctory/issues/717#issuecomment-7129561555) @⁠Marvisak I'd like collaborator access if you add people to help with verification and review, or PR access whenever it reopens. What I can offer: - **Hardware:** Windows 11, RTX 3090 (Ampere), i9-9900K, 32 GB RAM. The title is 1.0.2.1 (`b99f876b74d4a77f`). It boots on `main` to the account picker on this card. - **Open PRs:** - #618, appended input-element offsets aligned as D3D12 does. - #633, `GetModuleFileNameA` in the ANSI code page. - **Branches waiting for a PR:** posted as issues with branch links, for example #792, each with a regression test and passing both clippy configurations from CI. - I can test open PRs on this card and report pass or fail with the commit and driver. My work is AI-assisted (Claude Code) and tested locally. Nothing from the game goes in the repo.
Author
Owner

@⁠MartinIndra02 on GitHub · 2026-11-24 11:47 UTC · original

@⁠Marvisak Leaving a short summary here for when PRs reopen (or if you add collaborators for review/verification):

  • Hardware: Windows 11 Pro 26200, Ryzen 7 5800X3D, NVIDIA GeForce RTX 3080 (10 GB, driver 621.24, 32-32 wave lanes), 32 GB RAM, retail 1.0.2.1 dump (local testing only; zero game data posted).
  • Ready main-based (ffe310e) branches on MartinIndra02/VIctory (all tested on RTX 3080 + WARP + D3D12 Debug Layer, both CI clippy configs -D warnings, and cargo xtask policy):
    • #783 — perf/gpu-copy-mapped-region-fallback (61474f6): race-safe per-region VirtualQuery + ReadProcessMemory/WriteProcessMemory fallback reusing partial done bytes (in-title A/B by @rocobalt1: -29% copies, -19% frame time).
    • #584 — fix/shader-heap-bounds-clamp (05c681c): runtime host-heap bounds clamp (b0 in HEAP_LIMITS_SPACE = 4) to a dedicated permanently-null guard slot covering both title and dynamic slots (following up on the AMD RDNA3 >1M heap diagnosis confirmed by @d1ll3x3).
    • #757 — feat/gpu-multi-arg-execute-indirect (94ecc4e): multi-argument ExecuteIndirect with root constants, arg_offset clamping, and guest root-constant cleanup after review feedback.
    • #771 — feat/gpu-uav-clears (d31c482): ClearUnorderedAccessViewUint/Float for buffer (raw/typed) and texture UAVs.
  • Other contributions:
    • Opened r4tedx/VIctory#9 fixing s_*_saveexec / s_*_wrexec SCC lowering with a GPU regression test.
    • RTX 3080 full-corpus / in-game A/B and verification reports on #439, #584, #688, #704, #709, #710, #772.

No game data used. AI-assisted; all builds, tests, and benchmarks executed on my machine.

**@⁠MartinIndra02** on GitHub · 2026-11-24 11:47 UTC · [original](https://github.com/Marvisak/VIctory/issues/717#issuecomment-7130564741) @⁠Marvisak Leaving a short summary here for when PRs reopen (or if you add collaborators for review/verification): - **Hardware:** Windows 11 Pro 26200, Ryzen 7 5800X3D, **NVIDIA GeForce RTX 3080 (10 GB, driver `621.24`, 32-32 wave lanes)**, 32 GB RAM, retail 1.0.2.1 dump (local testing only; zero game data posted). - **Ready `main`-based (`ffe310e`) branches on `MartinIndra02/VIctory`** (all tested on RTX 3080 + WARP + D3D12 Debug Layer, both CI clippy configs `-D warnings`, and `cargo xtask policy`): - `#783` — [`perf/gpu-copy-mapped-region-fallback`](https://github.com/MartinIndra02/VIctory/tree/perf/gpu-copy-mapped-region-fallback) (`61474f6`): race-safe per-region `VirtualQuery` + `ReadProcessMemory`/`WriteProcessMemory` fallback reusing partial `done` bytes (in-title A/B by `@rocobalt1`: `-29%` copies, `-19%` frame time). - `#584` — [`fix/shader-heap-bounds-clamp`](https://github.com/MartinIndra02/VIctory/tree/fix/shader-heap-bounds-clamp) (`05c681c`): runtime host-heap bounds clamp (`b0` in `HEAP_LIMITS_SPACE = 4`) to a dedicated permanently-null guard slot covering both title and dynamic slots (following up on the AMD RDNA3 >1M heap diagnosis confirmed by `@d1ll3x3`). - `#757` — [`feat/gpu-multi-arg-execute-indirect`](https://github.com/MartinIndra02/VIctory/tree/feat/gpu-multi-arg-execute-indirect) (`94ecc4e`): multi-argument `ExecuteIndirect` with root constants, `arg_offset` clamping, and guest root-constant cleanup after review feedback. - `#771` — [`feat/gpu-uav-clears`](https://github.com/MartinIndra02/VIctory/tree/feat/gpu-uav-clears) (`d31c482`): `ClearUnorderedAccessViewUint`/`Float` for buffer (raw/typed) and texture UAVs. - **Other contributions:** - Opened [r4tedx/VIctory#9](https://github.com/r4tedx/VIctory/pull/9) fixing `s_*_saveexec` / `s_*_wrexec` `SCC` lowering with a GPU regression test. - RTX 3080 full-corpus / in-game A/B and verification reports on `#439`, `#584`, `#688`, `#704`, `#709`, `#710`, `#772`. *No game data used. AI-assisted; all builds, tests, and benchmarks executed on my machine.*
Author
Owner

@⁠bodnjenie14 on GitHub · 2026-11-24 12:21 UTC · original · edited 2026-11-24 12:23 UTC

@⁠Marvisak I'd like PR access when it reopens (or collaborator access for verification), in case it helps.

I allready commited and got more in the pipeline

**@⁠bodnjenie14** on GitHub · 2026-11-24 12:21 UTC · [original](https://github.com/Marvisak/VIctory/issues/717#issuecomment-7131334975) · edited 2026-11-24 12:23 UTC @⁠Marvisak I'd like PR access when it reopens (or collaborator access for verification), in case it helps. I allready commited and got more in the pipeline
Author
Owner

@⁠Beeak on GitHub · 2026-11-24 13:19 UTC · original

Leaving a ready PR branch here since PR creation is currently restricted:

Problem

ImportLibrary::parse in crates/victory-pe/src/implib.rs had no unit test coverage for parsing COFF import libraries (.lib), covering short-format import headers (ImportHeader), import name/ordinal forms, import kinds (Code, Data, Const), non-import archive members, or malformed archive error handling.

Change

Added a #[cfg(test)] mod tests module in crates/victory-pe/src/implib.rs (+152 lines, no production code modified) with small in-memory helpers to construct synthetic COFF archives (!<arch>\n) and short-format import objects (sig1 = 0x0000, sig2 = 0xFFFF):

  • parses_name_imports_all_kinds_sorted_and_deduped: verifies ImportSymbol::Name (hint: 0 normalization), all three LibImportKind variants (Code, Data, Const), sorting, and deduplication.
  • parses_ordinal_imports: verifies ImportSymbol::Ordinal parsing across Code and Data imports.
  • counts_non_import_members_as_other: verifies non-import archive members increment other_members and tests 2-byte archive member alignment padding.
  • rejects_malformed_archives: verifies Err on empty input, invalid archive magic, truncated member headers, and member sizes exceeding available bytes.

Verification

  • Environment: Windows, rustc 1.98.1 (48a229cea 2026-09-01)
  • Checks:
    • cargo test -p victory-pe: 11 passed, 0 failed, 0 ignored (unit tests); 0 doc-tests
    • cargo clippy -p victory-pe --all-targets --locked -- -D warnings: clean
    • cargo clippy -p victory-pe --all-targets --all-features --locked -- -D warnings: clean
    • rustfmt --edition 2024 --check crates/victory-pe/src/implib.rs: clean
    • asset-policy pre-commit hook: 1 files ok

All input data was synthetic. No game files were used.

AI-assisted with Cline.

**@⁠Beeak** on GitHub · 2026-11-24 13:19 UTC · [original](https://github.com/Marvisak/VIctory/issues/717#issuecomment-7132665244) Leaving a ready PR branch here since PR creation is currently restricted: - **Branch**: [`Beeak/VIctory@tests/pe-implib-parse`](https://github.com/Beeak/VIctory/tree/tests/pe-implib-parse) (commit `97c98d2` on top of `ffe310e`) - **Compare**: https://github.com/Marvisak/VIctory/compare/main...Beeak:VIctory:tests/pe-implib-parse - **PR Title**: `Loader tests: add unit tests for ImportLibrary::parse` ## Problem `ImportLibrary::parse` in `crates/victory-pe/src/implib.rs` had no unit test coverage for parsing COFF import libraries (`.lib`), covering short-format import headers (`ImportHeader`), import name/ordinal forms, import kinds (`Code`, `Data`, `Const`), non-import archive members, or malformed archive error handling. ## Change Added a `#[cfg(test)] mod tests` module in `crates/victory-pe/src/implib.rs` (+152 lines, no production code modified) with small in-memory helpers to construct synthetic COFF archives (`!<arch>\n`) and short-format import objects (`sig1 = 0x0000`, `sig2 = 0xFFFF`): - `parses_name_imports_all_kinds_sorted_and_deduped`: verifies `ImportSymbol::Name` (`hint: 0` normalization), all three `LibImportKind` variants (`Code`, `Data`, `Const`), sorting, and deduplication. - `parses_ordinal_imports`: verifies `ImportSymbol::Ordinal` parsing across `Code` and `Data` imports. - `counts_non_import_members_as_other`: verifies non-import archive members increment `other_members` and tests 2-byte archive member alignment padding. - `rejects_malformed_archives`: verifies `Err` on empty input, invalid archive magic, truncated member headers, and member sizes exceeding available bytes. ## Verification - **Environment**: Windows, `rustc 1.98.1 (48a229cea 2026-09-01)` - **Checks**: - `cargo test -p victory-pe`: 11 passed, 0 failed, 0 ignored (unit tests); 0 doc-tests - `cargo clippy -p victory-pe --all-targets --locked -- -D warnings`: clean - `cargo clippy -p victory-pe --all-targets --all-features --locked -- -D warnings`: clean - `rustfmt --edition 2024 --check crates/victory-pe/src/implib.rs`: clean - `asset-policy` pre-commit hook: `1 files ok` All input data was synthetic. No game files were used. AI-assisted with Cline.
Author
Owner

@⁠DaniiL35 on GitHub · 2026-11-24 13:46 UTC · original

Leaving a ready contribution and verification record for when PR access is reopened or reviewed:

• Ready PR Branch on Fork: DaniiL35/VIctory@fix/config-xdg-data-dir (commit 5fcfd91 on top of ffe310e)

  • Issue: #899
  • Compare: https://github.com/Marvisak/VIctory/compare/main...DaniiL35:VIctory:fix/config-xdg-data-dir
  • Fix: Resolves default data_dir using XDG_DATA_HOME / $HOME/.local/share before cache locations on non-Windows hosts, enforcing the invariant that persistent saves/storage are never placed inside volatile cache directories (~/.cache).
  • Tests: 3 new synthetic unit tests in crates/victory-core/src/config.rs.
  • Policy: cargo xtask policy clean, Rust 2024 formatted, zero game data.

• Independent Verification & Review:

  • Reviewed and verified #890 (32e7e81): Windows MoveFileExW sharing violation analysis on concurrent cache entry publication and staging cleanup.

GitHub account: @⁠DaniiL35
AI-assisted with Antigravity.

**@⁠DaniiL35** on GitHub · 2026-11-24 13:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/717#issuecomment-7133319528) Leaving a ready contribution and verification record for when PR access is reopened or reviewed: • **Ready PR Branch on Fork**: [DaniiL35/VIctory@fix/config-xdg-data-dir](https://github.com/DaniiL35/VIctory/tree/fix/config-xdg-data-dir) (commit `5fcfd91` on top of `ffe310e`) - **Issue**: #899 - **Compare**: https://github.com/Marvisak/VIctory/compare/main...DaniiL35:VIctory:fix/config-xdg-data-dir - **Fix**: Resolves default `data_dir` using `XDG_DATA_HOME` / `$HOME/.local/share` before cache locations on non-Windows hosts, enforcing the invariant that persistent saves/storage are never placed inside volatile cache directories (`~/.cache`). - **Tests**: 3 new synthetic unit tests in `crates/victory-core/src/config.rs`. - **Policy**: `cargo xtask policy` clean, Rust 2024 formatted, zero game data. • **Independent Verification & Review**: - Reviewed and verified #890 (`32e7e81`): Windows `MoveFileExW` sharing violation analysis on concurrent cache entry publication and staging cleanup. GitHub account: @⁠DaniiL35 AI-assisted with Antigravity.
Author
Owner

@⁠DaniiL35 on GitHub · 2026-11-24 13:55 UTC · original

Adding our second and third ready PR branches to the contributor record:

• Branch: DaniiL35/VIctory@fix/sgd5-checked-record-bounds (commit 7a5db56 on top of ffe310e)

• Branch: DaniiL35/VIctory@fix/xma-bits-shift-overflow (commit 0c38285 on top of ffe310e)

All branches comply strictly with Rule #1 (Asset Policy: text-only, synthetic tests, no game data), formatted with Rust 2024 edition, and pass cargo xtask policy.

GitHub account: @⁠DaniiL35
AI-assisted with Antigravity.

**@⁠DaniiL35** on GitHub · 2026-11-24 13:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/717#issuecomment-7133536578) Adding our second and third ready PR branches to the contributor record: • **Branch**: [DaniiL35/VIctory@fix/sgd5-checked-record-bounds](https://github.com/DaniiL35/VIctory/tree/fix/sgd5-checked-record-bounds) (commit `7a5db56` on top of `ffe310e`) - **Issue**: #905 - **Compare**: https://github.com/Marvisak/VIctory/compare/main...DaniiL35:VIctory:fix/sgd5-checked-record-bounds - **Fix**: Replaces unchecked addition and raw slice indexing in `crates/victory-game/src/sgd5.rs` (`record` and `name_before`) with `checked_add`/`checked_sub` and bounds-checked `.get()`. Prevents panic on malformed or truncated shader archives. Added synthetic test `rejects_boundary_and_malformed_records`. • **Branch**: [DaniiL35/VIctory@fix/xma-bits-shift-overflow](https://github.com/DaniiL35/VIctory/tree/fix/xma-bits-shift-overflow) (commit `0c38285` on top of `ffe310e`) - **Issue**: #907 - **Compare**: https://github.com/Marvisak/VIctory/compare/main...DaniiL35:VIctory:fix/xma-bits-shift-overflow - **Fix**: Guards `Bits::signed(n)` and `Bits::read(n)` in `crates/victory-formats/src/xma.rs` against shift overflow / underflow when `n == 0` or `n >= 32` (`<< 32` overflow panic). Added synthetic test `bitstream_handles_zero_and_boundary_bit_widths`. All branches comply strictly with Rule #1 (Asset Policy: text-only, synthetic tests, no game data), formatted with Rust 2024 edition, and pass `cargo xtask policy`. GitHub account: @⁠DaniiL35 AI-assisted with Antigravity.
Author
Owner

@⁠P2xe1 on GitHub · 2026-11-24 14:11 UTC · original

The exact text is "An owner of this repository has limited the ability to open a pull request to users that are collaborators on this repository." — one repository setting, not a per-user block, and it looks like it was turned on today.

Evidence: merges kept landing until 09:55 (#566 and #307, both merged at 09:55:10), and every outside contributor has been refused since — #820, #838, #846 and this issue. A branch that compares cleanly against main cannot be opened either: P2xe1:shader/v-cvt-f16-from-u16-i16-test reports "Able to merge", ahead_by = 1, behind_by = 0, one file, +139/-0, and the compare page shows the restriction instead of the form.

For @⁠Marvisak: the switch is Settings → General → Features → pull request access — "restrict pull requests to collaborators" is one of the two options GitHub added in February 2026:

Setting it back to "anyone" restores PR creation for everyone at once, with no change to the collaborator list. The alternative is adding people one by one under Settings → Collaborators, which is 400+ branches of backlog at the moment.

While it is on, patches keep arriving as fork branches linked from issue comments (for example #866), which works for cherry-picking but cannot be reviewed, commented on, or updated with the PR tooling.

**@⁠P2xe1** on GitHub · 2026-11-24 14:11 UTC · [original](https://github.com/Marvisak/VIctory/issues/717#issuecomment-7133971040) The exact text is *"An owner of this repository has limited the ability to open a pull request to users that are collaborators on this repository."* — one repository setting, not a per-user block, and it looks like it was turned on today. Evidence: merges kept landing until `09:55` (#566 and #307, both merged at 09:55:10), and every outside contributor has been refused since — #820, #838, #846 and this issue. A branch that compares cleanly against `main` cannot be opened either: `P2xe1:shader/v-cvt-f16-from-u16-i16-test` reports *"Able to merge"*, `ahead_by = 1`, `behind_by = 0`, one file, +139/-0, and the compare page shows the restriction instead of the form. For @⁠Marvisak: the switch is **Settings → General → Features → pull request access** — "restrict pull requests to collaborators" is one of the two options GitHub added in February 2026: - changelog: https://github.blog/changelog/2026-02-04-new-repository-settings-for-configuring-pull-request-access/ - docs: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/disabling-pull-requests Setting it back to "anyone" restores PR creation for everyone at once, with no change to the collaborator list. The alternative is adding people one by one under **Settings → Collaborators**, which is 400+ branches of backlog at the moment. While it is on, patches keep arriving as fork branches linked from issue comments (for example #866), which works for cherry-picking but cannot be reviewed, commented on, or updated with the PR tooling.
Author
Owner

@⁠DaniiL35 on GitHub · 2026-11-24 14:43 UTC · original

Summary of Contributions from @⁠DaniiL35

While collaborator PR access is in queue, here is the consolidated record of our 3 ready-to-merge PR branches on fork and 10 independent verification reviews on current main (ffe310e):

1. Ready-to-Merge PR Branches (Clean on Fork DaniiL35/VIctory)

  1. fix/config-xdg-data-dir (Issue #899):
    • Branch: DaniiL35/VIctory@fix/config-xdg-data-dir (commit 5fcfd91)
    • Compare: diff
    • Protects persistent saves/storage from volatile cache cleanup on non-Windows/macOS hosts using XDG_DATA_HOME / ~/.local/share. Added 3 unit tests.
  2. fix/sgd5-checked-record-bounds (Issue #905):
    • Branch: DaniiL35/VIctory@fix/sgd5-checked-record-bounds (commit 7a5db56)
    • Compare: diff
    • Bounds-check hardening in crates/victory-game/src/sgd5.rs preventing panic on malformed or boundary shader archives.
  3. fix/xma-bits-shift-overflow (Issue #907):
    • Branch: DaniiL35/VIctory@fix/xma-bits-shift-overflow (commit 0c38285)
    • Compare: diff
    • Guards Bits::signed(n) and Bits::read(n) against shift overflow / underflow panics in audio decoding.

2. Independent Technical Verification Audits

  • #890: Verified MoveFileExW ERROR_SHARING_VIOLATION concurrency handling during cache publication and staging cleanup.
  • #900: Verified Direct3D 12 COM vtable ABI slot 37 (0x128 - GetDeviceRemovedReason).
  • #897: Audited guest memory isolation, zero-count safety, and COM refcounting.
  • #793: Evaluated APFS symlink path canonicalization vs Windows verbatim paths, and caught a critical CI compiler error in commit b05bc7c (unused fn normalize triggering -D dead-code).
  • #892 & #90: Audited cross-platform build gating in victory-gpu (resolving E0425 host_resource) and synthetic PE DLL fixtures for non-Windows (Linux / macOS Darwin).
  • #912: Audited D3D12 buffer descriptor handoff and device removal invariants on zero-element views.
  • #914: Audited RDNA2 misc vector lowering (exp pos1.z), clip distance shift, and DXIL feature flag emission.
  • #938: Audited PE TLS directory bounds and stack schedule parsing, identifying a subtle pointer arithmetic overflow edge case.
  • #931: Audited symmetric COM AddRef saturation in object.rs to prevent u32::MAX -> 0 wrapping.

All contributions adhere strictly to Rule #1 (Asset Policy: 100% synthetic in-memory fixtures, zero game assets, <512 KiB diffs) and Rust 2024 edition.

GitHub account: @⁠DaniiL35
AI-assisted with Antigravity.

**@⁠DaniiL35** on GitHub · 2026-11-24 14:43 UTC · [original](https://github.com/Marvisak/VIctory/issues/717#issuecomment-7134850801) ### Summary of Contributions from @⁠DaniiL35 While collaborator PR access is in queue, here is the consolidated record of our 3 ready-to-merge PR branches on fork and 10 independent verification reviews on current `main` (`ffe310e`): #### 1. Ready-to-Merge PR Branches (Clean on Fork `DaniiL35/VIctory`) 1. **`fix/config-xdg-data-dir`** ([Issue #899](https://git.gtahub.st/github/Marvisak--VIctory/issues/899)): - Branch: `DaniiL35/VIctory@fix/config-xdg-data-dir` (commit `5fcfd91`) - Compare: [diff](https://github.com/Marvisak/VIctory/compare/main...DaniiL35:VIctory:fix/config-xdg-data-dir) - Protects persistent saves/storage from volatile cache cleanup on non-Windows/macOS hosts using `XDG_DATA_HOME` / `~/.local/share`. Added 3 unit tests. 2. **`fix/sgd5-checked-record-bounds`** ([Issue #905](https://git.gtahub.st/github/Marvisak--VIctory/issues/905)): - Branch: `DaniiL35/VIctory@fix/sgd5-checked-record-bounds` (commit `7a5db56`) - Compare: [diff](https://github.com/Marvisak/VIctory/compare/main...DaniiL35:VIctory:fix/sgd5-checked-record-bounds) - Bounds-check hardening in `crates/victory-game/src/sgd5.rs` preventing panic on malformed or boundary shader archives. 3. **`fix/xma-bits-shift-overflow`** ([Issue #907](https://git.gtahub.st/github/Marvisak--VIctory/issues/907)): - Branch: `DaniiL35/VIctory@fix/xma-bits-shift-overflow` (commit `0c38285`) - Compare: [diff](https://github.com/Marvisak/VIctory/compare/main...DaniiL35:VIctory:fix/xma-bits-shift-overflow) - Guards `Bits::signed(n)` and `Bits::read(n)` against shift overflow / underflow panics in audio decoding. #### 2. Independent Technical Verification Audits - **#890**: Verified `MoveFileExW` `ERROR_SHARING_VIOLATION` concurrency handling during cache publication and staging cleanup. - **#900**: Verified Direct3D 12 COM vtable ABI slot 37 (`0x128` - `GetDeviceRemovedReason`). - **#897**: Audited guest memory isolation, zero-count safety, and COM refcounting. - **#793**: Evaluated APFS symlink path canonicalization vs Windows verbatim paths, and **caught a critical CI compiler error** in commit `b05bc7c` (unused `fn normalize` triggering `-D dead-code`). - **#892** & **#90**: Audited cross-platform build gating in `victory-gpu` (resolving E0425 `host_resource`) and synthetic PE DLL fixtures for non-Windows (Linux / macOS Darwin). - **#912**: Audited D3D12 buffer descriptor handoff and device removal invariants on zero-element views. - **#914**: Audited RDNA2 misc vector lowering (`exp pos1.z`), clip distance shift, and DXIL feature flag emission. - **#938**: Audited PE TLS directory bounds and stack schedule parsing, identifying a subtle pointer arithmetic overflow edge case. - **#931**: Audited symmetric COM `AddRef` saturation in `object.rs` to prevent `u32::MAX -> 0` wrapping. All contributions adhere strictly to Rule #1 (Asset Policy: 100% synthetic in-memory fixtures, zero game assets, <512 KiB diffs) and Rust 2024 edition. GitHub account: @⁠DaniiL35 AI-assisted with Antigravity.
Author
Owner

@⁠pes7 on GitHub · 2026-11-24 14:55 UTC · original

**@⁠Marvisak** - the permission question turned out to be moot: #1002 went through.

  • PR: #1002, branch perf/shader-fx-hash, one commit on main ffe310e, MERGEABLE.
  • What: emit/lower.rs keeps thirty tables keyed by Value, a register or a block index, on HashMap's default SipHash. structure.rs already had an Fx hasher for exactly that reason ("SipHash dominated run time"); it was never applied to the lowering stage, which is the larger half. Moved it to crate::hash and used it there and in wave::sections.
  • Measured: a new #[ignore]d bench on synthetic GFX10 compute programs (no game data), ten interleaved rounds per arm, ns per instruction - lowering 593 -> 514, 529 -> 428, 514 -> 430, 543 -> 463 at 256/1k/4k/16k instructions; whole translation -8%. DXIL byte-identical on all four sizes.
  • Checks: cargo test --workspace --locked 342 passed / 0 failed / 7 ignored, both clippy configurations with -D warnings, cargo xtask policy 173 files ok.
  • Hardware: RTX 5070 Ti (Blackwell, driver 32.0.16.2124), Windows 11, 32 GB - the same card as #400, so those numbers are comparable.

Still glad to take collaborator access for verification: I can run open branches on Blackwell, which none of the #400/#776/#783 reports covered.

**@⁠pes7** on GitHub · 2026-11-24 14:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/717#issuecomment-7135170476) **@⁠Marvisak** - the permission question turned out to be moot: #1002 went through. - **PR:** #1002, branch `perf/shader-fx-hash`, one commit on `main` `ffe310e`, `MERGEABLE`. - **What:** `emit/lower.rs` keeps thirty tables keyed by `Value`, a register or a block index, on `HashMap`'s default SipHash. `structure.rs` already had an Fx hasher for exactly that reason ("SipHash dominated run time"); it was never applied to the lowering stage, which is the larger half. Moved it to `crate::hash` and used it there and in `wave::sections`. - **Measured:** a new `#[ignore]`d bench on synthetic GFX10 compute programs (no game data), ten interleaved rounds per arm, ns per instruction - lowering 593 -> 514, 529 -> 428, 514 -> 430, 543 -> 463 at 256/1k/4k/16k instructions; whole translation -8%. **DXIL byte-identical** on all four sizes. - **Checks:** `cargo test --workspace --locked` 342 passed / 0 failed / 7 ignored, both clippy configurations with `-D warnings`, `cargo xtask policy` 173 files ok. - **Hardware:** RTX 5070 Ti (Blackwell, driver 32.0.16.2124), Windows 11, 32 GB - the same card as #400, so those numbers are comparable. Still glad to take collaborator access for verification: I can run open branches on Blackwell, which none of the #400/#776/#783 reports covered.
Author
Owner

@⁠pes7 on GitHub · 2026-11-24 16:08 UTC · original

Two PRs are open from pes7, both MERGEABLE against main ffe310e, both one logical change and independent of each other:

  • #1002 perf/shader-fx-hash - emit/lower.rs kept its thirty tables on SipHash while structure.rs already had an Fx hasher for exactly that reason ("SipHash dominated run time"); it was never applied to the lowering stage, the larger half. Lowering -16%, whole translation -8%, DXIL byte-identical. The PR also adds the synthetic bench (#[ignore]d test, no game data) that produced the numbers.
  • #1033 perf/ir-pairs - ir::build built every instruction's register lists twice: Vec<Reg>, then a second Vec<(Reg, Value)> with the first thrown away. Four allocations per instruction, two of them wasted. ir::build -13%, whole translation -4.7%, output unchanged. One file, +25/-25.

Together about -12% per translation on synthetic programs, at 256 to 16 384 instructions.

Reproduce either one with:

cargo test --release -p victory-shader --lib bench_tests -- --ignored --nocapture

Both: cargo test --workspace --locked 342 passed / 0 failed / 7 ignored, both clippy configurations with -D warnings, cargo xtask policy ok.

CI has not run on either - as a non-collaborator the workflows wait for "Approve and run". @⁠Marvisak if you approve the runs, I will fix anything they flag the same day. Happy to keep verifying on RTX 5070 Ti (Blackwell) meanwhile, which none of the #400/#776/#783 reports covered.

**@⁠pes7** on GitHub · 2026-11-24 16:08 UTC · [original](https://github.com/Marvisak/VIctory/issues/717#issuecomment-7137181293) Two PRs are open from `pes7`, both `MERGEABLE` against `main` `ffe310e`, both one logical change and independent of each other: - **#1002** `perf/shader-fx-hash` - `emit/lower.rs` kept its thirty tables on SipHash while `structure.rs` already had an Fx hasher for exactly that reason ("SipHash dominated run time"); it was never applied to the lowering stage, the larger half. **Lowering -16%, whole translation -8%**, DXIL byte-identical. The PR also adds the synthetic bench (`#[ignore]`d test, no game data) that produced the numbers. - **#1033** `perf/ir-pairs` - `ir::build` built every instruction's register lists twice: `Vec<Reg>`, then a second `Vec<(Reg, Value)>` with the first thrown away. Four allocations per instruction, two of them wasted. **ir::build -13%, whole translation -4.7%**, output unchanged. One file, +25/-25. Together about **-12% per translation** on synthetic programs, at 256 to 16 384 instructions. Reproduce either one with: ``` cargo test --release -p victory-shader --lib bench_tests -- --ignored --nocapture ``` Both: `cargo test --workspace --locked` 342 passed / 0 failed / 7 ignored, both clippy configurations with `-D warnings`, `cargo xtask policy` ok. CI has not run on either - as a non-collaborator the workflows wait for "Approve and run". **@⁠Marvisak** if you approve the runs, I will fix anything they flag the same day. Happy to keep verifying on RTX 5070 Ti (Blackwell) meanwhile, which none of the #400/#776/#783 reports covered.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 01:47 UTC · original

Automated triage for the maintainers.

This is resolved: pull requests are open to everyone again. The collaborators-only restriction described in the comments was lifted on 2026-11-24. Pull requests from outside contributors have been opened since then (#1002 and #1024, for example), and many have been merged into main (#1696, #1733 and #1322, among others).

So the way to contribute is a normal pull request from your fork. If you posted a fork branch in an issue while PRs were closed, please open it as a pull request now and link the issue it fixes. Check the open pull requests first so you don't duplicate one that already carries the change.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:47 UTC · [original](https://github.com/Marvisak/VIctory/issues/717#issuecomment-7149953641) <!-- victory-issue-triage v1 verdict=answered seen=2026-11-24T16:08:23Z at=2026-11-25T01:48:30Z --> Automated triage for the maintainers. This is resolved: pull requests are open to everyone again. The collaborators-only restriction described in the comments was lifted on 2026-11-24. Pull requests from outside contributors have been opened since then (#1002 and #1024, for example), and many have been merged into `main` (#1696, #1733 and #1322, among others). So the way to contribute is a normal pull request from your fork. If you posted a fork branch in an issue while PRs were closed, please open it as a pull request now and link the issue it fixes. Check the open pull requests first so you don't duplicate one that already carries the change. --- _Generated by [Claude Code](https://claude.ai/code)_
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#717
No description provided.