Repository navigation
fix(shader): preserve flat aliases in barycentric emulation - #12619
Conversation
|
@CorruptName could you drop the new expected-rejection loop in CheckMixedAlias (PixelBarycentricEmulation.cpp, lines 428-438) and keep the positive mixed-alias pixel checks? It requires P10/first and P20/last to throw with "not measured". Our standing test rule is to test supported behavior and argument validation, without pinning a valid unimplemented form to throw, because that breaks when the form is implemented. This asks only to remove those new assertions; the runtime support guard can stay. Please retain the supported interpolation/provoking cases and cache-enabled/disabled validation coverage. |
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
✅ NVIDIA GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (5, not counted against this PR)Validation IDs already present on main (4 IDs in 405 tests)Skipped (39)ReproduceAutomated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
|
A Windows run with AMD's own driver, since the GPUs tested are RADV on Linux: AMD RDNA 4, Windows 11 Pro 10.0.22631, AMD Radeon RX 9070 XT (
AI-assisted: yes (Claude Code) |
Validation: fix(shader): preserve flat aliases in barycentric emulation (queue item 35)Environment
Build
Focused tests
Vulkan validation-layer checks (per AGENTS.md)
Push
VerdictPASS — build green, 53/53 focused shader-recompiler tests pass identically on base and PR with the Khronos validation layer inserted and zero VUID/SYNC-HAZARD diagnostics on either tree. No new validation errors attributable to the PR. Limitations
|
|
NVIDIA Linux run with the Khronos validation layer of the current head Setup: Arch Linux (kernel 7.3.4), GCC 16.2.1, Release, NVIDIA GeForce RTX 4090 (vendor
The pattern is the test this PR changes. Negative control: the merge with No AI-assisted: yes (Claude Code) |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
The reviewed change has no verified blocking defects; the review is incomplete because no repository reader or shell tool is available in this session.
What I ran
No commands were run. I could not inspect the prepared review files or repository at the pinned head.
Results
| Check | Result | Note |
|---|---|---|
| Diff and changed files | not run | Review inputs unavailable |
| Targeted code audit | not run | Repository reader unavailable |
Findings
Blocking
None verified.
Non-blocking
None verified.
Not verified
The description, commits, diff, manifest, changed file contents, tests, and relevant callers were not read. No files can be reported as read against files reviewed.
To get this to a good state
Nothing is required.
|
Tested head Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release,
Whole batch: the full This is one combined tree, not a run of this PR alone. AI-assisted: yes (Claude Code) |
|
@CorruptName the only thing I see holding this on |
ligmaSec
left a comment
There was a problem hiding this comment.
The trial merge is clean. The new mixed-alias fixture checks that a flat input and a smooth input sourced from the same export slot keep distinct semantics. Please retain that case for both shader front ends and both provoking-vertex conventions where supported. In particular, keep the same-key reuse control so the validation and decoration stay correct on a cache hit as well as a cold pipeline. I have no paired Vulkan result for this head yet.
AI-assisted: yes.
What
Preserve flat fragment inputs that share an export slot with smooth inputs during barycentric emulation. Keep their input representations separate and apply the existing provoking-vertex validation before pipeline-cache lookup.
Add positive mixed-alias pixel checks for the supported interpolation/provoking combinations through the geometry and tessellation paths. The latest update removes the expected-rejection loop as requested in review; the runtime guard remains unchanged.
Existing instruction semantics and support restrictions are unchanged. Native fragment-barycentric, mesh, and rect-list mixed-alias coverage are outside this regression test. No performance improvement is claimed.
Tested
Validation below was performed and reported by other contributors on the older PR revision
a582c98640, before the expected-rejection loop was removed. These are their results, not new tests by the PR author, and they do not validate the latest revision17ab7d7.52c09d5. Build passed; 2,198 tests passed, 6 failed (none new versus main), and 39 were skipped. No new Vulkan validation IDs versus main were reported.agc_driver_pixel_barycentric_emulationpassed 3/3 runs, including the positive mixed-alias cases; no VUID lines were reported.Latest update
17ab7d7: only the expected-rejection loop was deleted.git diff --checkpassed. Build and GPU tests were not rerun. The conventions checker could not run because Python was unavailable.The branch currently conflicts with
main; this update does not resolve those conflicts.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)a582c98640only: NVIDIA RTX 2000 Ada Generation (TechLevelZero) and AMD Radeon RX 9070 XT (bunbeans2-arch and blawesom); driver/OS details and report links above. Latest revision17ab7d7has not been GPU-tested.