Repository navigation
Conversation
6 tasks
4 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
When an instruction reaches the mesh frontend's fallback in
lower_mesh(no handler matched it), the refusal used to beunsupported mesh instruction or EXEC state: <op>in every case. It now names three cases before that generic refusal:mesh group-index exchange shape or entry state is not covered: the instruction iss_mov_b64 exec, 1(0xbefe0481), the first word of the group-index exchange, and the exchange matcher did not accept the sequence. That covers a different word sequence and also a failed precondition (branch, EXEC state, layout, register use).mesh count exchange shape or entry state is not covered: the instruction iss_barrier(0xbf8a0000) and the next word compares an SGPR against 0 ((word & 0xffffff80) == 0xbf008000, the same test as the count matcher's second word). A barrier alone does not identify the count exchange.mesh group memory outside a proven exchange: any others_barrier, or anyds_*instruction other thands_swizzle_b32,ds_permute_b32andds_bpermute_b32. The mesh frontend has nods_*handler.ds_swizzle_b32,ds_permute_b32andds_bpermute_b32do not use group memory and keep the generic refusal. The new checks sit in the branch that already refused unconditionally, andrefusedoes not return, so the set of refused programs is unchanged and no accepted program changes. Only refused programs get a more precise reason.Tests:
wrong-count-slotandmismatched-barriersnow expect the named reasons. New refused runs:standalone-barrier,standalone-ds-write(group memory),standalone-ds-swizzle(generic,ds_swizzle_b32, holds on main too),unsupported-sleep(generic,s_sleep, holds on main too) andmissing-exec-save(group-index). No accepted run or its words changed.Refs #2413, #3416.
Verification
The checks ran on the change applied to
main0614f68c, Windows 11, release build, before the rebase onto51472392.git diff --stat 0614f68c 51472392 -- src/gfx1013_direct_mesh.inl tests/native_direct_mesh_check.pyis empty (#3353 touches neither file).cmake --build --preset release --target compile_dxil, thenctest --test-dir out\build\release --no-tests=error --output-on-failure -R "^(native_direct_mesh|native_compile_dxil_refusals)$": 2/2 pass.src/gfx1013_direct_mesh.inlwith the earlier revision of the test (see below):native_direct_meshfails atwrong-count-slotwithnative compute +0x18: unsupported mesh instruction or EXEC state: s_barrier. The three new strings do not occur in main's file, so every new or updated expectation exceptunsupported-sleepandstandalone-ds-swizzlecan only fail there.native_direct_mesh:truestandalone-ds-swizzle:+0x0: mesh group memory outside a proven exchangewrong-count-slot+0x0: mesh group-index exchange shape is not covered)standalone-barrier:+0x0: mesh count exchange shape is not coveredwrong-count-slots_barrierdropped from the group memory casestandalone-barrier:+0x0: unsupported mesh instruction or EXEC state: s_barriers_mov_b64 exec, 1case disabled (false &&)mismatched-barriers:+0x0: unsupported mesh instruction or EXEC state: s_mov_b64The first three rows ran on the committed wording. The last four ran on an earlier revision of the same change, whose two named reasons ended in "shape is not covered" and whose group memory case included all
ds_*.After each sweep, the source file was restored byte-identical (sha256 matches the backup), the rebuild passed both tests again, and the diff hash was unchanged.
Follow-up commit
4fa38d63addsstandalone-ds-permute(0xdac80000) andstandalone-ds-bpermute(0xdacc0000), both expecting the generic refusal. Checked on75fe7c1dwith these two cases in the working tree, before the commit was made (same content): both tests pass (2/2); removingds_permute_b32ords_bpermute_b32from the exclusion makesnative_direct_meshfail at the matching case with the group memory reason.Evidence and follow-up
Not covered: The effect on the 543 captured slot 57 requests is not measured yet. That needs the entry layouts from the root-input PR (item b in #2413). Apart from the follow-up check above, nothing was re-run after the rebase onto
51472392.Checklist