Commit Graph
172 Commits
Author SHA1 Message Date
Marvis 9a92ccf4a6 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 204bdcc108 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 a4d7b16da0 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 fd925582f1 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 dd54de2f71 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 0ddbce888e 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 ce42e77634 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 f0894c2b5c 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 9f18eb4587 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 dd273df1b8 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 3c86238217 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 2e4e280dc0 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 faba64c5f3 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 c30fc990ec 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 ebf3615931 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 f67c50c1f6 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 40b7ed1add 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 7374bfb8ec 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 42361b07c2 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 2745589dc4 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 533b7e2543 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 edf64e2fac 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 5a16e66f9e 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 93c0852d3f 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 db89843e98 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 89e1031760 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 88b665822f 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 56d503228a 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 9e44f388c7 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 7c8cecba8c 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 27f9b769cd 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 6af0faeb3e 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 27c960ba6c 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 3dd37e60f0 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 13ac0e6ff0 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 787f665f4d 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 ba7d873f98 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 80c0d120f5 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 3d77d5e202 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 b0328bacc6 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 0e990e4021 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 c2e7254aeb 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 1f858b0f27 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 3e39eac1c5 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
KoLolX3 3dd467ccee Shaders: a phi that only another read phi consumes is live too
fill_phis treats a phi no one read directly as dead and fills a value
with no DXIL form (an unsupported s_memtime result, say) with zero. When
that value reaches a read through two joins, the first phi is only read
by the second, so it was never marked read: the read lowered with a
zero where the same value read directly is refused with "a scalar
memory read as data".

Mark the incoming phis of every read phi as read, transitively, before
the phis are filled. The reproducer from #604 now agrees for the direct
and the joined read, and the dead control (the timestamp replaced by a
group id) still lowers.
2026-11-23 21:36:08 -08:00
Dathinel 25b0f888ca Test probe: compare direct and joined reads of a shader timestamp
(cherry picked from commit 4b2ea70f0940a4317dc934000d249dce0fce50f6)
2026-11-23 21:35:20 -08:00
Advait Palve 9a8908c378 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 c249f02dd5 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 e8d3b6432e 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 bf84134b2b 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