tests: Python float conversion can admit a wrong quiet bit in pixel UINT copy and scratch readbacks #2456
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#2456
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?
@RavenCurseBurg on GitHub · 2026-11-25 17:15 UTC · original
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 changes7f800001to7fc00001andff812345toffc12345. 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
<4Ireference 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).