tests: Python float conversion can admit a wrong quiet bit in pixel UINT copy and scratch readbacks #2448

Closed
opened 2026-11-25 17:15:22 +00:00 by RavenCurseBurg · 0 comments
RavenCurseBurg commented 2026-11-25 17:15:22 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T17:15:22Z.


At 4b09d2be, the pixel AOT integer-copy and flat-scratch fixtures convert expected 32-bit words to Python floats before writing the UINT renderer case. On the stock CPython 3.11.9 x64 Windows build, that conversion changes 7f800001 to 7fc00001 and ff812345 to ffc12345. CPython 3.14.3 x64 on the same machine preserved both original words.

I supplied both scratch programs with those two words and two distinct quiet-NaN controls. On an Intel UHD 770, RTX 4060 and WARP, the unmodified shaders matched an independently packed <4I reference and failed the 3.11-generated reference. I then inserted source instructions that set the quiet bit before export. On all three adapters both changed shaders passed the 3.11 reference and failed the integer reference. Other case fields and shader inputs were identical between the two references. The existing five scratch input rows do not exercise these patterns.

I’ll fix the reference generation in the integer-copy and scratch draws, preserve their existing controls, and cover positive and negative signaling patterns with an explicit wrong-quiet-bit control. This is a host test-fixture issue, independent of the compiler’s existing raw constant-buffer support from #680.

AI-assisted with Codex + GPT-6.2 Astra (xhigh).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6609780688 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2456). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T17:15:22Z. --- At `4b09d2be`, the pixel AOT integer-copy and flat-scratch fixtures convert expected 32-bit words to Python floats before writing the UINT renderer case. On the stock CPython 3.11.9 x64 Windows build, that conversion changes `7f800001` to `7fc00001` and `ff812345` to `ffc12345`. CPython 3.14.3 x64 on the same machine preserved both original words. I supplied both scratch programs with those two words and two distinct quiet-NaN controls. On an Intel UHD 770, RTX 4060 and WARP, the unmodified shaders matched an independently packed `<4I` reference and failed the 3.11-generated reference. I then inserted source instructions that set the quiet bit before export. On all three adapters both changed shaders passed the 3.11 reference and failed the integer reference. Other case fields and shader inputs were identical between the two references. The existing five scratch input rows do not exercise these patterns. I’ll fix the reference generation in the integer-copy and scratch draws, preserve their existing controls, and cover positive and negative signaling patterns with an explicit wrong-quiet-bit control. This is a host test-fixture issue, independent of the compiler’s existing raw constant-buffer support from #680. AI-assisted with Codex + GPT-6.2 Astra (xhigh).
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
R0Y00/Xbox2Windows#2448
No description provided.