Repository navigation
Recompiler: preserve explicit cubemap sampling gradients - #778
AkshatPal2007 wants to merge 1 commit into
Conversation
|
Independent native Windows NVIDIA RTX 5080 build/test run and code review at head Code Review
Tested
Not tested
AI use: Antigravity (Gemini 4 Neon) performed the code review, ran the RTX 5080 workspace tests, and drafted this comment. |
|
Hardware check of Tested
Regression run PR ( Not tested
AI use
|
|
AMD RDNA4 run of Tested
What that shows: it is the test's own precondition that fails, not the comparison with the cube path. 2.09375 is slice 2 + 3/32 of the synthetic texture, i.e. the same texel for every lane, whatever the gradients, and not at v = 19.5/32. So on this driver the 2D-array reference with Not tested: the retail shaders the description mentions (no game data), release build. Run and report by Claude Code (Claude Opus 5.5) on this machine; the values come from the runs above. |
|
Test report and regression run for Tested
Regression run (the one this PR lists as pending; the same retail title, 60 s, release builds; the PR's run is on its own head, based on 64b3f35) main (d208e14): this PR (527a2c9): That is 92 % of main's frames and the same peak commit, with no crash and no device removal. Both runs are on an NVIDIA card, so they say nothing about AMD. Not tested
AI use
|
|
RDNA2 test results for the cubemap gradient changes Tested clean PR head I ran each test separately with
On a separate diagnostic run with only a print added, both the cube and 2D reference were Not tested The full workspace suite at this PR head, release mode, other drivers, and retail titles. AI use OpenAI Codex (GPT-6 family, exact model variant unavailable) ran the tests, checked the Windows crash event, and drafted this report. |
|
Independent exact-head synthetic checks at Tested: Each A separate scratch run changed only logging, not the assertions: lanes 0, 12, 24 and 36 all returned 2.09375 for both cube and 2D reference. The reference did not distinguish the inputs, so this run cannot validate or refute cube-gradient preservation. No runtime change is proposed from that result. Not tested: Minimum-LOD pixel test, native Windows, or retail. No game data was used. AI use: omp (GPT-6.2 Sol) ran the checks and drafted this report. |
|
Same result as
For comparison, the RTX 4080 on the same machine passes all three tests, with the 2D reference at 0.78125 / 1.65625 / 1.0761719 / 0.80566406 and the cube equal to it on those lanes. So the precondition holds there and not on any AMD driver tried so far. AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this. |
527a2c9 to
1ec845b
Compare
Project both explicit face-space gradients into direction space and use native anisotropic sampling for unclamped cube operations. Keep the scalar LOD path for clamped cube operations after reports of AMD driver access violations in PR xcl-dev#778. Exercise four anisotropic footprints with point-sampled texel and slice controls, filter all twelve cube edges, and check clamp behavior on a fully initialized four-mip cubemap. Assisted-by: Codex (gpt-6.2-astra and gpt-6.2-sol)
Project both explicit face-space gradients into direction space for native anisotropic filtering. Keep the upstream scalar LOD path for clamped cube samples after AMD driver access violations reported on PR xcl-dev#778. Check cube and 2D gradient samples against point-sampled controls. Cover all twelve cube edges and verify the scalar clamp on a four-mip texture. Assisted-by: Codex (gpt-6.2-astra and gpt-6.2-sol)
1ec845b to
1921924
Compare
|
Thanks everyone for the feedback! Updated PR head to Local tests: 738 passed, 0 failed, 41 ignored (2 wave64 skips counted as passes). Could someone with AMD hardware retest the latest revision? Retail smoke tests are still pending. |
|
Retest of Tested
The Not tested
AI use
|
Project face-space gradients into direction space for native anisotropic filtering. Keep the upstream scalar LOD path for clamped samples after AMD driver access violations in PR xcl-dev#778. Compare translated samples to independently projected native cubemap samples rather than assuming that cube and 2D array filtering footprints agree on every driver. Keep the seam, point sampling, and minimum-LOD checks. Assisted-by: Codex (gpt-6.2-astra and gpt-6.2-sol)
1921924 to
556300f
Compare
|
Could someone with AMD hardware retest the latest revision? |
|
Independent Intel Arc A770 test of #778 (fixes #767) Tested
Not tested
AI use
|
Fixes #767.
XCL reduced the two face-space gradients of a cubemap sample to one mip level. That lost the direction of the texture footprint. On a synthetic 32×32 texture with a single white column, an 8×1 texel footprint returned 1.0 through the old cube path and 0.125 through the equivalent 2D-array slice on the same GPU. The retail shader survey in HANDOFF.md records this instruction on cubemaps.
What is in it
TextureCubeArray.SampleGrad.image_sample_d_clpasses its minimum LOD directly to the sampler. This removes the cube path’s texture-size query and manual LOD calculation.Tested
527a2c9, debug build. Windows 11 build 26300.8376, i9-14900HX, RTX 4070 Laptop GPU, driver 32.0.16.1656, Rust 1.100.0 MSVC, DXC 1.8.2502.11.cargo build --workspacesucceeded.cargo test -p xcl --lib gpu_cube -- --nocapture— 4 passed, 0 failed, 0 ignored, 0 skipped. Off-centre samples matched the equivalent 2D-array slices on all six faces of two cubes for horizontal, vertical, and both diagonal anisotropic footprints.cargo test --workspace --no-fail-fast -- --test-threads=4— 701 reported passed, 3 failed, 41 ignored. The three failures match Tests: placed_title_textures_share_vram_and_preserve_pixels fails now and then at its cubemap reuse check (main 9ce2070) #718 on unchanged main. Existing texture-sampling regressions and the bundled end-to-end title passed.cargo test --workspace --no-fail-fast -- --test-threads=1— 704 reported passed, 0 failed, 41 ignored. Both workspace runs counted two native-wave64 skips among passes.Regression run
Pending. No unpacked retail title was available for the required main and PR-head smoke runs.
Not tested
Retail visual quality and performance, external sample files, AMD GPUs, and Intel GPUs.
AI use
Codex (gpt-6.2-astra) investigated the issue, implemented the change and regression tests, ran verification.