Skip to content

style: cargo fmt across the workspace; fix clippy field-reassign-with-default - #676

Closed
arthercz wants to merge 2 commits into
Marvisak:mainfrom
arthercz:main
Closed

arthercz wants to merge 2 commits into
Marvisak:mainfrom
arthercz:main

Conversation

@arthercz

Copy link
Copy Markdown

Two hygiene fixes found during a workspace inspection:

  • cargo fmt across the workspace: 168 formatting differences in 32 files (long-line wrapping in gpu/hle/loader/formats). cargo fmt --check is now clean.
  • crates/victory-hle/src/modules/xmem.rs: initialize PERFORMANCE_INFORMATION.cb in the struct literal instead of reassigning after Default::default() (clippy::field_reassign_with-default). cargo clippy --workspace is now warning-free.

Verified before committing: cargo test --workspace — 264 passed, 0 failed.

…with-default

- cargo fmt: 168 formatting differences in 32 files
- xmem.rs: initialize PERFORMANCE_INFORMATION cb in the struct literal
  (clippy::field_reassign_with_default)

@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.

Verified locally on macOS 26 arm64, rustc 1.98.1 at head e8ec70c:

  • cargo fmt --all -- --check: clean
  • cargo clippy on all macOS-buildable crates (--all-targets): clean, no warnings
  • cargo test on the same crates: all green except victory-pe's 4 own-binary tests, which fail identically on main (they parse the test binary as a PE image — Windows-only; #523 gates them off non-Windows). Not caused by this PR.

(victory-gpu/victory-hle can't compile on macOS at all — main's known cfg issue — so the fmt/clippy changes there are verified by inspection only.)

Approving.

@LAKSHYA-cmd-tech LAKSHYA-cmd-tech 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.

LGTM! Tested on Windows 11 with MSVC Rust 1.98.1. cargo test -p victory-hle passed cleanly (86 passed) and cargo clippy -p victory-hle is completely warning-free. Fixing the PERFORMANCE_INFORMATION struct initialization eliminates the persistent clippy warning on main.

Speech streams were valid empty WAVE files, so the title's narration
(accessibility menus and the like) was silent. Route text (0x68) and
SSML (0xa8) through Windows.Media.SpeechSynthesis and hand the title the
spoken RIFF stream; when the host has no voice (no voices installed,
WinRT unavailable), keep the empty-WAVE fallback so the title still
plays the stream and goes on.

- streams become boxed handles, reclaimed by close (0x70); the
  synthesizer handle stays a fixed address
- enumerate_voices stays a no-op: no title of ours asks, and the host's
  default voice speaks
- the windows crate moves out of the diagnostics-only feature so its
  WinRT bindings link in release builds too

Verified on Windows 11: the unit test now speaks "Hello" and validates
the returned WAVE (RIFF chunk walk, PCM 16 kHz mono 16-bit, non-empty
data); cargo test --workspace 264 passed.
@arthercz

Copy link
Copy Markdown
Author

Superseded by #691 (speech) and #692 (fmt/clippy) as two focused PRs.

@arthercz arthercz closed this Nov 24, 2026
geiyiliyabumo pushed a commit to geiyiliyabumo/VIctory that referenced this pull request Nov 25, 2026
…ull-result-111a

HLE: document and harden getaddrinfo null-on-failure tests (Marvisak#440)
fornorharry added a commit to NitricAcidDev/VIctory-Omega-Fork that referenced this pull request Nov 25, 2026
…r launch

From open pull requests of fxceless/victory-gta6, each reviewed, applied with
its tests and fitted to this tree:

- Marvisak#756: one sampler written into a program and used with and without a
  comparison is two static samplers; a comparison sampler with a minimum or
  maximum reduction stays a comparison.
- Marvisak#714: a mesh program that allocates in every lane keeps its LDS barriers;
  scalar reads of unordered views; both edges of a branch to one block; the
  first lane of an offset that is held per lane. With the early-start bias
  of this tree's raw views on the unordered ones too.
- Marvisak#576, in part: a loop with two empty latches, and the double flag of a
  program that lost its doubles. Not its block-local handles: 1,507 of 1,516
  compute programs of a local cache make host pipelines here as they are, and
  the nine others ask for waves of 64 lanes (older translations).
- Marvisak#646, in part: `DispatchX` counts threads where its flag says so. They ran
  as groups.
- Marvisak#676, in part: a new view of a texture already on the card needs no room;
  two views of a placed texture that differ in its filler words (the title's
  stack, another in every launch) are of one texture.
- Marvisak#481, in part: no barrier for a window of indirect arguments that this
  draw did not clamp.
- Marvisak#591: the parts of a host copy a submission asks for, not the span between
  them. Marvisak#522: table constants that flights write are filled on the card.
- Marvisak#745: samplers with modes the host does not know.

Added: an ignored test that makes a host pipeline from every compute
translation of a local cache; the staging pool's test waits for other tests'
submissions.

AI-assisted. GPU (170), shader (226) and format unit tests pass. Not run with
the title.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants