Skip to content

VIctory - #2257

Closed
TaynanGT wants to merge 400 commits into
Marvisak:mainfrom
TaynanGT:local/fxceless-render
Closed

VIctory#2257
TaynanGT wants to merge 400 commits into
Marvisak:mainfrom
TaynanGT:local/fxceless-render

Conversation

@TaynanGT

Copy link
Copy Markdown

No description provided.

Quat3rnion and others added 30 commits November 24, 2026 02:25
GetResultSize and GetResult only treated S_OK as success, so a provider finishing with S_FALSE and a payload left the caller's buffers untouched and the call registered forever. Any nonnegative HRESULT is a success code; return the size, let the provider write the result, report bytes used, and release the call. Add a regression completing with S_FALSE and an eight-byte payload.
Shader: decode the packed typed-buffer formats
fix(gpu): average copy statistics over the full reporting interval
Shaders: find the written instructions with a worklist, not repeated passes
Files: send rewritten narrow paths to the host, not to our wide wrappers
Shaders: lower s_bitcmp0/1_b32 and s_bitcmp0/1_b64
Shaders: lower v_cmp_class_f16 and v_cmpx_class_f16
net: skip newer-Windows-only exports in only_loopback_is_reachable
pipeline: remove staging files when cache publication fails
xmem: mapping or unmapping no pages changes nothing instead of aborting
Crash reports: show the bytes of an instruction the CPU refused
Crash reports: say what an access violation's address holds
GPU: give null texture UAVs the title's view dimension
Game saves: an empty configuration id no longer deletes the other configurations' saves
XUser: a gamertag without a suffix has an empty modern suffix
XTaskQueue: terminating a queue ends a dispatch waiting on it
Loader: a trapped unimplemented import goes into the crash log
GPU: GetDevice and the DXGI device hand out the device at every level
GPU: a half-float rounding carry raises the exponent instead of halving the value
Shaders: s_ttracedata_imm is SOPP opcode 0x28, not 0x26
…-prepare

Loader: a title DLL that fails to prepare is named in the error
loader: unwind a 16-byte aligned copy of the context
GPU: drop draws whose fresh tables cannot be made; 2^18 dynamic slots
Config: ignore an empty VICTORY_TEST_TITLES
GPU diagnostics: order tied drop counts consistently
…or-heap

GPU: replay pending descriptors before publishing the host heap
main moved under #307 and this branch. One conflict, in the test module of
emit/lower.rs: the imports take both sides' names (#117's `half_shift`
beside `Lowered`), and #117's `scalar_bit_tests_lower` sits after this
branch's waterfall tests. No code outside the test module was touched by
hand. A merge rather than a rebase so #307's commits keep their ids.
Storage: a path buffer too small fails with E_FAIL, as on Xbox
Capture: R16G16B16A16_UNORM targets are integers, format 89 is 10:10:10:2
TaynanGT and others added 17 commits November 25, 2026 04:52
Adapta a proposta de Flyander em fxceless/victory-fork#305, usando uma cópia da página e verificando substituição e remoção no Direct3D 12.
Inclui as correções propostas em fxceless/victory-fork#706 e #709 e os testes da auditoria local.
- release_held looked at the events waiting for fences only before it
  ran what queues held; without late submissions a held list's
  bottom-of-pipe write into a fence then woke nobody until some later
  call. They are looked at again once something ran.
- A pending_with call's thread checked that its call was still the
  block's and then completed by the block's address: a cancel and a new
  call on the block in between got the old result. It now completes
  that call alone, its own done flag deciding.
- The heap pass was keyed once per list, so a list that binds a second
  view heap never ran that heap's pass nor kept its table; keyed per
  list and heap now.
- join_placeholders skips its two queries for a range inside one 64 KiB
  granule (the single-page maps of page-mapping copies).
- victory translate no longer drops a shader named in
  VICTORY_WAVE_WIDE_ONLY as a duplicate of the same code unnamed.
- SUBMISSION_US has its doc back (PREPARE_SPLIT's had been put between
  them), and the frame line no longer calls the copies a part of the
  deferred steps alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WFqqAvbrdcaXe2SvGb2y64
Fix review findings on #2: fence events after held runs, late async results
- in_place_let_go walked every loose window below the remapped range's
  end, under the lock the asks take, on every remap. It now starts as far
  below the range as the longest window the map has held, which no
  window reaching the range can exceed.
- a_cancelled_pending_call_drops_its_late_result waited 100 ms for the
  work thread to finish; on a loaded machine it could pass before the
  thread had completed anything. The thread now notes its block when it
  ends (in tests), and the test waits for that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WFqqAvbrdcaXe2SvGb2y64
