Commit Graph
259 Commits
Author SHA1 Message Date
localandClaude Opus 5.5 fa967c0340 Merge fork main a803c87
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 18:57:47 -06:00
localandClaude Opus 5.5 9fea7434cd Streaming, copy queue, texture pools and a shader cache that survives rebuilds
Textures and staging cut from 64 MB blocks; a kept view per page section and
page lists read again until the title has filled them in; the GPU side told
when streamed bytes land; results fetched over the copy queue
(VICTORY_RELAY_COPY=1); the write-watch journal behind a reader-writer lock;
the shader cache keyed by the translator's sources and `victory shaders`;
helper lanes as in upstream 1733 (VICTORY_HELPER_OWN).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 18:55:40 -06:00
fxcelessandClaude Fable 5.2 a803c87c48 Textures picked by index are looked at again after their upload (characters' skin and hair without colour in most launches)
A texture a shader picks by index was uploaded once, when the title wrote
its view, and again only if the view was rewritten or the runtime told of
a remap. The title often fills the texture's memory only afterwards (its
streaming reads land later), so the host copy kept what the memory held at
the first look for the rest of the run: zeros. Which textures lost that
race changed from launch to launch; the main character's face came out
black and her hair pale in about three launches of four.

Now a texture uploaded whole is looked at again after 4, 12, 40, 120 and
400 frames (a fingerprint of 48 KiB of its memory); a changed one is
uploaded again and the looks start over. One test launch re-uploaded more
than 6,000 textures this way. VICTORY_HEAP_RECHECK=0 turns it off.

Known gap: the fingerprint samples the start, middle and end of the
memory, so a texture whose other parts arrive later is still missed.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-24 19:29:47 -05:00
fxcelessandClaude Fable 5.2 31714deb2d Take the fix/amd-view-heap-clamp branch of triippywhale's fork (as one commit)
Every host view heap ends at a null slot that view indices past the heap
read (a host that takes large heaps gets 2^21 views; one that caps them
keeps the capped heap), the cache key includes that limit, and
v_permlane16/x16 are lowered.

Both forks lower v_cvt_f32_f64. The IEEE form with its test is the one in
use; this branch's flush-to-zero form is kept beside it, unused, and its
test is ignored until the console's float mode for the instruction is
checked.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-24 19:00:31 -05:00
fxcelessandClaude Fable 5.2 3bff182ef4 Take the test/fx-prs branch of asdaasdsaddf's fork (as one commit)
Double-precision shader instructions (v_cvt_f32_f64, v_add_f64 sums, the
makeDouble overload name and flag), a first half of a paired interpolation
read as data, sooner eviction of idle textures and caches under memory
pressure, a retried DirectStorage destination write, the texture catch-up
budget, VICTORY_FIRSTLANE_OWN, and zlib-rs in place of miniz_oxide.

Left out: the fork's personal launcher scripts and its readme.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-24 19:00:31 -05:00
fxcelessandClaude Fable 5.2 2119b0e44c Put the parked lane-mask change (#11) back
The previous commit took it out; that was not wanted. The tree is again as
it was before that commit.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-24 17:00:18 -05:00
fxcelessandClaude Fable 5.2 9e49b8a04e Take the parked lane-mask change (#11) back out for now
Its programs translate and run, but on the test machine the lighting gain
could not be shown, it costs about 40 ms of GPU time per frame, and the
picture is being re-checked one change at a time from a known-good tree.
It may come back once that is settled.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-24 16:59:43 -05:00
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