Repository navigation
ps_interp_modes: correct the barycentrics/shading-rate SemanticKinds - #8202
Open
bobcatchris wants to merge 1 commit into
Open
bobcatchris wants to merge 1 commit into
bobcatchris wants to merge 1 commit into
Conversation
Barycentrics and ShadingRate are SemanticKind 28/29 in dxc's DxilConstants.h; 25/26 are TessFactor/InsideTessFactor. The wrong constants classed the tessellation kinds as system inputs and left the real ones as interpolation mode bits. Two regression tests fail on main and pass here; full test file OK. AI-assisted.
|
Tested 874d069 on Linux, Python 3.12.16: pass
|
This was referenced Nov 23, 2026
|
Windows verification at AI-assisted verification. |
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.
Implements ABilenduke's unclaimed part-3 finding on #7333 (checked board #8047 and open PRs: #4838 covers chunk bounds/ISG1, not this constant).
tools/ps_interp_modes.py SYSTEM_KINDSmapped 25/26 to barycentrics/shading-rate, but in dxc'sDxilConstants.hthose kinds are 28/29 — 25/26 are TessFactor/InsideTessFactor. As a result a real SV_Barycentrics or SV_ShadingRate input was classed by interpolation mode and could get an SPI_PS_INPUT_ENA bit, while tessellation kinds were silently treated as system values.Tested on Apple M2 / Python 3.13.18: two new constant/behavior tests fail on current main (1 failure, 1 error) and pass on this head;
python -I tests/test_ps_interp_modes.pyOK. No game data.AI-assisted.