AGC (Intel Arc, Windows): agc_storage_write_back fails; buffer-image copies of larger RGBA16F images canonicalize fp16 NaNs #10126

Open
opened 2026-10-23 10:21:19 +00:00 by BKlaasWerkman · 0 comments
BKlaasWerkman commented 2026-10-23 10:21:19 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by BKlaasWerkman on 2026-10-23T10:21:19Z.


agc_storage_write_back fails 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.

single-pass storage moves:
RGBA16F 64 KiB R_X 384x256 (copies): the second image does not hold the texels written back
RGBA16F 64 KiB R_X 384x256 (single pass): the second image does not hold the texels written back
RGBA16F 64 KiB R_X 256x200, 4 mips (copies): the second image does not hold the texels written back
RGBA16F 64 KiB R_X 256x200, 4 mips (single pass): the second image does not hold the texels written back

Environment. Windows 11 Pro 10.0.26300, WinLibs GCC 15.2.0 r7, Release. The failure is from a full ctest run of main 83462cc57; the instrumented runs below are on main b7a451d62. Intel Arc Graphics (Meteor Lake, 0x7d55), driver 101.9150. Control: NVIDIA GeForce RTX 3060 Ti, driver 617.42, same binary, selected with ANYPS5_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 vkCmdCopyBufferToImage of the random texels into the first StorageTexture image, followed directly by vkCmdCopyImageToBuffer, already returns the 12283 (and 8412) canonical NaNs. The copies and single-pass write-back paths then agree with each other byte for byte.

  • The same round trip is exact on the same device for RGBA16F 4 KiB S 100x70, 2 mips and RGBA32F 64 KiB R_X 136x72, 2 mips.
  • It is exact for every case on the RTX 3060 Ti.

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 0xfe00 after 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)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5996042828 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/10126). Originally posted by [BKlaasWerkman](https://github.com/BKlaasWerkman) on 2026-10-23T10:21:19Z. --- `agc_storage_write_back` fails 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. ``` single-pass storage moves: RGBA16F 64 KiB R_X 384x256 (copies): the second image does not hold the texels written back RGBA16F 64 KiB R_X 384x256 (single pass): the second image does not hold the texels written back RGBA16F 64 KiB R_X 256x200, 4 mips (copies): the second image does not hold the texels written back RGBA16F 64 KiB R_X 256x200, 4 mips (single pass): the second image does not hold the texels written back ``` **Environment.** Windows 11 Pro 10.0.26300, WinLibs GCC 15.2.0 r7, Release. The failure is from a full `ctest` run of `main` 83462cc57; the instrumented runs below are on `main` b7a451d62. Intel Arc Graphics (Meteor Lake, `0x7d55`), driver 101.9150. Control: NVIDIA GeForce RTX 3060 Ti, driver 617.42, same binary, selected with `ANYPS5_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 `vkCmdCopyBufferToImage` of the random texels into the first `StorageTexture` image, followed directly by `vkCmdCopyImageToBuffer`, already returns the 12283 (and 8412) canonical NaNs. The copies and single-pass write-back paths then agree with each other byte for byte. - The same round trip is exact on the same device for `RGBA16F 4 KiB S 100x70, 2 mips` and `RGBA32F 64 KiB R_X 136x72, 2 mips`. - It is exact for every case on the RTX 3060 Ti. 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 `0xfe00` after 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)
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#10126
No description provided.