Shader stages 0/8: what evidence would move Compute (and the others) to done? #187
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
library
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/omonkeyz--xbox-emulator#187
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?
@MeNoSkills on GitHub · 2026-11-22 22:27 UTC · original
The progress map shows "Shader stages translated" at 0/8: Vertex, Pixel, Compute, Geometry and Mesh are
partial, Hull, Domain and Amplification arenone(tools/progress/progress.json, counted bygen.py). The label is set by hand, so I would like to understand what would move one of them todone, and where I can help without a game dump.For the D3D12.x slots the rule in the progress notes is that a slot which runs correctly on PC with no observable problem counts as done, and the remaining console-only effects are documented in BLOCKERS.md. Does the same rule apply to stages? If not, what is the evidence you want per stage (a sweep over a shader pack, a run of a title, hardware tests)?
What I found in the repo and BLOCKERS.md, per stage. Please correct anything that is stale.
ds_swizzle_b32outside pixel shaders (#184 bit/quad, #186 rotate/FFT), PC-relative far jumps (#185). Refused on purpose:ds_gws_sema_p,ds_gws_barrier,ds_gws_sema_release_all,ds_ordered_count,s_sendmsghaltds_swizzle_b32only in quad mode; MIMG R128/TFE/LWE refused (#114); typed-buffer element type taken from usage, not from the descriptor format (#105)s_swappc_b64call to the fetch shader needs the attribute fetch to be synthesised from the input layout; only about a third of GTA VI vertex shaders translates_sendmsgemit/cut (#104) needs stream-output (PSO StreamOutput, PointStream, SO target binding); none of the 3515 cached shaders uses itQuestions:
exec/mesh/isa_sweepsuites on hardware, plus a documented list of refused instructions, enough for Compute?For context, my hardware runs so far (RTX 4070 Ti, Windows 10 19045, MSVC) are in #157. I have no title dump, so I can only do work that synthetic tests can verify.
@omonkeyz on GitHub · 2026-11-22 23:23 UTC · original
Good question. A shader stage counts as done when all of these hold:
Unit tests or successful translation alone keep it at partial. You can help without a game dump by:
@BaggyALPHA on GitHub · 2026-11-23 17:17 UTC · original
I reproduced and fixed a scalar NULL-register defect: after s_mov_b32 null, 1, later NULL reads returned 1 instead of zero, contrary to AMD’s RDNA 2 specification.
The attached patch fixes source reads while preserving status-flag updates. Five of six synthetic cases fail before the fix; all six pass afterward on WARP and hardware. Library/opcode tests and contribution checks pass.
Logs are sanitized. This verifies instruction behavior; no console-oracle or title compatibility validation is claimed.
issue-187-scalar-null.patch
issue-187-scalar-null-before.txt
issue-187-scalar-null-after.txt
issue-187-scalar-null-notes.txt