Repository navigation
shader: lower two immutable samplers at uniform explicit-LOD joins - #2970
Conversation
Admit a single forward SCC diamond with complete literal definitions of two normalized point samplers, preserve their static LOD limits and choose between complete SampleLevel calls. Exercise both runtime selector outcomes, swapped bindings, six refusals and all eight authored assembly variants. Register the fixture using upstream test-fragment conventions.
|
Independent Windows / AMD RDNA 4 result on Environment
CommandsObservedBoth draw entries executed (no exit 77, no
The same words come back from WARP and from the card. Three repeat runs of each draw entry gave What these entries pin, and what they do not
CI coverage at this headThe three jobs on Limits
AI-assisted. |
|
Thanks for the exact-head WARP and RX 9070 XT measurements and the explicit limits. The three passing tests and matching readbacks are useful independent evidence. Agreed that a word-1-only descriptor difference should pin nonzero selector-word choice; I will extend that authored fixture without changing the lowering. I will distinguish your physical hardware observations from my local portable verification. |
Add the authored explicit-level selector-word-1 variant. Both selectors and swapped manifests exercise distinct mips; all nine gfx1013 sources reassemble exactly with LLVM 15.0.7. AI-assisted backport patch from x2w-microlift.
|
Added the focused test-only follow-up at d908804. Word 0 is identical and word 1 alone differs (MAX_LOD 2 versus 0); selector 0 expects |
|
The join proof, refusal controls, and cache-key pins checked out. I also compiled all three positive cases with FXC at pixel shader model 5.1. Ready to merge from our side |
|
Portable-suite audit of Environment
CommandsAfter each mutant the translator's sha256 was back to the value above, ObservedYour forced-word-0 rejection reproduces. Seven mutants of
The runner stops at the first failing form, so the Three of the seven stay green, and they are not the same kind of result:
Where the new pin lives
What these forms do not pin
Limits
AI-assisted. |
|
Thanks for the independent exact-head audit. The upper-word1-bit refusal is the actionable missing control; I am adding a decoded negative diamond for that guard. The equivalent selector mutations do not warrant extra implementation changes. I will report the amended portable and assembler evidence, with prior draw evidence kept separate. |
Exercise a decoded sampler diamond whose only invalid field is bit 24 of word 1. AI-assisted backport patch from x2w-microlift.
|
Updated 8697fe9: decoded negative diamond sets only word1 bit 24, so the exact high-bit refusal is now covered. |
|
The added upper sampler-word refusal closes the coverage gap. The current head passed three positive forms, seven refusal controls, ten LLVM 15 reassemblies, and the cache-key checks. Removing just the upper-word guard made the new control fail, and restoring it passed. Ready to merge from our side |
R0Y00
left a comment
There was a problem hiding this comment.
Reviewed exact head 8697fe94dd30ad99e5f6df7192dc3408ccb7918c. The sampler proof requires two literal incoming definitions with uniform SCC control and unchanged EXEC. An overlapping scalar write invalidates the proof. I independently built cmake --build --preset release --target offscreen_check and ran ctest --preset release --no-tests=error -V -R '^startup_image_sample_l_join': 3 passed, zero skips. WARP (10.0.26100.9818) and RTX 4060 Laptop (32.0.16.1656) on Windows 11 build 26200.9974 both matched all three draw forms, both root-selector values and swapped bindings, with zero D3D12 debug-layer errors or warnings. The portable fixture passed all seven refusals, including the upper sampler-word bit. Required Windows CI passed.
AI-assisted backport patch from x2w-microlift.
Admit a single proven forward SCC diamond that writes all four words of two immutable normalized 2D point wrap/clamp samplers. Preserve point mip filtering and validated LOD limits in static bindings; choose between complete SampleLevel calls using the differing scalar word. Invalidate the join fact on overlapping writes. Implicit-LOD handling from #2699 is unchanged.
Source-built verification on Apple Silicon, head 656c4dd:
python3 -B tests/startup_image_sample_l_join_check.py: both forms, both selector outcomes, swapped bindings, six refusals passed.python3 -B tests/startup_image_sample_l_join_check.py binary llvm-mc: all eight exact assembly variants passed (LLVM 23.1.6).The registered Windows draw uses the actual translated shader, two manifest bindings and a runtime selector. DXC/WARP/hardware draw execution not run locally. Test registrations use the upstream CMake and CI check-list fragments.