Identify the native code boundary in rejected gfx1013 pixel records #478
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#478
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?
@R0Y00 on GitHub · 2026-11-22 06:01 UTC · original
At
796304302aa local scan counted 12,101 pixel shader records. For 6,189 records the native_program reader in tools/pixel_aot.py reported "Expected one aligned, terminated program". The reader searches the decompressed FSSM payload from the computed code start for aligned s_endpgm words and requires exactly one match. This diagnostic combines zero and multiple matches.The maintainer is already investigating the shader corpus. This issue tracks the boundary question for coordination. Please link existing findings here before starting overlapping work. A useful first result is an aggregate split by zero vs. multiple matches, with one layout explained using instruction boundaries or an independently checked size field. Build a small synthetic fixture for that layout with one valid case and one ambiguous case. Include the command and expected result so another contributor can reproduce it without a local package. Share only counts and source-built examples.
This task is complete when we can explain one rejected layout and distinguish it from the ambiguous control. Any change to the reader can then be reviewed against that evidence.
AI-assisted.
@R0Y00 on GitHub · 2026-11-22 06:18 UTC · original
Resolved by #477, merged into main at
3310cb8. Among the 6,189 previously rejected pixel records, 3,561 had two termination markers 20 bytes apart. The reader uses the section extent and decoded branch targets to identify a reachable second exit. The synthetic fixtures accept that layout and reject a disconnected target or a branch into an instruction. To reproduce without a local package, runpython3 -B tests/pixel_aot_check.py binary llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1. The LLVM 15 run passed. The rescan accepted 3,536 records in that group.