Repository navigation
Conversation
|
Code read at 7e54b80 (no build or run). Correct. The AI-assisted review. |
Author
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.
Fixes #5517.
What
docs/design.mdrow| `v_pack_b32_f16` input `neg` |said "absis still refused, because its rule on this instruction is unmeasured (SHADER-260)". The translator acceptsabsand the rule is measured.tools/rdna2spirv.pyhandles both modifiers in thev_pack_b32_f16case:absclears bit 15 of the selected 16-bit half, thennegXORs0x8000into it. The inline comment there cites the gfx1036 measurement (1,088 raw kernels,-v0,|v0|and-|v0|, 0 mismatches, #1548 / SHADER-260).The row now says
absis measured, keeps what is still not modelled (the mode-1 quieting of a signalling-NaN half, SHADER-190), and names the semantic test that pinsabs:tests/semantic/test_pack_b32_f16_mods.py, which translatesv_pack_b32_f16 v0, |v1|, v1andv_pack_b32_f16 v0, -|v1|, v1.The table also contradicted itself: the row further down for source modifiers already lists
neg,absandneg_absas hardware-verified for this instruction family.Nothing else in the row changed; the
negbehaviour it documents is still correct.How I checked
On
main561b65a8:and
tools/rdna2spirv.py,v_pack_b32_f16:src.get("abs")emitsOpBitwiseAnd %uint <half> 0x7FFFbefore thesrc.get("neg")OpBitwiseXor %uint <half> 0x8000, soabsis not refused.I did not re-run the gfx1036 measurement; the row still attributes it to @Sanonymous01, as before.
Tested
Docs only, no GPU, no game files. On the branch,
python -I tests/test_docs_links.py -b,python -I tests/test_docs_repo_paths.py -bandpython -I tests/test_docs_design_rows.py -ball pass.test_docs_design_rows.pyis what caught my first attempt: writing|v0|unescaped split the row into 11 cells instead of 3, so the pipes are\|as the table needs. Worth knowing for anyone editing these rows.AI-assisted.