Commit Graph
169 Commits
Author SHA1 Message Date
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
Marvis 738fd0efd9 Merge pull request #365 from FIocker/gpu/publish-initialized-descriptor-heap
GPU: replay pending descriptors before publishing the host heap
2026-11-24 09:02:47 +01:00
Marvis 0d069fbeec Merge pull request #356 from FIocker/gpu/stable-drop-rank
GPU diagnostics: order tied drop counts consistently
2026-11-24 09:02:21 +01:00
Marvis c5b9e8e3b8 Merge pull request #355 from enzoduarte1/clippy/clean-workspace-lints
Chore: clear two workspace Clippy errors
2026-11-24 09:01:59 +01:00
Marvis 5259ffa3c4 Merge pull request #341 from enzoduarte1/config/empty-test-titles-env
Config: ignore an empty VICTORY_TEST_TITLES
2026-11-24 09:01:04 +01:00
Marvis 97ef64d792 Merge pull request #336 from hophaver/fix/dynamic-descriptor-exhaustion
GPU: drop draws whose fresh tables cannot be made; 2^18 dynamic slots
2026-11-24 09:00:41 +01:00
Marvis 051482334c Merge pull request #313 from Abdellah-Khanani/loader-aligned-unwind
loader: unwind a 16-byte aligned copy of the context
2026-11-24 09:00:12 +01:00
Marvis a6aa850464 Merge pull request #285 from Dufftwt/fix/name-title-dll-that-fails-to-prepare
Loader: a title DLL that fails to prepare is named in the error
2026-11-24 08:59:50 +01:00
Marvis 0226b24ee1 Merge pull request #276 from Dufftwt/fix/s-ttracedata-imm-opcode
Shaders: s_ttracedata_imm is SOPP opcode 0x28, not 0x26
2026-11-24 08:59:20 +01:00
Marvis 30e510c0bf Merge pull request #260 from Dufftwt/fix/f32-to-half-rounding-carry
GPU: a half-float rounding carry raises the exponent instead of halving the value
2026-11-24 08:59:04 +01:00
Marvis 370fc43d42 Merge pull request #249 from Maraco91/gpu/get-device-newer-levels
GPU: GetDevice and the DXGI device hand out the device at every level
2026-11-24 08:58:40 +01:00
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
Marvis a1ea951500 Merge pull request #25 from artor410/packed-buffer-formats
Shader: decode the packed typed-buffer formats
2026-11-24 08:46:26 +01:00
quaternion 0c3870df62 fix(hle): return XAsync payloads for nonnegative results
GetResultSize and GetResult only treated S_OK as success, so a provider finishing with S_FALSE and a payload left the caller's buffers untouched and the call registered forever. Any nonnegative HRESULT is a success code; return the size, let the provider write the result, report bytes used, and release the call. Add a regression completing with S_FALSE and an eight-byte payload.
2026-11-24 02:25:33 -05:00
Advait Palve d8177c18d5 core: show data_dir in config and check its asset policy
'victory config' displays game_dir, cache_dir, and test_titles, but omitted data_dir (where saves, persistent local storage, and crashes.log are stored). It also omitted data_dir from the runtime asset-policy check loop in show_config().

Include data_dir in the output and policy check, and add a unit test in victory-core asserting that a data_dir inside the repository is refused.
2026-11-24 10:56:10 +05:30
Saitken91andClaude Opus 5.5 b12ac575b7 Shaders: centroid position with conservative depth
Pixel programs that write SV_DepthLessEqual or SV_DepthGreaterEqual
failed validation: "Interpolation mode for PS input position must be
linear_noperspective_centroid or linear_noperspective_sample when
outputting oDepthGE or oDepthLE". The position is now declared
linear_noperspective_centroid in those programs, as DXC declares it;
without multisampling the value is the same.

translate --validate on shaders.rpf: vertex/pixel 12172 -> 12186
validated; the error is gone from the list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-23 23:01:02 -06:00
hophaver cbc9ece918 GPU: the larger dynamic range only where the heap still fits
A host that refuses the title's slots plus 2^18 dynamic ones (NVIDIA's
1,000,000-view cap) now gets 2^16 dynamic slots, as before, instead of
losing mirrored title slots to the larger range: at the cap, 2^18 left
737,856 title slots against 934,464, and titles were seen to index slots
up to 917,140. The cap itself is unchanged. Hosts that take the larger
heap (RX 9070 XT) keep 2^18.
2026-11-24 05:55:13 +02:00
Duff 1d371310a9 Shaders: maximums and minimums order -0 below +0, as RDNA2 does
v_max_f32, v_min_f32, their three-operand and f16 forms and the packed
v_pk_max_f16/v_pk_min_f16 were lowered to DXIL's FMax and FMin. DXIL
specifies those as a compare and select, so with a -0 and a +0 either
zero can come out, depending on the operand order and the host; RDNA2
orders -0 below +0, so max(-0, +0) is +0 and min(-0, +0) is -0 in
either order. A -0 that should have been +0 then turns, say, a
following reciprocal square root's +inf into -inf.

A new helper keeps FMax/FMin for everything but two zeros, which it
resolves by their sign bits.
2026-11-24 04:25:55 +01:00
r4.andClaude Fable 5.2 59427798bc Shader tests: run the VALU GPU tests one at a time
`cargo test` now and then never finishes: the seven emit::valu_tests
that run on the hardware adapter and on WARP start together on the
test threads, none of their dispatches completes, and the test binary
keeps one core busy until it is killed (the waits spin on the fence).
Any other GPU test running at that moment is stuck with them.

On an RTX 5070 with a Radeon iGPU, `valu_tests` alone in a loop on
main d2a4bae: 3 of 30 runs hang. With `run_cases` behind a
process-wide lock: 0 of 60, and the seven tests take under 7 s.

The lock is poison-tolerant, so one failing test does not fail the
rest.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-24 05:18:27 +02:00
local 0d594727c4 Shaders: reads of uninitialized SGPRs read as zero, as VGPRs do
Compute programs read SGPRs the hardware does not initialize when two
branches make the paths look like they allow a read before a write, even
though the branch that skips the write does not reach the read. That stops
translation with 'a hardware SGPR input is not supported' and drops the
program's dispatches.

ComputeIo::initialized_sgprs() counts the user SGPRs, the enabled system
ones and the scratch wave offset. A read of a general SGPR (0..=105) at or
above that count holds whatever the previous wave left, so no program can
depend on its value: read it as zero, as unset VGPRs already are. Reserved
registers (VCC, trap temporaries, M0, EXEC) keep their current handling.
2026-11-23 22:16:27 -05:00
marquezini 017aca993f XGameSave: a full host disk is E_GS_OUT_OF_LOCAL_STORAGE, not the quota
An update that fit the user's 256 MB quota but not the host disk failed
with E_GS_QUOTA_EXCEEDED, which tells the player to delete saves. The
documentation keeps the two apart: E_GS_OUT_OF_LOCAL_STORAGE is the
device out of room and can come before the quota is reached. The disk
check also no longer credits the blobs an update replaces, since the
new version is written before the old one is removed.
2026-11-24 00:13:26 -03:00