Commit Graph
112 Commits
Author SHA1 Message Date
Marvis a76eb7900a Merge pull request #245 from Dufftwt/fix/import-trap-in-crash-log
Loader: a trapped unimplemented import goes into the crash log
2026-11-24 08:58:12 +01:00
Marvis fd6c1c8b77 Merge pull request #239 from Maraco91/xtaskqueue/terminate-ends-dispatch
XTaskQueue: terminating a queue ends a dispatch waiting on it
2026-11-24 08:57:51 +01:00
Marvis 52e55b493a Merge pull request #229 from Dufftwt/fix/gamertag-modern-suffix-empty
XUser: a gamertag without a suffix has an empty modern suffix
2026-11-24 08:57:16 +01:00
Marvis 2909cb0780 Merge pull request #209 from Maraco91/xgamesave/empty-configuration-id
Game saves: an empty configuration id no longer deletes the other configurations' saves
2026-11-24 08:56:50 +01:00
Marvis 6443126216 Merge pull request #205 from asdaasdsaddf/fix/null-uav-dimension
GPU: give null texture UAVs the title's view dimension
2026-11-24 08:55:06 +01:00
Marvis 6e225dc2c5 Merge pull request #204 from Dufftwt/fix/crash-report-fault-memory
Crash reports: say what an access violation's address holds
2026-11-24 08:54:19 +01:00
Marvis ca4477b6f2 Merge pull request #198 from Dufftwt/fix/crash-report-instruction-bytes
Crash reports: show the bytes of an instruction the CPU refused
2026-11-24 08:53:55 +01:00
Marvis 5df399851f Merge pull request #167 from Maraco91/xmem/zero-length-unmap
xmem: mapping or unmapping no pages changes nothing instead of aborting
2026-11-24 08:53:32 +01:00
Marvis 6015fbbc96 Merge pull request #161 from lordon1a/fix/pipeline-staging-cleanup
pipeline: remove staging files when cache publication fails
2026-11-24 08:52:35 +01:00
Marvis d046bb8901 Merge pull request #152 from Makto94/fix/net-test-win10
net: skip newer-Windows-only exports in only_loopback_is_reachable
2026-11-24 08:52:07 +01:00
Marvis 172a7d5703 Merge pull request #140 from lordon1a/feat/cmp-class-f16
Shaders: lower v_cmp_class_f16 and v_cmpx_class_f16
2026-11-24 08:51:39 +01:00
Marvis 708b818662 Merge pull request #117 from tedin7/vic-s-bitcmp-2
Shaders: lower s_bitcmp0/1_b32 and s_bitcmp0/1_b64
2026-11-24 08:51:06 +01:00
Marvis 6c459f33c5 Merge pull request #111 from Dufftwt/fix/narrow-paths-translated-twice
Files: send rewritten narrow paths to the host, not to our wide wrappers
2026-11-24 08:50:16 +01:00
Marvis b5167a893c Merge pull request #104 from TG0000/perf/bitcode-worklist-liveness
Shaders: find the written instructions with a worklist, not repeated passes
2026-11-24 08:49:47 +01:00
Marvis b8d3d51b0e Merge pull request #87 from jeremygold02/codex/copy-stat-frame-window
fix(gpu): average copy statistics over the full reporting interval
2026-11-24 08:48:47 +01:00
artor410andClaude Opus 5.5 7ff79d9463 shader: decode the packed typed-buffer formats
Typed buffer loads in the 10_11_11, 11_11_10 and 10_10_10_2 families
(GFX10 unified formats 30-49) were refused, failing the shader. Fill in
their channel layouts and decode the unsigned 11- and 10-bit floats by
shifting them into half position for legacyF16ToF32, which is exact for
denormals, infinities and NaNs. Format numbers from LLVM's UfmtGFX10,
channel order from Mesa's ac_formats.c.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-23 23:03:19 -03:00
Maraco91andClaude Fable 5.2 6aa823e491 XTaskQueue: terminating a queue ends a dispatch waiting on it
XTaskQueueDispatch with an infinite timeout waited until a callback was
queued. Terminating the queue refuses new callbacks and drained the
queued ones without waking anyone, so a dispatcher thread's loop
(`while (XTaskQueueDispatch(queue, port, INFINITE));`, which ends by
terminating the queue) stayed in its wait for good, and so did whoever
joined that thread. A dispatch begun after the termination did the same.

A dispatch now also ends, returning false, when its queue is
terminated: the termination wakes the port's waiters after draining it.
The flag is the queue's, so a dispatch on another queue that shares the
port waits on.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-24 02:42:41 +01:00
Duff a6569753b9 Loader: a trapped unimplemented import goes into the crash log
An unimplemented import with the default Trap policy printed its name
and aborted. abort() is a fast fail: it skips the exception handlers
and the panic hook, which are what append to crashes.log, so the most
common bring-up crash left nothing there, not even which import it was.

