AGC (Intel Arc, Windows): agc_storage_write_back fails; buffer-image copies of larger RGBA16F images canonicalize fp16 NaNs #10126
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 boykopovar/AnyPS5. Originally posted by BKlaasWerkman on 2026-10-23T10:21:19Z.
agc_storage_write_backfails on Intel Arc under Windows in its single-pass storage moves section, for the two RGBA16F surfaces with 64 KiB R_X tiling. It passes on an NVIDIA GPU in the same machine.Environment. Windows 11 Pro 10.0.26300, WinLibs GCC 15.2.0 r7, Release. The failure is from a full
ctestrun ofmain83462cc57; the instrumented runs below are onmainb7a451d62. Intel Arc Graphics (Meteor Lake,0x7d55), driver 101.9150. Control: NVIDIA GeForce RTX 3060 Ti, driver 617.42, same binary, selected withANYPS5_GPU.What differs. I classified the mismatching 16-bit halves with local instrumentation, not committed. Every mismatch is a NaN, and every NaN in the texels mismatches: 12283 of 393216 halves for 384x256, and 8412 of 272000 for 256x200 with 4 mips. Each comes back as
0xfe00, whatever its sign, payload or quiet bit (0xfc80,0x7ea9,0xfdcf, ...). Denormals and all other values are preserved.Where. The canonicalization happens before any AnyPS5 code touches the image. In the test, a
vkCmdCopyBufferToImageof the random texels into the firstStorageTextureimage, followed directly byvkCmdCopyImageToBuffer, already returns the 12283 (and 8412) canonical NaNs. The copies and single-pass write-back paths then agree with each other byte for byte.RGBA16F 4 KiB S 100x70, 2 mipsandRGBA32F 64 KiB R_X 136x72, 2 mips.Buffer-image copies should preserve the texel bits. The size dependence suggests the driver's lossless compression of larger R16G16B16A16_SFLOAT surfaces; I have not confirmed that.
Effect. On this driver, fp16 NaN payloads that a guest stores in such a surface reach guest memory as
0xfe00after a write-back. Only the test's random texels are known to hit it; no title was run.Not known: whether creating these images differently (format list, usage, or another driver-visible condition) keeps the bits; other Intel generations; Linux ANV.
AI-assisted: yes (Claude Code)