Fix #721, #722, #726: copy-back only changed bytes; mark pages current conditionally; NaN-safe v_med3_f32 #2000

Closed
github-bot wants to merge 1 commit from gh-pr/2000/head into gh-pr/2000/base
Owner

@⁠tharun-37 on GitHub · 2026-11-25 02:38 UTC · original
tharun-37:fix/shadow-copyback-and-med3-nan → main · +68 −11 · 2 files · 1 commits · closed without merging

Three small, localized fixes:

  • #721 (shadow): copy_back now writes only the bytes the GPU actually changed, instead of the whole 64 KiB piece, so a title write landing between the read and the write is no longer clobbered.
  • #722 (shadow): a synced page is marked current only if title memory still matches the host copy after the final query; otherwise it stays stale for the next refresh.
  • #726 (shader): v_med3_f32 lowering uses NaN-safe min/max so a NaN operand yields the smaller of the two numbers (matching RDNA2) instead of relying on host intrinsic NaN propagation.

Builds clean; victory-gpu shadow tests and v_med3_f32 nan test pass. Other failures in the suite are pre-existing (hardware/validator dependent, reproduce on unmodified main).

**@⁠tharun-37** on GitHub · 2026-11-25 02:38 UTC · [original](https://github.com/Marvisak/VIctory/pull/2000) `tharun-37:fix/shadow-copyback-and-med3-nan` → `main` · +68 −11 · 2 files · 1 commits · closed without merging Three small, localized fixes: - #721 (shadow): copy_back now writes only the bytes the GPU actually changed, instead of the whole 64 KiB piece, so a title write landing between the read and the write is no longer clobbered. - #722 (shadow): a synced page is marked current only if title memory still matches the host copy after the final query; otherwise it stays stale for the next refresh. - #726 (shader): v_med3_f32 lowering uses NaN-safe min/max so a NaN operand yields the smaller of the two numbers (matching RDNA2) instead of relying on host intrinsic NaN propagation. Builds clean; victory-gpu shadow tests and v_med3_f32 nan test pass. Other failures in the suite are pre-existing (hardware/validator dependent, reproduce on unmodified main).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:51:09 +00:00
github-bot closed this pull request 2026-11-26 04:51:10 +00:00
Author
Owner

@⁠DesertGamer on GitHub · 2026-11-25 02:40 UTC · original

VIctory V2: community PRs, merged and tested

Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.

Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).

⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.

Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2

Unofficial community fork of Marvisak/VIctory, GPL-3.0.

**@⁠DesertGamer** on GitHub · 2026-11-25 02:40 UTC · [original](https://github.com/Marvisak/VIctory/pull/2000#issuecomment-7151028623) ### VIctory V2: community PRs, merged and tested Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch. **Where it stands today:** launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1). :warning: Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk. Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help: https://DesertGamer/VIctory-V2 *Unofficial community fork of Marvisak/VIctory, GPL-3.0.*
Author
Owner

@⁠tharun-37 on GitHub · 2026-11-25 02:52 UTC · original

Split into #2009 (gpu) and #2010 (shader) per review feedback.

**@⁠tharun-37** on GitHub · 2026-11-25 02:52 UTC · [original](https://github.com/Marvisak/VIctory/pull/2000#issuecomment-7151288625) Split into #2009 (gpu) and #2010 (shader) per review feedback.
Author
Owner

@⁠upipibi on GitHub · 2026-11-25 03:00 UTC · original

Ran on Windows 11 with an RTX 3070 (Ampere, driver 616.56), debug build, at 6f4a0fd. victory-shader: 244 passed, 3 failed, 3 ignored. The 3 are #1744's NVIDIA failures on main (the two stride_tests heap-buffer reads and gathers_at_a_level_match_the_hardware). victory-gpu: 141 passed, 2 failed, with only the two NVIDIA heap-cap failures main also has (dynamic_slots_are_held_until_released, lists_share_a_table_and_copies_keep_their_views). Same as main on this hardware. Not run: a title.

AI-assisted (Claude Code).

**@⁠upipibi** on GitHub · 2026-11-25 03:00 UTC · [original](https://github.com/Marvisak/VIctory/pull/2000#issuecomment-7151491500) Ran on Windows 11 with an RTX 3070 (Ampere, driver 616.56), debug build, at `6f4a0fd`. `victory-shader`: 244 passed, 3 failed, 3 ignored. The 3 are #1744's NVIDIA failures on `main` (the two `stride_tests` heap-buffer reads and `gathers_at_a_level_match_the_hardware`). `victory-gpu`: 141 passed, 2 failed, with only the two NVIDIA heap-cap failures `main` also has (`dynamic_slots_are_held_until_released`, `lists_share_a_table_and_copies_keep_their_views`). Same as `main` on this hardware. Not run: a title. AI-assisted (Claude Code).

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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!2000
No description provided.