Teste/series s 32gb #2807

Open
github-bot wants to merge 73 commits from github-bot/gh-2807 into main AGit
Owner

@⁠gabztoo on GitHub · 2026-11-25 21:06 UTC · original
gabztoo:teste/series-s-32gb → main · +13942 −1729 · 65 files · 73 commits · open

No description provided.

**@⁠gabztoo** on GitHub · 2026-11-25 21:06 UTC · [original](https://github.com/Marvisak/VIctory/pull/2807) `gabztoo:teste/series-s-32gb` → `main` · +13942 −1729 · 65 files · 73 commits · open *No description provided.*
Retain upstream draw promotion, first-use learning and the synchronous shader-pack prebuild. Save early requests independently; keep prebuilt tags tied to the published library. Add adaptive worker priority, a configurable shared frame budget and two nonblocking cold-compile lanes.

Tested under with-build-lock.ps1: victory-gpu diagnostics serial suite (85 passed, 1 ignored) and victory diag build. No title or local shader pack execution.
Prove counted indexed overwrites on entry edges without changing upstream phi liveness for other paths. Refuse PSOs requiring native barycentrics on devices without OPTIONS3 support.
Adapt upstream PR #1776, preserving the typeless filter and both regression tests.
Port upstream PR #1765. Keep the copy and pixel assertions on both paths.
Keep generation-backed mapped library publication, trim, and AOT tags on the bytes actually published. Save early requests independently and defer only cold driver creation outside the library lock.
Limit SleepHold RAII to pending PSO waits with budget remaining; refund only after releasing the hold. Recycle only uniquely owned host lists, retaining recording resources if a deferred queue still holds the list.

Validated serial diagnostics tests for victory-gpu, victory-hle, and victory-loader, plus the diag build, under with-build-lock.ps1.
Preserve post-fence retirement and deferred queue wakeups in execute_locked. Present the queue-held resource without rereading the plane arrays.
Pack group records in compute and replay with an instanced triangle-list draw. Reuse upstream heap and title-memory bindings, and decode primitive corners as 9-bit indices. No fallback pixel barycentrics.
The fallback made one CreateCommandSignature (CONSTANT + DISPATCH) per
pipeline. With a prebuilt library ~1,400 pipelines load at once, and on
the RX 5700 XT the AMD driver faults inside the call after about 4,500
to 5,000 signatures (write into memory it reserved but never committed).
Signatures are now cached per device, base parameter and exact serialized
root signature, and the root constant is checked against the root before
use. A hardware stress test makes 5,000 fallback pipelines with one real
signature and no D3D12 errors; without the cache it reproduces the fault.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Access-violation reports now carry the thread id and VirtualQuery's
base, allocation base, protection, type, size and state for the
faulting address, so the next driver fault shows whose memory it was.
The handler and its decision are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Report available physical MiB and system-wide Pages Input/sec with low-rate queue counters and phase ages. Defer speculative cold driver calls below 1536 MiB and resume at 2048 MiB, without suppressing cache probes or urgent jobs.

Validated via with-build-lock.ps1: focused diagnostics pipeline suite (28 passed, 2 ignored) and diag build. The shared-tree full GPU run also saw the pre-existing fence timing failure and a placed-view failure under concurrent resource work. No title run.
Adapt the readback path from upstream PR #67. Validate the subresource footprint and publish only the requested color rows after the fence.
Add bounded before/after shadow refresh probes and document the producer-to-present capture and readback checks.
Exercise three render targets through the fallback pass-through VS on hardware, and log the fallback graphics state once in diagnostics builds.
VICTORY_DEPTH_EQUAL_RELAX=1 widens EQUAL to LESS_EQUAL, or to GREATER_EQUAL with =reversed, when depth writes are off. Changes the graphics state key so relaxed PSOs never reuse an unrelaxed library entry.
Depth-read-only EQUAL is widened to LESS_EQUAL unless VICTORY_DEPTH_EQUAL_RELAX=0; reversed selects GREATER_EQUAL. The session at 101206 measured G-buffer coverage rising from 10% to 57%.
Port Belobug 8629211: integer_format() and host_blend() clear BlendEnable on integer RTV formats in the graphics, mesh fallback and native mesh stream PSOs, preserving the other targets.
Port of the idea of Belobug f2cc100 to this tree's alias map: one range
lookup per run of consecutive pages, none when no page is linked, instead
of one lookup per page under the guards' lock. Same pairs in the same
order (test against the per-page lookup).
Port of the logic of Belobug a0a4591 to this tree's dense copies (this
tree has no sparse tiles):
- Shadow::writing copies the holes of a declared range on up to 6 threads
  (1 MiB pieces, from 2 MiB); a range inside one already declared in the
  submission is skipped (its bytes are snapshotted already). Only holes are
  taken, so the first baseline of every byte is kept (642d3b4).
