Repository navigation
Report compute thread-group dimensions in shader refusals and offline listings - #3506
steven-seagull27 wants to merge 1 commit into
Conversation
Include the native group size in the one-time translation refusal, including cache hits. Add the same dimensions and container hash to compute outcomes in translate --list so offline and runtime reports can be matched. Cover an emitted and a refused ACCC program with different group shapes and trailing bytes after their DXBC records. AI assistance: OpenAI Codex.
|
Tested Census,
What it answered for #3502 (item 4): of the 50 programs refused on our base, 25 have 2-D groups, all with an x that is not a multiple of 32 ( Not covered here: the runtime warning's new field was compiled but not observed in a game run. AI-assisted (Claude); measured on my machine, no game data shared. |
Addresses the missing per-program
numthreadsin item 4 of #3502. A total of 24 threads could mean[4, 2, 3]or[2, 4, 3]. The distinction matters when investigating which programs need 2-D thread-ID tiling.The runtime adds the guest program’s declared
[x, y, z]to its existing one-time compute translation warning, including when the refusal comes from the disk cache.victory translate --listprints those dimensions and the runtime’s 16-character container hash on each compute program’s outcome. This lets a reporter match the offline row to the warning. The default batch summary keeps its existing format.Verification
Used generated shader containers on Windows. The refusal fixture declares
[12, 2, 1]and contains an unsupporteds_trap. Each runtime run issued twoDispatch(1, 1, 1)calls.numthreads=[12, 2, 1]numthreads=[12, 2, 1]Both adapters still dropped the two dispatches as expected. The offline row and runtime warning agreed on
hash=1292b6b95e562fcf. A refusal already cached by the parent build also gained the dimensions. A container whose first selected program was a vertex shader did not pick up a later compute program’s dimensions.On eight generated program rows, the Windows SDK validator accepted five and the translator refused three. The two vertex rows retained their original output. Scanning two compute containers together or separately produced the same hash for each container. The new regression exercises both emission and refusal with trailing data after the DXBC record.
The CLI suite passed 19/19. Strict Clippy passed for the CLI and GPU crates. The full local GPU suite gave the same result on the parent and this branch — 229 passed, one ignored, and two descriptor-heap tests failed (
dynamic_slots_are_held_until_releasedandlists_share_a_table_and_copies_keep_their_views).AI-assisted with Codex.