Repository navigation
tests: pin SCC of scalar min/max with equal operands on the direct compute path - #3441
Merged
Merged
Conversation
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.
Refs #3434
#3434 noted that no direct-path test reads SCC after
s_min/s_maxwith S0 == S1. This adds one totests/native_descriptor_scc_check.py.What it pins. On the non-runtime program (
gfx1013-direct-cs), each group now runss_min_u32,s_min_i32,s_max_u32ands_max_i32twice: once with equal operands (s5, s5) and once with unequal ones (s5 = 3 and inline -1, i.e. 0xFFFFFFFF as u32). Each SCC is read withs_cselect_b32and stored, which gives 8 cases per group. Expected SCC is 0 for equal operands and 1 for the unequal pairs, following the current strict lowering inarithmetic(src/gfx1013_direct_compute.inl):SCC is seeded to 1 by
s_or_b32before the first case, and the expected values alternate 0, 1, so a missing SCC write shows in every case. The group stride goes from 16 to 64 bytes to make room. The runtime program is unchanged.This pins what the direct path does today. It does not say which result the ISA specifies.
Evidence (release preset, branch based on 184b15d; merges cleanly into main 1a0120b, where the test file and the lowering are unchanged):
native_descriptor_scc_hardwarepasses.lttoleinarithmeticmakes it fail withAssertionError: s_min_u32 group 0: SCC for equal operands=1, unequal operands=1; expected 0, 1. With the change reverted, the test passes again.native_descriptor_scc_warpskips (77) with "requires shader model 6.6 with wave32", and theprtest preset filter does not includenative_descriptor_scc_*. These cases therefore run only with the hardware variant.Not covered. No comparison with gfx2hlsl, and no max-side mutation was run. #3435 changes the gfx2hlsl side; this PR does not need it and does not touch the files it changes.