- copy-back decides pieces and their snapshot bytes in order on the
  submitting thread, then compares, merges and writes the disjoint 64 KiB
  pieces on several threads; the same merge as before.
- VICTORY_SERIAL_COPIES=1 (or VICTORY_COPY_THREADS=1): one thread, as
  before, for A/B runs of one build. VICTORY_COPY_THREADS=N picks the count.

Tests: byte-for-byte title and copy after parallel copy-back (no zero, no
stale byte), one thread = six threads, no duplicate snapshot of covered
ranges, the opt-out; an ignored test measures the peak commit.
Port of the logic of Belobug 0a32e89 and e11fb06 to this tree's loose
windows (copies of memory outside buffer objects; no sparse tiles here).
With VICTORY_SWEEP_TILES=2, before a new loose window is made and at most
once a second, windows held only by the cache whose title memory is all
MEM_FREE are given back; the system is asked outside the lock and a window
looked up meanwhile is kept. Reserved (lazily committed) memory never
counts as freed (7a91fe8). Default 0; other values are off with a warning.
Belobug's mode 1 (by age alone) is not ported.

Tests: off by default keeps a copy of freed memory; the sweep keeps live,
reserved, held and re-looked-up copies with their shader bytes and gives
back the freed unheld one.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:14:43 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 23:15 UTC · original

Automated triage for the maintainers.

This PR does not merge cleanly into main: it conflicts in 28 files, among them crates/victory-gpu/Cargo.toml, crates/victory-gpu/src/list.rs, crates/victory-hle/src/modules/xmem.rs and crates/victory-shader/src/emit/lower.rs. Its content will be reviewed once it is rebased onto current main. A branch that carries only the change it means to make is much easier to review.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 23:15 UTC · [original](https://github.com/Marvisak/VIctory/pull/2807#issuecomment-7177314988) <!-- victory-triage v1 head=01147d6b1eeea6a82df7826e05c48234f74c83d0 verdict=needs-rebase at=2026-11-25T23:13:52Z --> Automated triage for the maintainers. This PR does not merge cleanly into `main`: it conflicts in 28 files, among them `crates/victory-gpu/Cargo.toml`, `crates/victory-gpu/src/list.rs`, `crates/victory-hle/src/modules/xmem.rs` and `crates/victory-shader/src/emit/lower.rs`. Its content will be reviewed once it is rebased onto current `main`. A branch that carries only the change it means to make is much easier to review. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request has changes conflicting with the target branch.
  • README.md
  • apps/victory/src/run.rs
  • crates/victory-gpu/Cargo.toml
  • crates/victory-gpu/src/bindless.rs
  • crates/victory-gpu/src/capture.rs
  • crates/victory-gpu/src/copystat.rs
  • crates/victory-gpu/src/descriptor/host.rs
  • crates/victory-gpu/src/draw.rs
  • crates/victory-gpu/src/fence.rs
  • crates/victory-gpu/src/host.rs
  • crates/victory-gpu/src/indirect.rs
  • crates/victory-gpu/src/list.rs
  • crates/victory-gpu/src/memory.rs
  • crates/victory-gpu/src/pipeline.rs
  • crates/victory-gpu/src/pipeline/host.rs
  • crates/victory-gpu/src/pipeline/library.rs
  • crates/victory-gpu/src/pipeline/make.rs
  • crates/victory-gpu/src/queue.rs
  • crates/victory-gpu/src/resource.rs
  • crates/victory-gpu/src/shadow.rs
  • crates/victory-gpu/src/texture.rs
  • crates/victory-gpu/src/watch.rs
  • crates/victory-hle/src/modules/xmem.rs
  • crates/victory-shader/src/emit/host.rs
  • crates/victory-shader/src/emit/lower.rs
  • crates/victory-shader/src/emit/mod.rs
  • crates/victory-shader/src/emit/shader.rs
  • crates/victory-shader/src/io.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2807/head:github-bot/gh-2807'
git switch 'github-bot/gh-2807'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2807'
git switch 'github-bot/gh-2807'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2807'
git switch 'github-bot/gh-2807'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2807'
git switch 'main'
git merge --squash 'github-bot/gh-2807'
git switch 'main'
git merge --ff-only 'github-bot/gh-2807'
git switch 'main'
git merge 'github-bot/gh-2807'
git push origin 'main'
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!2807
No description provided.