Repository navigation
Conversation
The explicit-LOD 1D test checked linear-mip results against an absolute blend of the two levels (10 + 40 * LOD). The weight a host GPU applies between levels is a property of its filtering, not of the 1D path: on an RTX 4090 (NVIDIA 616.92) both the 2D-through-1D sample and the reference image_sample_l with DIM 1D return the same bits, blended with weight 0.4375 at LOD 1.25 instead of 0.25, so the check failed on main. Linear-mip cases keep the bit-for-bit comparison with image_sample_l DIM 1D through the same T#, which is the behaviour the feature claims; point sampling keeps its absolute texel and level checks.
|
Marking this as a draft: the same check passed on an RTX 4090 (same driver) at #5583's pre-merge head a98b065, so something in the merged combination with #5375/#5456 changed what NVIDIA computes for 1D explicit-LOD samples. I'm comparing the generated SPIR-V and sampler/view state between those heads to find the cause instead of relaxing the test. |
|
Found the likely cause. Between a98b065 (passes on the 4090) and e52e140 (fails), the SPIR-V, samplers and image views for this case are byte-identical. The only difference is that the sampled |
|
@mitul72 Ran it. Removing Windows 11 (26200), RTX 4090 (NVIDIA 616.92), MinGW-w64 GCC 15.2.0 r7 (UCRT), Release,
So on this card the value is stable at 67.501945 whatever the image's create flags, and the only thing that changes the verdict is the check itself. Two more facts that narrow where to look:
Side finding from the same runs: with the flag removed, AI-assisted: yes (Claude Code). |
What
The explicit-LOD test added in #5583 checked the linear-mip cases against an absolute blend of the two mip levels (
10 + 40 * LOD). The weight a host GPU applies between levels is a property of its filtering, not of the 2D-through-1D path. On an RTX 4090 (NVIDIA 616.92), as reported in #5583, the 2D-through-1D sample and the referenceimage_sample_lwith DIM 1D return the same bits but blend with weight 0.4375 at LOD 1.25 instead of 0.25, soagc_driver_image_plane_address_on_linefails onmainthere.The linear-mip cases keep the bit-for-bit comparison with
image_sample_lDIM 1D through the same T#, which is what the feature claims. Point sampling keeps its absolute texel and level checks. Test-only change.Tested
Linux, RX 9060 XT (RADV GFX12):
agc_driver_image_plane_address_on_linepasses. Not run on NVIDIA here; the failing case is the one reported in #5583.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)🤖 Generated with Claude Code