Skip to content

Teste/series s 32gb - #2807

Open
gabztoo wants to merge 73 commits into
Marvisak:mainfrom
gabztoo:teste/series-s-32gb
Open

gabztoo wants to merge 73 commits into
Marvisak:mainfrom
gabztoo:teste/series-s-32gb

Conversation

@gabztoo

@gabztoo gabztoo commented Nov 25, 2026

Copy link
Copy Markdown

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 Marvisak#1776, preserving the typeless filter and both regression tests.
Port upstream PR Marvisak#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.
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.
…LES=2, off)

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.
…ile (VICTORY_OWN_UPSCALER, ported from ScarlettPort)

@kotekompotek kotekompotek left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same situation as #2758 and #2790: +13,742/-1,728 across what looks like a fork-scale dump — unreviewable in one pass. If this is a real contribution (Series S memory support?), it needs splitting into per-subsystem PRs or a branch/proposal discussion first.

Copy link
Copy Markdown
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants