gpu: check signed-zero float min and max through title addresses #1031
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1038"
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 zohaiblazuli on 2026-11-23T22:26:57Z.
Change
Refs #874, Refs #369. This is the signed-zero readback check the maintainer described in #874 (claimed there and confirmed with guidance, which this follows). It extends the existing
gpu_alias_lookup_writesfixture. The shader is unchanged.Replacesintests/gpu_alias_writes.hlsluses a strict<or>, and-0.0 < +0.0is false. So a float min or max between the two zeros keeps the stored word. The fixture now documents this as its expectation, not IEEEminNum/maxNum, and compares raw bits (0x00000000,0x80000000).tests/gpu_alias_lookup.cppadds nine words to the second allocation:+0with a-0candidate and from-0with a+0candidate. All four must keep their starting bits.-0and+0. The rest are strictly negative or strictly positive inputs from the existing generator.+0, min must land the lowest negative; from-0, max must land the highest positive.+0, min with only ties and larger inputs must keep+0; from-0, max with only ties and smaller inputs must keep-0.>no negative input can replace a zero. The highest negative (-0.125,0xbe000000) must win.The record count goes from 1,047 to 2,331. The output gains one
signed_zeroline with the actual and expected bits of each word. The existing groups, the array-atomics probe and its failure message are unchanged.docs/experiments.mdhas the new count and a measurement entry.Verification
Commit
9a1c1e9onmainat64ecc87. Windows 11 build 26300, MSVC x64, Windows SDK DXC, debug layer enabled.9/9 passed with
dev, and the 8gpu_alias*tests passed again withrelease(/O2). Direct runs ofoffscreen_check.exe <backend> --gpu-alias-lookup-writes:devandrelease)10de:2504)devandrelease)8086:a780),XBOX2WINDOWS_ADAPTER=Inteldevandrelease). Exits 1 on the existing array-atomics probe (256,192,128,64), the signature already recorded in #369 for this driver.Mutation checks (local, not committed):
<=/>=inReplaces): 5 mismatches on both WARP and the RTX 3060, all on signed-zero words. These are the four ties plus one contended tie word; which tie word flips depends on arrival order.Evidence and follow-up
All inputs are synthetic and generated in the test. No title data is involved.
Assumptions:
global_atomic_fmin/fmaxsigned-zero behavior, which needs its own evidence.Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T22:37:28Z.
Independent Windows Release readback at
9a1c1e9: the RTX 4060 Laptop (32.0.16.1656) and WARP (10.0.26100.9818) each matched all 2,331 records and all nine raw-bit results, with zero debug errors or warnings. The existing dynamic array probe also passed on both. The Intel array-probe failure stays separately attributed to #369. This verifies the strict comparison policy of the current fixture.