tests: expect the decoder's refusal for the invalid word in native_wave_request #2928
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2928"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-26T21:37:13Z.
What
native_wave_request_hardwarefails oncpp-migrationfor every adapter (reported on NVIDIA and AMD in #2915). The check feeds the invalid word0xfffffffftocompile_dxiland expects "unsupported instruction". That word is not a gfx1013 encoding, so the decoder (src/gfx1013_isa.cpp:128) refuses it before lowering withunknown gfx1013 instruction format at byte N.The check now expects that message. It still asserts a non-zero exit and that no
.csois written, and it prints stderr on failure.Refs #2915 (only the refusal-message part; the AMD access violations are tracked there separately).
How tested
Base
cpp-migrationee76dfa8. NVIDIA GeForce RTX 3080 driver 32.0.16.2124, Windows 11 build 26200, MSVC toolset 14.51.36231, Windows SDK 10.0.26100 DXC, D3D12 debug layer not enabled.AI-assisted.
🤖 Generated with Claude Code
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-26T21:55:53Z.
Review: APPROVED
Review of head
1f0d39bd. I reported this failure in #2915.Run: the PR's
tests/native_wave_request_check.py, run directly against a release build ofcpp-migration7f951fd3. The PR changes only this file. Windows 11 build 26300.9974, AMD Radeon RX 9070 XT, driver 32.0.32029.2010, Windows SDK 10.0.26100 DXC, D3D12 debug layer not enabled.native_wave_request_gpucompleted its dispatches without the0xC0000005from #2915. The non-zero child exits in the run are the check's own refusals and controls:invalid-span,invalid-pair,indexed, and theglobal-stride 4mismatch. That narrows #2915: not every native GPU path crashes on this driver.0xffffffffis not a gfx1013 encoding,src/gfx1013_isa.cpp:128throwsunknown gfx1013 instruction format at byte Nbefore any lowering, and the check still requires a non-zero exit and no.cso.Suggestion, not blocking: the old expectation pointed at a lowering refusal, and no native test covers one now.
unsupported instruction <name> <hex>(src/gfx1013_compute_native.cpp:230) andunsupported opcode <hex>(:357) are not asserted by any native test. The only tests that match those strings are the Python and CPU translator checks.0xffffffffin the same check for0x64000501(v_add_f16 v0, v1, v2, which decodes).compile_dxilthen exits 1 withnative compute +0x64: unsupported opcode 0x64000501uand writes no.cso.unsupported opcode, would keep both the decoder refusal and the lowering refusal pinned. It can also go in a follow-up.AI-assisted; the commands above were run locally.