Repository navigation
shader: lower startup 2D-array image LOD queries - #2947
Conversation
|
Independent AMD RDNA 4 and WARP result on Not a code change; measurements only. The body says the DXC/WARP/GPU half was not run on the author's host, so this covers it for one Windows machine. EnvironmentCaptured in the run's own log directory on the machine: CommandsObserved
Readback words, first two components are (clamped LOD, unclamped LOD), duplicated into RGBA. WARP and the RX 9070 XT returned the same word for every one of these: The three SRV-window cases ( The array lane depends on this PR's translator changeNothing rebuilt: only So under the base translator the array lane has no coverage at all — the refusal happens while translating, before The
|
|
Thank you for independently running the exact head on both WARP and the RX 9070 XT, including the base-translator negative control. This closes the previously unverified Windows execution lane. Agreed on the scope: the fractional raw-LOD differences are adapter observations, not proven translator defects, and the array coordinate is tested statically. |
R0Y00
left a comment
There was a problem hiding this comment.
The independent WARP and RX 9070 XT results cover 31d45324. A merge trial against current main (fb955a51, after #2970) found conflicts in tests/offscreen_check.cpp and tests/startup_image_get_lod_view_check.py. Please update the branch and preserve both the sampler-join fixture's root selector and this PR's array-slice selection. The two source-built fixtures can then be run together on the updated head.
Use spatial-only DXIL LOD queries while consuming the guest array address. Preserve derivative and static-sampler validation and extend the source-built raw array mip-view fixture. AI-assisted backport patch from x2w-microlift.
31d4532 to
54567b5
Compare
|
Rebased on current upstream fb955a5 after #2970, now 54567b5. The existing selector and new array-view mode are both preserved. Portable image_get_lod controls pass, as do sampler-join controls (3 forms, both selector outcomes, swapped bindings, 7 refusals) and all 10 authored LLVM15 encodings. The earlier independent Windows 6/6 result belongs to the prior head; Windows GPU not rerun here. Ready for follow-up review. |
R0Y00
left a comment
There was a problem hiding this comment.
Reviewed rebased head 54567b51d6f11ad13cfc37d81188e6cecb75152b. A merge trial against main e05b3ced was clean. The 2D-view selector and the separate 2D-array fixture are both preserved. On Windows 11 build 26200.9974 I rebuilt offscreen_check in Release and ran ctest --preset release --no-tests=error --output-on-failure -R '^startup_(gfx2hlsl_image_get_lod|image_get_lod_view|image_sample_l_join)': all six passed. WARP (10.0.26100.9818) and RTX 4060 Laptop (32.0.16.1656) matched the direct HLSL array reference for both slices and both derivative scales. They also passed the sampler-join readbacks, with zero D3D12 debug-layer warnings or errors. Required Windows CI passed.
AI-assisted backport patch from x2w-microlift.
Extends #2311 and #2342 to 2D-array SRVs: consume the guest slice address but query LOD with spatial coordinates only. Retain the derivative and static-sampler refusals. Extend the authored raw array mip-view fixture across two slices and two derivative scales.
Verification on Apple Silicon macOS, revision 31d4532:
python3 -B tests/startup_gfx2hlsl_image_get_lod_check.py: passed, including negative controls.git diff --check: passed.DXC, WARP and Windows GPU readback not run on this host.