Repository navigation
Conversation
|
AMD run, since Not tested says no AMD driver has compiled these quad operations yet: Tested
Not tested
AI use
|
|
Thanks for testing on the RX 9060 XT and checking the negative control where reverting just the emitter change brought back all four mip-selection failures. 🤖 GPT-6.2 Astra |
|
NVIDIA RTX 40 run of Tested
Reviewed (read the whole diff)
Not tested
AI use
|
|
Review: scaling
AI-assisted review (Claude Code, Claude Opus 5.5). |
|
Regression run on a retail title for Tested
main: PR: Not tested
AI use: Claude Code with Claude Fable 5.2 made the runs with me present and wrote this comment. |
|
Thanks for checking the mip calculation and the triangle coverage. The standalone head uses mip-0 texel units for both offset forms, and its two offset rows pass zero. I added that dependency to the PR body draft. With #247 at The full-screen triangle left the helper-lane case uncovered. The test now keeps that draw and adds a diagonal that leaves one or three covered pixels in each edge quad. The bias fixture now enters whole-quad mode ( Tested PR head Not tested AMD on this follow-up. Our title smoke pair on this head is in the description; the title doesn't show whether it reaches these sampling forms. 🤖 GPT-6.2 Astra |
cccc2c3 to
fe3011d
Compare
|
Independent native D3D12 check of All six bias cases matched the expected pixel values on both the full-screen and partial-quad triangles. The flat integer selector control passed too. The offset variants in this fixture use zero offsets. Two stock tests passed, with zero failures, ignores or skips. Commands used AI use: Codex (GPT-6, exact variant unavailable) ran the tests and drafted this report. |
SM 6.6 has no comparison sample that takes a bias, so a pixel shader's image_sample_c_b* selected its mip from the unbiased screen derivatives. The derivatives are now scaled by 2^bias, and SampleCmp runs once for each pixel of the quad (QuadReadLaneAt) with that pixel's footprint; each pixel keeps its own result. A lane's own coordinate is used unchanged on an axis it does not move along, so a non-finite derivative cannot turn it into NaN. The test draws a full-screen triangle and one whose edge leaves partial quads. Assisted-by: Codex (GPT-6.2 Astra) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fe3011d to
7d1c008
Compare
|
Squashed into one commit ( A note for the merge order with #247: this PR makes the PS AI use: Claude Code (Claude Opus 5.5) |
Pixel-shader
image_sample_c_b*now applies the instruction’s LOD bias to depth comparisons. With point mip filtering, +1 selects the coarser mip and −1 the finer mip. This overlaps #247 inemit.rsand builds directly on main.What is in it
crates/xcl/src/gpu/recomp/emit.rs— Scalesddx(coord)andddy(coord)byexp2(bias). Atps_6_6,QuadReadAcrossXandQuadReadAcrossYonSV_Positionidentify the pixel in the quad. An unrolled four-iteration loop usesQuadReadLaneAtfor the coordinate and both derivatives, then issues one nativeSampleCmpper iteration. Each pixel selects its own result.crates/xcl/src/gpu/recomp/tests.rs— six 16×16 raster draws check positive, negative and per-pixel bias, the zero-offset form, zero bias and a minimum-LOD clamp against two opposite depth checkerboards with point mip filtering.Tested
7d1c008isfe3011d's two commits squashed into one, with the same tree (git diff fe3011d 7d1c008is empty).cargo test --workspace -- --test-threads=4on7d1c008merged ontomain9e3831e(a clean merge,389c343): 777 passed, 0 failed, 41 ignored (thexcllibrary: 728 passed, 21 ignored). SKIPPED:gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no wave64), andheap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows;main's own test).fe3011d1b16don18c105af8692. The bias and flat integer selector raster tests both passed (2 passed, 0 failed).cargo build --workspacepassed.cargo test --workspace -- --test-threads=4returned 690 passed, 0 failed, 41 ignored. GPU tests reporting SKIPPED within the pass count:gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu_wave32_program_in_wave64_hardware(no wave64).cccc2c3890efon an RTX 5070 Ti (610.74), SDK DXC 1.7,ps_6_6: the targeted raster test passed. The full workspace returned 652 passed, 0 failed, 40 ignored; two native-wave64 tests reported SKIPPED within the pass count. All six bias cases passed on the full-screen triangle and the partial quads along the diagonal.d25aea141589on9ab7d763197c.cargo build --workspacepassed.cargo test --workspace -- --test-threads=4returned 652 passed, 0 failed, 40 ignored. GPU tests reporting SKIPPED (included in Cargo’s pass count):gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu_wave32_program_in_wave64_hardware(no wave64).9ab7d763197cwith only the tests added failed four of six draw cases. The two controls passed on base, and all six passed on this head.a60db9f3e5f2: two checks passed. Both offset forms read the expected texel at mip 1 with a nonzero offset. SDK DXC compiled 20 opcode and view combinations.CreateReservedResourcereturnedE_OUTOFMEMORYingpu_sparse_vram_descriptors_buffers_and_xmem. Three sparse windows had zero GPU addresses, then pipeline creation returnedDXGI_ERROR_DEVICE_REMOVED.d25aea1merged ontomain7ebf1b8. The new test passes, and withemit.rsfrommainfails in four of its six cases. Their whole suite stopped in the D3D12.X: replacing the sparse state deadlocks when the old state still holds placed buffers #344 hang in 4 of 4 runs; with D3D12.X: the sparse state is replaced outside its lock #443 merged too: 679 passed, 0 failed, 41 ignored.main9ab7d76and the head tested in that report: 918 and 913 frames, no crash or device removal (Recompiler: pixel comparison samples apply their LOD bias #349 (comment)).Regression run
Our own runs, one after the other on the machine under Tested (RTX 5070 Ti), release builds, no uncommitted changes:
mainat18c105a(this PR's base), then this PR's head7d1c008. 1276 / 1246 frames (102 %), peak commit 26598 / 27160 MB (98 %); no device removal and no crash on either run.main:
PR:
Not tested
AI use
18c105aand its runs, and this description7d1c008🤖 Generated with Claude Code