Commit Graph
163 Commits
Author SHA1 Message Date
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
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
r4.andClaude Fable 5.2 1106f43efe 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 f4438b38f4 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 f0ee35e9df 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
Pedro Fortunato d5704aaac6 fix(shader): lower dynamic v_perm_b32 without INT64 2026-11-24 00:13:10 -03:00
marquezini 28c1b0735c XGameSave: a read result into a small buffer is E_GS_PROVIDED_BUFFER_TOO_SMALL
XGameSaveReadBlobDataResult lists E_GS_PROVIDED_BUFFER_TOO_SMALL among
its errors, and the synchronous read already returns it; the result
passed on XAsyncGetResult's E_NOT_SUFFICIENT_BUFFER instead.
2026-11-24 00:12:40 -03:00
Enzo Souza Duarte eb30a0d9f4 GPU: write half subnormals from f32 rectangle outputs 2026-11-24 00:09:56 -03:00
itsRevelaandClaude Opus 5.5 ff8694a69a Window: keep Alt and F10 from freezing the title in menu mode
Alt or F10 sends WM_SYSCOMMAND SC_KEYMENU, and the default handling runs
a modal menu loop on the thread that owns the window, which is the
title's. The title stops drawing and reading input until a key ends the
loop, with nothing on screen to say so, and Grand Theft Auto VI aborts
itself about half a minute later (the deliberate write to 0 at
+0x23cf683). The window procedure now drops SC_KEYMENU, next to its
SC_CLOSE handling. The mouse can still open the window menu.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-23 20:56:27 -06:00
Luiz Neves 2af66ff1d8 Shaders: v_cvt_u16_f16 and v_cvt_i16_f16 saturate at 16 bits
They went through a 32-bit conversion, so an f16 past the i16 range
(32768 up to 65504) wrapped, and infinities and NaN were undefined. The
value is now clamped in f32 to the 16-bit range first (every f16 is exact
there) and NaN gives 0, as the hardware's conversions do.
2026-11-23 23:49:01 -03:00
Duff c2f60d6bdd Shaders: a pixel shader writing SV_StencilRef declares StencilRef
exp mrtz's channel y is lowered to an SV_StencilRef output, but the
module's shader flags never had StencilRef (bit 11) and SFI0 never had
D3D_SHADER_FEATURE_STENCIL_REF (0x200). DXC sets both for a pixel
shader whose output signature has the stencil reference, and the
validator checks the flags against the module.

Both are now set when a pixel shader outputs SV_StencilRef.
2026-11-24 03:46:04 +01:00