A console wave64 program that no form carries in 32 lanes was handed
over with WaveSize(64), and on an RTX 4090 (waves of 32)
CreateComputePipelineState refused it with E_INVALIDARG and no reason,
on every run, for 3 to 7 of the prologue's compute shaders. It is now
refused at translation with the reason ("a console wave64 program that
still needs 64-lane waves"), and gets the constant-edge retry that only
refused programs had. Its dispatches are dropped as before. Hosts with
64-lane waves are unaffected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WFqqAvbrdcaXe2SvGb2y64
The title's tiled lighting writes each pixel's material class into the
twin of a depth plane, then draws each class with the depth test equal.
The pass that draws the twin into the plane ran only when the list
closed, after those draws, so every frame they tested the classes of the
frame before: the frame line's "times used before the pass" grew by one
a frame (962 to 2219 over 159 s in a release run).

The depth target's bind for a draw now records the pass first, when the
plane is behind (a copy due, or a use that saw it late), and the draw's
state is set again after it (State::replay). Copies, clears and shader
reads keep the late path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WFqqAvbrdcaXe2SvGb2y64
… asking

- CardNotes::take built and allocated an empty Arc for every card copy
  with nothing noted, on every send (~600 copies, ~30 sends a frame, ~20
  copies with notes), only for card_dirty to drop it. It returns a
  shared empty one now, with the same sends and notes.
- Batch::flush gathered every pending refresh's range and ask_ahead
  sorted them before finding that the submission's one asking stands and
  returning. The flush skips both while it stands (watch::asking_stands);
  the journal is left as it was.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WFqqAvbrdcaXe2SvGb2y64
…ry 16th

Every 16th pass of BufferViews::begin_pass revisited all of a heap's
buffer slots (some 70,000): a release run's heap pass alternated between
11 ms and 1.9 ms frame averages a second, about 73 ms of one frame in
16 on the thread recording the title's list. Each pass now revisits the
next sixteenth in turn with the slots written since: the same mean and
the same coverage (each slot within about 16 passes), without the spike.
The first pass of a heap still takes all.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WFqqAvbrdcaXe2SvGb2y64
…arked

The heap pass looks again at every texture uploaded in part, asking the
kernel about each 64 KiB of it, although the runtime's notices already
make a slot due when memory is mapped, unmapped or written under it:
4.5 ms a frame on average in a release run (241 slots looked at, peaks
of 13-16 ms), with "looks that found no more mapped" growing by ~153 a
frame.

- The frame line now counts looks that found more of a texture mapped
  with no notice between ("arrived unannounced"), the cases the looks
  are for.
- VICTORY_TEXTURE_PARK_FRAMES=<n> (off by default) lets a texture
  uploaded in part and found no further along wait up to n frames before
  the next look. With it on, dropped notices make the slots waiting on
  looks due at once. To be tried where the new counter stays about 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WFqqAvbrdcaXe2SvGb2y64
Depth plane before the class draws; steadier heap pass; less per-submission work; 64-lane-only refusals
Une os históricos a partir do snapshot equivalente e incorpora as melhorias de formatos, carregador, serviços, shaders, pré-compilação e diagnóstico de pipelines.

Mantém a ABI de memória e descritores do Vice-Tay nas sobreposições com os caminhos de marcas de escrita e de semântica numérica estrita do original.
Corrige o laço CLZERO testado pelo CI

@catminou4 catminou4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Fork-scale PR (+57758) touching CI, workspace lints and apps. Two concerns: (1) .github/workflows/ci.yml now pushes on local/fxceless-render and adds workflow_dispatch — CI changes from a fork merge should be reviewed very carefully; (2) the same workspace lint relaxations as #2233 (undocumented_unsafe_blocks and 8 others set to allow). Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1. Cannot be reviewed as one unit — recommend splitting and justifying each lint relaxation; same audit advice as #2233.

@sinan-cmyk

Copy link
Copy Markdown

Offline measurement on a retail dump

Result: no count change against main.

I merged head 77c3019 onto main 940d32f (clean merge) and ran victory translate --validate --list on shaders.rpf (1.0.2.1), with dxil.dll 1.8.2502.11. I compared the result with main program by program (25,889 programs). Validated: 0 on main, 0 with this PR.

No program changes its failure reason. The count shows that the change rejects nothing on this data. It does not show whether the output is right.

No shader names or data are included, per the asset policy. AI-assisted (Claude Code).

Copy link
Copy Markdown
Owner

Automated triage for the maintainers.

Proposed close. This PR merges a whole fork ("Vice-Tay") back into main: 400 commits and about 117 files with +57,758/-24,279 lines across every crate, with no description. Besides being impossible to review as one change, it breaks repo rules and would need the maintainer in any case: it renames the project in README.md, changes .github/workflows/ci.yml to run on the fork's branch local/fxceless-render instead of main, relaxes the workspace Clippy lints in Cargo.toml (including undocumented_unsafe_blocks to allow), and adds a long design document docs/fork-ray-tracing.md. Several pieces overlap focused open PRs (for example the sub-dword buffer store change in #2208). CI (check) passes on this head.

If parts of the fork are worth upstreaming, please send them as separate, focused PRs against main, each with its own description and tests. This PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the label.


Generated by Claude Code

@TaynanGT

TaynanGT commented Nov 25, 2026 •

Copy link
Copy Markdown
Author

@Marvisak thanks for the triage. I started extracting focused contributions from TaynanGT/VIctory. The first is #2716, a one-file XGameSave fix with two synthetic regression tests. It is ready for review, and its Windows CI passed.

TaynanGT/VIctory contribution index

The source snapshot, 400 commits, and 117 changed files are the reference for the remaining work.

Documentation at that revision

Additional branch snapshots

The following branches contain 14 distinct commits outside the head of #2257.

I found overlap with existing work on CLZERO (#214), XMA looping (#194), import census (#476), depth bounds (#158), and sub-dword buffer stores (#2208). The fork measurements are tied to the revisions in its README. #2716 has its own test commands and results.

@TaynanGT

Copy link
Copy Markdown
Author

Thanks for the triage. This branch is our fork's working line and was not meant to be merged as a whole, so I am closing it. Parts that apply to main will come as separate, focused PRs against main, each with its own description and tests, and without the fork's README, CI and lint changes.

@TaynanGT TaynanGT closed this Nov 25, 2026
@TaynanGT
TaynanGT deleted the local/fxceless-render branch November 25, 2026 19:32
@TaynanGT

Copy link
Copy Markdown
Author

Thanks, @catminou4, for flagging the fork-only workflow and the workspace lint changes. Those stay out of the focused upstream PRs.

@sinan-cmyk, thanks for running the comparison across all 25,889 programs. Both builds validated zero, so the run shows the failure reasons stayed the same. A shader fix will need a targeted test that checks the translated output.

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.