Repository navigation
Conversation
8542185 to
8b73108
Compare
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
A note from #258 that applies to this PR too (my own diff had the same two tests in its list): @us3r40456's SFI0 check (#258 (comment)) shows I have not checked the SFI0 flags myself; the finding is @us3r40456's. On my M5 Pro (CrossOver 26.3, D3DMetal) both tests fail at AI use: Claude Code, Claude Opus 5.5 compared the two diffs and drafted this note. |
|
Tested on an Apple Silicon Mac, where D3DMetal reports Tested
Not tested
AI use
|
|
Test report from a second Mac, head Tested
Not tested
AI use
|
8b73108 to
01a236c
Compare
|
@vakaobr @us3r40456 right, thanks: @futurepro62 thanks for the Windows run on the 5070 Ti and the Radeon; this head only removes two skips, so nothing changes where AI-assisted (Claude Code, Claude Opus 5.5). |
An adapter that reports no DoublePrecisionFloatShaderOps still runs the recompiled f64 instructions, with wrong results: on Apple's D3DMetal (macOS, CrossOver) a program holding any f64 instruction gets 0 for its other results too (an integer add of 5 and 7 next to a v_add_f64 reads 0). The 9 f64 tests failed there, and so did gpu_clamp_and_omod_per_instruction and gpu_valu_16_and_64_bit, whose programs mix f64 with f16 and integer work. runner::f64_supported() reads the flag at init. Those 11 tests print "SKIPPED <test>: no f64" there; gpu_float_compares_random, which builds one program per type, skips only its F64 program. XCL_REQUIRE_GPU=wave64 / mesh does not turn a "no f64" skip into a failure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
01a236c to
46695ab
Compare
|
#787 measured on a third Mac (M5 Pro, CrossOver 26 + D3DMetal): base The host flag, from a plain D3D12 program (no XCL, reads no files): Base
Head What this host's f64 fault actually is, which is worth having on the record for the skip. It is wrong values from f64 operands, not missing writes. One interaction, because it changed between heads of this PR. At Not tested: Windows — this machine has no Windows host. Counts, line numbers, timings and result codes only; no game data. Host: macOS 27.2.1 (Apple silicon, M5 Pro, 48 GB), CrossOver 26 with D3DMetal, Rust 1.100.0, |
|
@mikebuckets171 thanks for the third Mac. One correction on the fault, since it bears on why two of these tests skip whole: AI-assisted (Claude Code, Claude Opus 5.5). |
|
#787 measured on a third Mac (M5 Pro, CrossOver 26 + D3DMetal): base The host flag, from a plain D3D12 program (no XCL, reads no files): Base
Head What this host's f64 fault actually is, which is worth having on the record for the skip. It is wrong values from f64 operands, not missing writes. One interaction, because it changed between heads of this PR. At Not tested: Windows — this machine has no Windows host. Counts, line numbers, timings and result codes only; no game data. Host: macOS 27.2.1 (Apple silicon, M5 Pro, 48 GB), CrossOver 26 with D3DMetal, Rust 1.100.0, |
|
Intel Arc verification at Tested on Intel Arc A770 (driver
Across the four first runs, libtest reported 3 passed, 1 failed, 0 ignored. The 3 include the two full skips above. #927 contains an overlapping capability probe and the same f64 gates, plus separate F16 tolerance and runtime fixes. The two heads conflict in Not tested the full suite or the PR base in this focused check. AI use Codex in T3 Code ( |
|
Regression run of Against the limits in CONTRIBUTING.md: 101 % of AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, AI use: Claude Code (Claude Opus 5.5) built both trees and ran |
|
@Toons29 thanks for the pairs here and on #1303, #1311 and #1313; pasted under Regression run in all four, with your hardware line. @JJAutoCompare thanks for the A770 run: the F16 subnormal failures there come from a program with no f64 in it ( |
An adapter that reports no
DoublePrecisionFloatShaderOpsstill runs the recompiled f64 instructions, but with wrong results. On Apple's D3DMetal (macOS under CrossOver; the flag is 0 there, checked with a plain D3D12 program)v_cmp_eq_f64(-0, 0)is false,v_rsq_f64(-0)is 0 instead of -inf,v_ldexp_f64(-0, 5)is +0, and a literal's high word reads as 0.0. A program that holds any f64 instruction gets 0 for its other results too: an integerv_add_nc_u32of 5 and 7 next to av_add_f64reads 0, while the same add alone reads 12. So the f64 tests fail there, and so do the tests that mix f64 with other work in one program, instead of saying the adapter cannot run them, as the wave64 and mesh tests do. Part of #258.What is in it
gpu/recomp/runner.rs:f64_supported(), read fromD3D12_OPTIONSat init.XCL_REQUIRE_GPU=wave64/meshdoes not turn a "no f64" skip into a failure.gpu/recomp/tests.rs:no_doubles(). It is true only when there is a GPU that has no doubles; without a GPU,gpu_ready/gpu_wavesreport "no GPU" as before. The 9 f64 tests return through it, and so dogpu_clamp_and_omod_per_instructionandgpu_valu_16_and_64_bit, whose programs mix f64 with f16 / integer instructions (their f16 "failures" here came from that).gpu_float_compares_randombuilds one program per type and skips only the F64 one; F32 and F16 still run.CONTRIBUTING.md,README.md: "no f64" added to the list of skip reasons.Tested
gpu::recomp::tests::gpu_*test in its own process, onmain64b3f35: 53 ok, 23 failed, 8 hung (the graphics / wave64 ones listed in macOS (Apple Silicon, CrossOver + D3DMetal): the newer retail game reaches its first-run menus at 30 fps #258). 12 of the failures are the ones below.gpu_f64_class_compare,gpu_rndne_f64,gpu_frexp_f64_exp_and_mant,gpu_f64_rounding_and_conversions,gpu_f64_roots,gpu_ldexp_f64,gpu_f64_compares_with_nan,gpu_f64_math_random,gpu_f64_literal_high_word,gpu_clamp_and_omod_per_instruction,gpu_valu_16_and_64_bit,gpu_float_compares_randompass withSKIPPED …: no f64(the last one runs F32 and F16, 0 failures).v_cvt_f16_f32with clamp / plain / omod alone on this host gives 0x3C00 / 0x4200 / 0x4600, as expected; after av_add_f64and av_cvt_f32_f64in the same program every result is 0, the integer add included.main930e8b4: the 12 tests above skip withSKIPPED …: no f64again, each in its own process;gpu_atomic_fcmpswap_x2fails as onmain(Tests: GPU tests of 64-bit atomics skip where those atomics write nothing #983). It merges cleanly with Tests: GPU tests of 64-bit atomics skip where those atomics write nothing #983 (the earlier head 8b73108 conflicted there, on the_x2guards) and with Recompiler: keep a draw's descriptor heaps alive until the list has run #553 D3D12.X: a stage the PC cannot run goes to the fallback without the driver #750 user: hide title console window when DWM cloaking is unavailable (#175) #794 XAudio2: GetState names the oldest queued buffer when the host gives none #890 Tests: skip the WARP frame-dump test where WARP is unavailable #957 Tests: implicit-LOD sample offset test uses s_wqm and the host's LOD #982 D3D12.X: timestamps are the CPU's clock on a host without GPU timestamps #996 Tests: the UMA import check test skips where D3D12 has no heaps over process memory #1024 stacked together.gpu_global_atomics_and_sub_dword_access,gpu_image_sample_offsetstill pass;gpu_wave32_program_in_wave64_hardwarestill skips with "no wave64".Regression run
Test-only change (plus docs); the pair is a regression check.
From @Toons29: AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, Windows 11 build 26300, release builds,
scripts/smoke.ps1, the same retail title for 60 s,main4178e88and this head: 101 % ofmain's frames, 100 % of its peak commit, no crash, no device removal.Not in this PR:
gpu_atomic_fcmpswap_x2,gpu_atomic_fmin_fmax_x2andgpu_more_atomics_sub_dword_scratch_valualso fail here, but their programs have no doubles (fcmpswap_x2isInterlockedCompareExchange64,fmin/fmax_x2go through 64-bit integer min / max inemit.rs); they fail on D3DMetal's 64-bit atomics, which #983 handles. An earlier head of this PR skipped the two_x2ones on "no f64"; that would have dropped passing coverage on an adapter with no doubles but working 64-bit atomics (the A770 in #42), so they are out (thanks @vakaobr, @us3r40456).Not tested
f64_supported()is true and nothing is skipped, but no run shows it.cargo test --workspaceas a whole (it does not finish under CrossOver, see macOS (Apple Silicon, CrossOver + D3DMetal): the newer retail game reaches its first-run menus at 30 fps #258).no_doubles()too.AI use
claude-opus-5-5): ran the sweep, wrote the change and this description.