The trap now reports through log_crash, which prints the same line,
appends it to the crash log and adds the title's last debug output.
2026-11-24 02:39:39 +01:00
Duff f64a3cc0e5 XUser: a gamertag without a suffix has an empty modern suffix
XUserGetGamertag returned the name for every component, the modern
suffix included. The GDK documents the suffix as empty when there is
none, and a title that shows "name#suffix" whenever the suffix is not
empty showed "Player#Player".

The modern suffix (component 2) is now empty; the classic, modern and
unique modern components are still the name.
2026-11-24 02:32:25 +01:00
Andrea Casale 6583b9068f net: rustfmt the presence assertion 2026-11-24 02:30:19 +01:00
Andrea Casale 73ec61d39d net: skip newer-Windows-only exports in only_loopback_is_reachable
WinHttpGetProxySettingsEx is absent from Windows 10's winhttp.dll, so the
host-presence assertion panicked there. The HLE supplies it itself; skip it
only when the host lacks it, keeping the check for every other export.

Fixes #118
2026-11-24 02:30:19 +01:00
Maraco91andClaude Fable 5.2 1cd5aacc56 Game saves: an empty configuration id is the default, not every configuration's folder
A provider's folder is the user's folder plus the configuration id as a
file name. An empty id gave the user's folder itself, where the other
configurations' folders are. Opening the provider converts containers
of the old layout, which are folders without a `~` or a dot in their
name, as a configuration's folder is: each was taken for one, an empty
container was committed in its place and the folder was removed with
every save in it.

