Commit Graph
227 Commits
Author SHA1 Message Date
local 2b6b7af66f Merge PR 51 2026-11-24 15:30:09 -06:00
local 922df97fea Merge PR 24 2026-11-24 15:30:09 -06:00
pgm1207 83b37dfcf9 GPU: no blending on integer render targets in host pipelines
The console ignores blending on integer render targets and the title
leaves it on (the world has a mesh pipeline blending into an R8_UINT
target). D3D12 does not allow it: vkd3d-proton refuses such a pipeline
with E_INVALIDARG and its draws are lost. The host pipeline now turns
blending off on integer targets; with one description for all targets,
each target gets its own copy so the others keep theirs.
2026-11-24 21:53:48 +01:00
fxcelessandClaude Fable 5.2 29f9e89df6 The game is no longer named in the tree
Comments, documents and descriptions now say "the title". No code changes.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-24 15:45:05 -05:00
cxccxcandClaude Opus 5.5 57fcf21b80 Shaders: restore parked lane-mask pairs a few instructions apart; relative VGPR reads keep parked lanes (#11)
The console compiler parks a wave64 lane mask in two lanes of a spare VGPR
and may restore the halves with other instructions between the two
v_readlane_b32. The pair restore now looks ahead in the block (nothing between
may touch the second register, write the first, or save into the lanes), so
the mask comes back as a mask. This lets indirect_light_probes
CS_IrradianceCache_Shade / ShadeSecondary translate: they were dropped every
frame, leaving the irradiance cache unlit and everything in shadow black.

An M0-relative read (v_movrels_b32) names every VGPR from its base up, which
marked the parking VGPR as an ordinary one and turned unspilling off for the
whole program. Relative reads no longer count there (relative writes still
do). billboard_nobump CS_RaytracingResolve_a56bfb9c translates with it.

translate: VICTORY_TRANSLATE_ONLY=<hash prefixes> limits a run to those
containers; VICTORY_HOST_MAX_WAVE=32 translates as on a 32-lane host, so
--pipelines matches what the runtime creates on NVIDIA.

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-11-24 15:35:04 -05:00
oddiums 8013dd54cf Fix mesh pipeline test on unsupported GPUs (#14) 2026-11-24 15:35:00 -05:00
NuraadGit f4c1e12bef GPU: constant buffer views of at most 64 KiB
The host removes the device for a constant buffer view of more than 65,536
bytes. The title's view heap holds larger sizes in slots it does not use,
and the size went to the host as it was.
2026-11-24 15:22:26 -05:00
fxcelessandClaude Fable 5.2 d7823e8a38 Shader clean-up passes; a test that needs a card skips without one
- Clean-up passes over each translated module (VICTORY_SHADER_OPT bits: dead
  code, folding, reuse, branch facts, loads within a block, wave64 first-lane
  exchange), part of the shader cache key. About 43 % fewer host instructions
  over the pack; about 20 ms less GPU time per frame on the test machine.
- translate: a census of the emitted code.
- Checked with plain game runs of this tree on the test machine.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-24 15:13:27 -05:00
fxcelessandClaude Fable 5.2 df7b68f167 Shader tests: recognise the software adapter from the device's own adapter
Hosted runners list a display stub first, so the default device there is the
software adapter; the tests that need a real card now skip it.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-24 14:32:07 -05:00
fxcelessandClaude Fable 5.2 ae23bdb78f Fix the device loss introduced by the wave64 update
The update moved the particle light-atlas compute programs to a form that
puts group barriers inside branches and loops; a dispatch of them stood on
the card until the device was reset. That form is now off unless
VICTORY_WAVE_WIDE=1, and the shader cache key includes the wave switches.
Checked with a plain run of this tree on the test machine.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-24 14:30:28 -05:00
fxcelessandClaude Fable 5.2 d895bd7028 Test fix for hosted runners, stencil diagnostics, and a stability warning
- Shader tests: a software adapter given as the default device is not taken
  for a hardware device, so the tests that need a real card skip there.
- Diagnostics: the stencil plane of dumped depth-stencil targets and the
  title's descriptions of its stencil views.
- README: the newest commits lose the GPU device shortly after start on the
  test machine; the cause is not found yet.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-24 14:01:26 -05:00
ZazaJr24andZazaJr24 3b3ab69d5a Make host pipeline waits configurable and prewarm pending requests (#1)
Co-authored-by: ZazaJr24 <[email protected]>
2026-11-24 13:55:08 -05:00
fxcelessandClaude Fable 5.2 af8f4c68bf Shadow and trace programs translate, lint clean, ray-tracing write-up
- 59 of the 64 trace programs and the irradiance-cache shading program
  translate; 51 programs leave the approximate wave64 forms.
- The workspace passes the lint with warnings as errors in both feature sets;
  a few style lints are let through in Cargo.toml for this fork.
- README status updated (relay and in-place memory results);
  docs/fork-ray-tracing.md describes what the title does and what is built.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-24 13:48:06 -05:00
fxcelessandClaude Fable 5.2 6fa814fba5 victory-gta6: this fork's changes on top of VIctory main (ffe310e)
World rendering, lighting, frame-rate and memory work for Grand Theft Auto VI
(Xbox Series X profile) on one Windows PC with an NVIDIA RTX 4070. The README
describes the state, the changes and the credits. Based on VIctory by Marvisak
and contributors (GPL-3.0-or-later); XCL by ivall and contributors was used as
a reference. No game files are included.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-24 13:02:18 -05:00
MarvisandClaude Opus 5.5 45c6e80601 Shaders: the console's waterfall loop over a first-lane table offset
The console compiler loops over a per-lane descriptor by reading the
first active lane's table offset (v_readfirstlane_b32), narrowing EXEC
to the lanes with the same one (v_cmpx_eq_u32), loading that entry
(s_load_dwordx8) and dropping those lanes (s_andn2_wrexec). Such a load
now goes through the waterfall proof; when it holds, each lane loads its
own entry through a non-uniform handle. Unproven, the offset stays the
first lane's, as before.

Translation census over the title's 26,096 programs: none lost, 108 get
past these loops to a later refusal. The 249 programs behind #736 also
need per-lane size queries in loops without an access.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 10:53:38 +01:00
Marvis 2f899cb543 Merge pull request #566 from r4tedx/shader/per-lane-phi
Shaders: per-lane descriptors chosen by control flow (stacked on #307)
2026-11-24 10:53:16 +01:00
r4.andClaude Fable 5.2 0e1bdf32ea Shader tests: the waterfall tests take the GPU one at a time, with the VALU tests
The four tests of emit/waterfall_tests.rs each dispatch on the hardware
adapter and on WARP. Run in parallel, the test process sometimes died of
an access violation (7 of 24 runs of these four tests on an integration
branch; an image test beside a VALU test does the same on WARP). They now
take the VALU tests' lock, which moves out of `run_cases` to be shared.
With it: 340 workspace tests pass with VICTORY_WARP=1, as on a CI runner,
and the shader tests pass on the RTX 5070.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-24 11:26:39 +02:00
r4.andClaude Fable 5.2 f28a9f462e Merge upstream main (8e79c80) into shader/per-lane-phi
main now has CI (clippy with -D warnings, then the workspace's tests) and
three new tests that call `resource::track`, which this branch gives a
fourth argument. No textual conflict, but the test target did not build:
those three calls (emit/lower.rs, twice in emit/mod.rs) now structure the
program first and pass it, as this branch's other callers do. Both of
CI's clippy commands are clean on the result.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-24 11:10:23 +02:00
MarvisandClaude Opus 5.5 057ecfb34a CI: clippy and tests on pull requests and main
A Windows job on the pinned toolchain: clippy with -D warnings on the
default and the --all-features (diagnostics) build, then cargo test
--workspace, which includes the asset-policy test.

main did not build its tests: scalar_bit_tests_lower called lowers()
without the rsrc2 argument a parallel change added (0, no input
registers). Also drops a double parenthesis clippy flagged in an xasync
test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 09:55:29 +01:00
Marvis d002e1191b Merge pull request #93 from TG0000/perf/bcpack-bucket-lookup
BCPack: find a slot's bucket from a window table
2026-11-24 09:47:34 +01:00
Marvis 8ec67d6288 Merge pull request #88 from AndyLatimer/fix/title-size-overflows
Audio, watch: no overflow on huge title sizes (XMA read advance, fread)
2026-11-24 09:47:09 +01:00
Marvis 3fccceca6e Merge pull request #706 from Lyrnc/fix/cmp-lg-ordered
Shaders: v_cmp_lg is ordered on AMD hosts too (olt | ogt, not fcmp one)
2026-11-24 09:24:08 +01:00
Marvis 6979a342c7 Merge pull request #696 from catminou4/devin/formats-doc-micro-link
Docs: drop the private intra-doc link to MICRO in texture.rs
2026-11-24 09:23:50 +01:00
Marvis 39152fa979 Merge pull request #685 from catminou4/devin/constant-color-cfg-windows
Shaders: gate the constant_color test helper to Windows
2026-11-24 09:23:32 +01:00
Marvis f23a77fe42 Merge pull request #681 from fuzeofficlal/fix/vertex-buffer-null-unbind
GPU: unbind vertex buffer slots for null view arrays
2026-11-24 09:22:41 +01:00
Marvis 6a7c729cf9 Merge pull request #680 from EatCodeSleep2/fix/wine-staging-upload-128
GPU: use the host upload path for texture staging copies
2026-11-24 09:21:50 +01:00
Marvis 7ed7eba19a Merge pull request #675 from lameloball2813-ui/docs/rustdoc-private-links
Docs: rustdoc builds the loader, GPU and shader crates without warnings
2026-11-24 09:21:26 +01:00
Marvis 778b512619 Merge pull request #671 from fuzeofficlal/fix/copyresource-cpu-texture-source
GPU: upload CPU-written textures before full and region copies
2026-11-24 09:20:52 +01:00
Marvis 03bf20f544 Merge pull request #666 from lameloball2813-ui/fix/load-probe-target-dir
Loader tests: build the probe fixture under CARGO_TARGET_TMPDIR
2026-11-24 09:20:26 +01:00
Marvis bfb6c60264 Merge pull request #654 from SantannaCarlos/fix/uav-describe
GPU diagnostics: describe a buffer UAV by its range, not as uav None
2026-11-24 09:20:07 +01:00
Marvis e347e0a886 Merge pull request #637 from AlanQiang0418/codex/gfx10-packed-inline-constants
Shaders: decode GFX10 packed inline constants by operand type
2026-11-24 09:19:35 +01:00
Marvis cf63d91ac3 Merge pull request #634 from SAitken91/shader/image-sample-o
Shaders: image_sample_o with constant offsets
2026-11-24 09:19:15 +01:00
Marvis f27f2562e7 Merge pull request #612 from KoLolX3/fix/phi-liveness-transitive
Shaders: a phi that only another read phi consumes is live too (#604)
2026-11-24 09:18:51 +01:00
Marvis 8bf5ba956a Merge pull request #611 from AdvaitPalve11/fix/config-show-data-dir
core: show data_dir in config and check its asset policy
2026-11-24 09:18:28 +01:00
Marvis f89ca67715 Merge pull request #565 from SAitken91/shader/conservative-depth-position
Shaders: centroid position with conservative depth
2026-11-24 09:18:04 +01:00
Marvis a1322962e6 Merge pull request #520 from Quat3rnion/victory-xasync-payload
HLE: return XAsync payloads for nonnegative results
2026-11-24 09:17:39 +01:00
Marvis a9a3e01ff7 Merge pull request #448 from Dufftwt/fix/min-max-signed-zeros
Shaders: maximums and minimums order -0 below +0, as RDNA2 does
2026-11-24 09:15:49 +01:00
Marvis 26b2b2df63 Merge pull request #433 from r4tedx/tests/serialise-valu-gpu-tests
Shader tests: run the VALU GPU tests one at a time (cargo test hangs now and then)
2026-11-24 09:15:28 +01:00
Marvis 3f88f3c4e7 Merge pull request #432 from Proudnoob4/fix/uninitialized-sgprs
Shaders: reads of uninitialized SGPRs read as zero, as VGPRs do
2026-11-24 09:14:53 +01:00
Marvis 42eaf8c021 Merge pull request #429 from marquezinii/fix/xgamesave-documented-errors
XGameSave: the documented errors for a full disk and a small read buffer
2026-11-24 09:14:37 +01:00
Marvis ac1d1d971b Merge pull request #423 from pedrofort/shader-perm-no-int64
Shaders: lower dynamic v_perm_b32 without requiring INT64
2026-11-24 09:13:04 +01:00
Marvis 9965b3294b Merge pull request #419 from itsRevela/fix/swallow-keyboard-menu
Window: keep Alt and F10 from freezing the title in menu mode
2026-11-24 09:10:57 +01:00
Marvis 421669553d Merge pull request #418 from enzoduarte1/gpu/half-subnormal-output
GPU: write half subnormals from f32 rectangle outputs
2026-11-24 09:10:36 +01:00
Marvis 2c96e0e304 Merge pull request #384 from LouisRiverstone/shader-cvt16-saturate
Shaders: v_cvt_u16_f16 and v_cvt_i16_f16 saturate at 16 bits
2026-11-24 09:10:02 +01:00
Marvis 20ade29b30 Merge pull request #382 from Dufftwt/fix/stencil-ref-shader-flag
Shaders: a pixel shader writing SV_StencilRef declares StencilRef
2026-11-24 09:09:30 +01:00
Marvis 7e1f117950 Merge pull request #381 from Dufftwt/fix/psv-sample-frequency
Shaders: PSV0 says a pixel shader runs per sample when an input does
2026-11-24 09:09:11 +01:00
Marvis 6b4cca27e7 Merge pull request #376 from LouisRiverstone/shader-cvt-norm-f16
Shaders: lower v_cvt_norm_i16_f16 and v_cvt_norm_u16_f16
2026-11-24 09:08:34 +01:00
Marvis b4f8a1693b Merge pull request #372 from marquezinii/fix/capture-unorm16-formats
Capture: R16G16B16A16_UNORM targets are integers, format 89 is 10:10:10:2
2026-11-24 09:06:48 +01:00
Marvis b6eb823c04 Merge pull request #371 from marquezinii/fix/pls-path-small-buffer
Storage: a path buffer too small fails with E_FAIL, as on Xbox
2026-11-24 09:06:19 +01:00
r4.andClaude Fable 5.2 89639f014c Merge upstream main (42361b0) into shader/per-lane-phi
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.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-24 10:03:16 +02:00