Commit Graph
252 Commits
Author SHA1 Message Date
local 7f166af4f3 Merge PR 45 2026-11-24 15:43:53 -06:00
local 1cbc2787c6 Merge PR 42 2026-11-24 15:43:53 -06:00
local 675275a999 Merge PR 38 2026-11-24 15:43:53 -06:00
local 40a2f6a323 Merge PR 23 2026-11-24 15:43:53 -06:00
localandClaude Opus 5.5 ffdde86ef6 Pipeline workers follow the CPU; one pad that never disconnects
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 15:43:53 -06:00
local 2d12b19052 Merge PR 52 2026-11-24 15:30:10 -06:00
local cc8d3f7c11 Merge PR 40 2026-11-24 15:30:10 -06:00
local 0e1e518670 Merge PR 25 2026-11-24 15:30:10 -06:00
local 75f1741468 Merge PR 9 2026-11-24 15:30:10 -06:00
local fa06da47dc Merge PR 58 2026-11-24 15:30:09 -06:00
local 3489be5b9f Merge PR 51 2026-11-24 15:30:09 -06:00
local 751c212f89 Merge PR 24 2026-11-24 15:30:09 -06:00
fever308 010b90a117 gpu: share video_memory query in heap_textures and lower 16 GB cutoff to 12 GiB 2026-11-24 15:08:01 -06:00
fever308 de4ae6163b gpu: lower 16 GB VRAM budget cutoff to 12 GiB and saturate env override shifts 2026-11-24 15:07:05 -06:00
SlopComp c5b12f1202 Textures: guarded textures are hashed at every check while they may change behind the guard
The guard on view memory sees no write made through another view of the
same pages; such a change was found only by the hash every eighth frame.
The boot logo video and the loading animation write their textures that
way every frame (a ring of three): each showed up to eight frames late
and in turns, so the presented picture cycled through three, a new one
every eight frames, and flickered. The six-star screen of the first
seconds changed before the hash ever caught it.

A guarded texture is now hashed at every check for its first 64 frames,
and for 64 frames after each change the guard missed; textures that stay
unchanged go back to every eighth frame.
VICTORY_TEXTURE_HOT=0: every eighth frame only, as before.
2026-11-24 14:59:18 -06:00
jaschinski97-ops 81a8e2e313 Skip first-half use tracking when no interpolation is present 2026-11-24 21:58:36 +01:00
jaschinski97-ops 15cc76c39f Shaders: retain live interpolation first halves 2026-11-24 21:57:30 +01:00
pgm1207 eb5061cca6 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
fever308 9beff3cd4b gpu: scale texture VRAM floor and per-frame staging budget from VRAM 2026-11-24 14:53:05 -06:00
fever308 fffafee5c7 gpu: auto-scale card buffer limits from local VRAM budget 2026-11-24 14:49:10 -06:00
Noname0202 61e5f79ac6 Shaders: use makeDouble.f64 overload and DXIL ShaderFlags bit 2 for DOUBLES 2026-11-24 21:47:24 +01:00
jaschinski97-ops 4d3aaab711 Shaders: lower row permutations on wave32 hosts 2026-11-24 21:45:58 +01:00
spacede 05ee438706 GPU: parallelize copy refreshes on multicore hosts 2026-11-24 21:45:38 +01:00
spacede 5a32c08c29 GPU: document adaptive copy refresh 2026-11-24 21:45:29 +01:00
fxcelessandClaude Fable 5.2 4e17478b9c 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 90228a7dc6 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 3930989355 Fix mesh pipeline test on unsupported GPUs (#14) 2026-11-24 15:35:00 -05:00
Noname0202 cb80bf0f9c Shaders: lower immediate samplers chosen by uniform control flow 2026-11-24 21:23:58 +01:00
NuraadGit 1d2f476302 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 16849898f3 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
warmooff-ops 04512df483 hle/gameinput: increase reading history from 32 to 256 for low-FPS frames 2026-11-24 21:12:31 +01:00
Noname0202 b17b69fd9e Shaders: model v_add_f64 whole-wave sums and s_mov_b32 copies 2026-11-24 20:39:19 +01:00
fxcelessandClaude Fable 5.2 7b0f736d0b 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 e9765a73a6 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
Noname0202 342245e152 Shaders: lower v_cvt_f32_f64 in 32-bit IEEE-754 integer arithmetic 2026-11-24 20:26:47 +01:00
fxcelessandClaude Fable 5.2 004bf69a4b 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 d279e69ae9 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 6a2d9f99c9 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 578d459c34 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 ffe310eb20 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 ca48fbea88 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 74a9d3316d 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 e09dbb6dae 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 8e79c80e4b 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 c7a5f4953f 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 2005e35afd 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 58fed3704f 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 a51bdfa500 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 02f404efec 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 5cd7421715 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