An empty id is now treated as no id (the default configuration).

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-24 02:26:58 +01:00
julioandClaude Opus 5.5 ecb5dc99c2 GPU: give null texture UAVs the title's view dimension
When the host cannot make an unordered-access view (no host texture, a
format the host does not allow, a placed texture not mirrored), null_for()
wrote a 2D null UAV whatever the title asked for. A shader that writes a
3D texture through it then has a dimension mismatch: GPU-based validation
reports it ("UAV Dimension Expected: TEXTURE3D, UAV Dimension In
Descriptor: TEXTURE2D") for the world's wind field
(WindNew:CS_CopyWindFieldBeforeUpdateWithSmooth, compute 5bb23d336331db1d,
image_load/image_store dim:SQ_RSRC_IMG_3D). Shader views already get a
null view of the title's dimension (null_like); unordered views did not.

Null texture UAVs now keep the title's dimension: 1D, 1D and 2D arrays,
3D (WSize -1). Multisampled and unnamed dimensions stay 2D. With this,
the validation error is gone on an RTX 5070.

Tests: the dimension mapping, and a null 3D UAV made on the real device
leaves it alive.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-23 21:24:11 -04:00
Duff f98d7e8e34 Crash reports: say what an access violation's address holds
An access violation is reported with the address it touched and
nothing else, so a read of free memory, a write to memory that was
reserved but whose commit failed, a stack guard page and a write to
code or constants all look the same in a report.

The report now adds what VirtualQuery says is at that address: nothing,
reserved but never committed, a guard page, or the page's protection,
with the module for an image's pages.
2026-11-24 02:18:49 +01:00
Duff a87917d779 Crash reports: show the bytes of an instruction the CPU refused
An illegal or privileged instruction is reported by its address only,
which does not say which instruction it was. On an Intel host that is
the question every such report raises (clwb, clzero, rdpru, an SSE4a
form...), and reporters have had to guess or dump the bytes by hand.

The report's first line now ends with up to 15 bytes at the faulting
address, as hex, read no further than the end of that page, so the
report names the instruction by itself.
2026-11-24 02:12:05 +01:00
Maraco91andClaude Fable 5.2 557bdae844 xmem: mapping or unmapping no pages changes nothing
XMemMapPhysicalPages with a count of 0, and the GPU's page-mapping copy
of a zero-length range, went into unmap with an empty range. Its search
for views starting inside asked the view map for a range that runs
backwards, which BTreeMap panics on once any view exists; in an
extern "system" function that aborts the process. Without that panic
the view holding the address would have been unmapped and mapped again
as two.

unmap now returns at once for a length of 0.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-24 02:02:38 +01:00
Codex 620940fc37 pipeline: remove staging files when cache publication fails
Reserve a new staging path and clean it up if writing or publishing fails. Cover a failed publication with a synthetic destination directory.
2026-11-24 04:00:44 +03:00
Marvis 35e8407c9c Merge pull request #129 from Luislariosss/fix/duplicate-test-module
GPU: rename the second test module in host.rs so the tests compile
2026-11-24 01:57:52 +01:00
lordon1a 70e22cb987 Shaders: lower v_cmp_class_f16 and v_cmpx_class_f16 2026-11-24 03:53:26 +03:00
LUIS LARIOS 7c59cc6f48 GPU: rename the second test module in host.rs so the tests compile
cargo test --workspace does not compile on main: host.rs declares
#[cfg(test)] mod tests twice, once near the top for the warp adapter test and
once at the end for the Batch::texture_due tests, so rustc rejects the crate
with E0428 before running anything:

    error[E0428]: the name 	ests is defined multiple times
    --> crates\victory-gpu\src\host.rs:1974:1

The second block only touches Batch, so it becomes mod batch and keeps its
two tests. cargo test -p victory-gpu --lib goes from "could not compile" to
43 passed, 0 failed, 1 ignored, and cargo test --workspace compiles again.
Nothing else changes: one line, no test bodies touched.
2026-11-23 18:46:19 -06:00
Marvis 2e52345f19 Merge pull request #51 from BaggyALPHA/fix/windows-commit-limit-diagnostic
Report Windows commit-limit failures in crashes.log
2026-11-24 01:43:50 +01:00
Marvis 23a6fe2539 Merge pull request #53 from a55uka/fix/wine-physical-pages
xmem: commit physical-page sections whole under Wine
2026-11-24 01:43:31 +01:00
Marvis 3fe3f1b09f Merge pull request #41 from LaunchDoesntCode/codex/proton-warp-safety
GPU: reject non-software WARP adapters under Proton
2026-11-24 01:43:06 +01:00
Marvis 73bdf6db84 Merge pull request #46 from 9hvn9yt2vk-netizen/shader-loop-limit
shader: VICTORY_SHADER_LOOP_LIMIT to find what makes world frames slow
2026-11-24 01:42:45 +01:00
Marvis 66670005fe Merge pull request #70 from FIocker/gpu/diagnostic-pipeline-filter
GPU diagnostics: skip pipelines by shader hash
2026-11-24 01:42:21 +01:00
Marvis 4229e5f9a8 Merge pull request #61 from TG0000/hle/physical-page-runs
xmem: write DirectStorage page destinations one view per run
2026-11-24 01:41:55 +01:00
Marvis 346379e331 Merge pull request #60 from ifBars/perf/reuse-texture-row-spans
Texture: reuse contiguous column runs across rows
2026-11-24 01:41:34 +01:00
Marvis e43a7379f6 Merge pull request #79 from TG0000/perf/texture-check-once-per-submission
GPU: check a sampled texture once per submission, not once per list
2026-11-24 01:41:12 +01:00
Marvis d43be4ffbe Merge pull request #66 from AndyLatimer/fix/gpu-rect-element-past-stride
GPU: leave rectangle vertex components past the stride alone
2026-11-24 01:40:50 +01:00
Marvis 5b4e38d7e6 Merge pull request #77 from Exorion1er/fix/guard-fault-race
GPU: keep a guarded block's write fault from being declined in a race
2026-11-24 01:40:25 +01:00
Marvis 69c43d71aa Merge pull request #36 from jeremygold02/codex/root-parameter-fixture
test(gpu): use the SDK root parameter in the serializer fixture
2026-11-24 01:40:04 +01:00
Marvis 45863ced7b Merge pull request #57 from Yaekai/fix/null-buffer-views
GPU: emit null buffer SRV/UAV when descriptor names a buffer with null resource
2026-11-24 01:39:35 +01:00
tedin7 d914fa2690 Shaders: lower s_bitcmp0/1_b32 and s_bitcmp0/1_b64
The scalar bit tests decode and are tracked in ir.rs (they write SCC) but the lowering had no case for them, so any shader using one failed to translate with Unsupported.
2026-11-24 01:38:59 +01:00
Marvis 64c51313af Merge pull request #37 from alessiodeia/fix/valu-med3-fract-trig
shader: keep fract(NaN) as NaN on NVIDIA and add synthetic GPU VALU tests
2026-11-24 01:38:41 +01:00
Marvis bfd36dc4af Merge pull request #80 from tedin7/vic-far-jump-backward
shader: decode backward far jumps (signed offset literal)
2026-11-24 01:37:00 +01:00
Marvis 2ff52dae91 Merge pull request #81 from tedin7/vic-scalar-carry
Shaders: set SCC from the carry of s_addc_u32 and s_subb_u32
2026-11-24 01:36:05 +01:00
Marvis 32704bb307 Merge pull request #58 from Yaekai/feat/shader-xnor-swap
Shaders: lower v_xnor_b32 and v_swap_b32
2026-11-24 01:35:31 +01:00
Marvis 0d7b42a3a9 Merge pull request #56 from 9hvn9yt2vk-netizen/find-input-underflow
shader: look up an input channel without underflowing
2026-11-24 01:34:59 +01:00
Marvis acd540dc18 Merge pull request #43 from 9hvn9yt2vk-netizen/shader-mask-cycle
shader: a lane mask that needs its own value fails instead of overflo…
2026-11-24 01:34:43 +01:00
Marvis b70bb6871a Merge pull request #50 from Vanthys/fix/format-offset-overflow
Guard texture and XMA offsets against overflow
2026-11-24 01:34:04 +01:00