Repository navigation
Conversation
|
AI-assisted independent verification of
Only |
|
Tested 5043c08 on NVIDIA GeForce RTX 4070 SUPER, driver 621.01, Windows 11 Home 25H2 (26200.9974), VS 2022 Build Tools, Vulkan SDK 1.4.363.1, llvm-mc 21.1.8: pass
AI-assisted. No game files. |
quackottu
left a comment
There was a problem hiding this comment.
Tested 5043c08 on NVIDIA GeForce RTX 5070 (subgroup 32), driver 621.24, Windows 11 Pro (26300), Vulkan SDK 1.4.363.0, llvm-mc 21.1.8 (built with scripts/build_llvm_mc.ps1), scripts/run_gpu_tests.py:
- native: 84/111 passed, 27 skipped (
main8df277f here: 64/91 passed, 27 skipped, all wave64 tests needing a 64-wide subgroup) LEONIDA_W64_EMULATE=1: 111/111 passed (mainhere: 91/91)python -m unittest discover -s tests/semantic: Ran 1103 tests in 194.143s OK
|
Tested 5043c08: pass on both GPUs. Windows 11 26200, MSVC 19.44, llvm-mc 23.1.6, Vulkan SDK 1.4.363, runtime built from
No game files. AI-assisted (Claude Code). |
IAmNotSiob
left a comment
There was a problem hiding this comment.
yep, FClamp with a NaN is undefined. NMax(NaN, 0) = 0 gives the hw's NaN -> 0 without guessing. tests pass with main ^^ (#409 had the same goal a while back, might be worth closing that one if it's stale) AI-assisted review (Claude Code).
|
Tested 5043c08 on AMD Radeon RX 6800 (RDNA2, RADV NAVI21, Mesa 26.3.1, Vulkan 1.4.363), Arch Linux container on Linux 7.2.15: pass
Control: this PR's tree with only the
So on this GPU and driver the PR makes no difference to the generated code and introduces no regression. The fix matters where a driver lowers AI-assisted (Claude Code). No game files. The run used a rootless podman container with no network. |
YaBulochka
left a comment
There was a problem hiding this comment.
Tested 5043c089 from a clean worktree on AMD Radeon RX 7600 (gfx1102), RADV Mesa 27.0.0-devel, Linux 7.3.3:
tests/semantic/test_f32_cvt_pk_u8.py-> 2 passed, 13 subtests.scripts/run_gpu_tests.py: 113 shaders translated andspirv-val; 111/111 passed, including
PASS cs_cvt_pk_u8 0xaabb00dd 0xaabb00dd 0xaabb00dd 0xaabb00dd 0xaabbffdd 0xaabb0cdd 0xaabb0edd 0xaabb00dd.
So the NaN path gives 0 on this card, same as the measurement that motivated the fix.
One coordination note: #409 implements the same behaviour (FClamp replaced, with a GPU test whose expected words are the hardware ones) and has already been verified on this card at fc1895e. Under the rule that the first to land wins, whichever merges first makes the other redundant; this branch is currently CONFLICTING against main, so a rebase is what it needs if it is to be the one.
Summary
Closes the �_cvt_pk_u8_f32(NaN) (FClamp) open gap listed in docs/design.md (line 266):
untime/test/shaders/cs_cvt_pk_u8.asm wired into
untime/test/shaders/check.py and scripts/run_gpu_tests.py.
Testing (AI-assisted, no game files)