Recompiler: image_sample_b/d/cd/c_o offsets move by the mip they read #247
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!247
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-247"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Kalmarv on GitHub · 2026-11-23 21:49 UTC · original
Kalmarv:fix/sample-o-lod-variants→main· +365 −8 · 2 files · 1 commits · openFollows #229. #229 moves the coordinates by offset / size of the mip the console reads, but it picks that mip only for the plain form (implicit LOD in a PS, or a given LOD). The bias, gradient and comparison forms still take mip 0's size. With a point mip filter, the texel read is then off by up to one texel of the mip actually sampled. This PR picks the mip for those forms too.
What main does today:
image_sample_b_o: in a PS, the implicit LOD without the bias; outside a PS, mip 0, though the sample isSampleLevel(bias).image_sample_d_o/cd_o: mip 0 whatever the gradients say.image_sample_c_oin a PS: mip 0, because the plain-form branch excludes comparison samplers.CalculateLevelOfDetailtakes noSamplerComparisonState; DXC rejects it.What is in it
One commit,
227a60a, onmain9e3831e:287ca93(ondd2ae9a) with @JGonzalezRodriguez's five review points fixed (the review points are marked below), then rebased onto9e3831ewithout conflicts (asc14bd12ondd2ae9ait is the same patch;git range-diff:=). The rebase is there because a whole-suite run ondd2ae9astops in the #344 deadlock, whose fix (#443) came later.287ca93wasa60db9f(on9ab7d76) rebased without conflicts and without a changed line.crates/xcl/src/gpu/recomp/emit.rs: the offset's level for these forms is:log2of the longer gradient in mip-0 texels), or in a PS the pixel's own LOD (CalculateLevelOfDetailUnclamped, or for comparison samplers the samelog2ofddx/ddyof the coordinates);CalculateLevelOfDetailUnclampedalready has it);descmakes the view and the sampler: from below by the larger of the S# MIN_LOD and the T#'s MIN_LOD (word 1 [19:8], the SRV'sResourceMinLODClamp; point 2), from above by MAX_LOD, which is MIN_LOD without a mip filter (S# word 2 [27:26] = 0; point 1); rounded, and clamped to the view's last mip.SampleCmpLevelZero), and in a PS the pixel's own LOD, becauseSampleCmptakes neither gradients nor a bias in SM 6.6. The level-0 size comes from a newmip_size, whichtexel_offsetalso calls (point 5).The LOD is unclamped before the bias, so a bias on a magnified pixel starts below 0. @ryotdev found that the first head (
fd45f20) got this wrong. The plain form, lz, gather and given-LOD forms take the same path as before.crates/xcl/src/gpu/recomp/tests.rs: nine new GPU tests on a 2-mip texture (8², 4²) with point min, mag and mip filters, so each pixel reads exactly one mip. Four of them are for the review:gpu_ps_image_sample_offset_without_a_mip_filter,…_resource_min_lod,…_sampler_bias, andgpu_image_sample_c_b_d_offset_moves_by_the_mip_read(PS and VS). The last one samples a checkerboard (one in each mip's own texels) at offsets 0 and +1. Moving by one texel of the mip that was read flips every pixel, so the test doesn't depend on which mip that is.Overlap with #349 and #350: they make the PS
SampleCmptake the bias and the gradients. In a tree with either of them and this PR, the matching line here (lod_biasfor #349,lod_gradsfor #350) has to take them too. The two lines are separate, so neither follow-up conflicts with the other.Tested
cargo test --workspace -- --test-threads=4on227a60a: 785 passed, 0 failed, 41 ignored (thexcllibrary: 736 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).image_sample_offset, and the new comparison test) onc14bd12(the same patch ondd2ae9a): 11 passed. Withemit.rsfrom287ca93(the same tests), the four review tests fail and the other seven pass. Each of their 12 cases run on its own (a scratch test, not in the PR): 11 fail on287ca93, all 12 pass onc14bd12. The 12th,b_owith the sampler's LOD_BIAS, is a control and passes on both.cargo test --workspace -- --test-threads=4on287ca93: 695 passed, 0 failed, 41 ignored (thexcllibrary: 655 passed, 21 ignored). SKIPPED GPU tests:gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware, both "no wave64". The sixgpu_ps_image_sample_offsettests (this PR's five and #229's): 6 passed.a60db9f, onmain9ab7d76: 656 passed, 0 failed, 40 ignored, with the same two SKIPPED tests.mainwith and without theemit.rschange (the same test code in both):gpu_ps_image_sample_offset_point_mip(control, plainsample_o)gpu_ps_image_sample_offset_bias_lod(b_o, LOD 0 + bias 1)gpu_ps_image_sample_offset_bias_lod_magnified(b_o, LOD -1 + bias 1, @ryotdev's case)fd45f20: FAIL, (0,0) = 2, expected 1)gpu_ps_image_sample_offset_gradient_lod(d_oandcd_o, gradient LOD 1)cd_ofails the same way, 48 of 256 pixels)gpu_ps_image_sample_offset_compare_lod(c_o, implicit LOD 1, LESS_EQUAL)gpu_ps_image_sample_offset_implicit_lod_between_mips(#229's)gpu::recomp::on287ca93: 188 passed, 0 failed, 18 ignored (ona60db9f: 187 passed, 0 failed, 18 ignored).fd45f20, before the magnification fix, onmain9ab7d76with an RX 6600 XT (RDNA2).cargo test --workspace: main 651 passed, 0 failed; PR 655 passed, 0 failed. No GPU test was skipped, and the four new tests of that head passed.a60db9f:cargo test --workspace, 656 passed, 0 failed, 40 ignored, and the 5 new tests pass (https://github.com/ivall/xcl/pull/247#issuecomment-7115578260).a60db9f:cargo test --workspace, 656 passed, 0 failed, 40 ignored (https://github.com/ivall/xcl/pull/247#issuecomment-7115669307).a60db9fmerged ontomain2b4bb43, on an RTX 5060 Ti, debug, with the debug-layer tests enabled:cargo test --workspace, 675 passed, 0 failed, 41 ignored; the only SKIPPED tests are the two "no wave64" ones (https://github.com/ivall/xcl/pull/247#issuecomment-7117533720).a60db9fmerged ontomain4017f8f(a clean merge) (https://github.com/ivall/xcl/pull/247#issuecomment-7116443830):scripts/test.ps1: 657 passed, 0 failed, 40 ignored, with no SKIPPED GPU tests.tests.rs(noemit.rschange),…_bias_lod,…_gradient_lodand…_compare_lodfail;…_point_mipand…_bias_lod_magnifiedpass with and without the fix.227a60a(on9e3831e) (#247), debug, DXC 1.9.2602: on an RTX 5070 Ti (NVIDIA 621.40),XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4with 8--skipfilters, 784 passed, 0 failed, 41 ignored, and all of this PR's tests ran and passed. On the Radeon integrated GPU (iGPU) of a Ryzen 7 9800X3D (RDNA2), 785 passed, 0 failed, 41 ignored; its only SKIPPED test isheap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows). Of the skip filters, only that test exists at this head (it is not this PR's); the other seven name tests that reachedmainafter9e3831e, so they skipped nothing here.main9ab7d76and this head:main901 / 1180 / 1184 frames, this PR 1168 / 1167 / 1357, no crash or device removal (https://github.com/ivall/xcl/pull/247#issuecomment-7117441417). No_osample form appears in the title's first menus, so these runs and ours below are a regression check, not a test of the change.Regression run
scripts/smoke.ps1, the same retail title for 60 s each, one after the other on the machine under Tested (RTX 5070 Ti, NVIDIA 610.74), release builds, no uncommitted changes.main9e3831e:this PR's head
227a60a:PR vs
main: 1313 / 1274 frames (103 %), peak commit 27471 / 27459 MB (100 %); no device removal and no crash on either run.Not tested
image_sample_l_othe offset uses the given LOD before the sampler's bias and MIN/MAX_LOD, as on main. Sampler bias onimage_sample_b_ofollows it on NVIDIA 610.74 (measured); AMD not measured.a60db9f: the RX 6600 XT run above is offd45f20. RDNA4 rana60db9f(@nullmarsh, above).b_oandd_ooutside a pixel shader, 1D / 3D / array textures, A16 addresses, and a min-LOD clamp (_cl_) together with an offset.ResourceMinLODClampin the view's levels or the resource's.image_sample_c_l_oin a PS: the offset moves by the given LOD, whileSampleCmpreads the pixel's own, as on main.227a60a: only the RDNA2 iGPU run above (@futurepro62) is of this head.log2of the longer gradient, which can differ from the hardware's at a mip boundary. The plain form'sCalculateLevelOfDetailhas the same limit.AI use
dd2ae9aand its runs; Claude Code (Claude Opus 5.5), the fixes for @JGonzalezRodriguez's review, their tests and the runs onc14bd12and227a60agithub-bot referenced this pull request2026-11-26 04:59:09 +00:00
@ryotdev on GitHub · 2026-11-23 21:58 UTC · original
I reproduced a magnification edge case on native Windows 11 with an RTX 5070 (driver 32.0.16.1088) and DXC 1.9.2609.5. I applied
fd45f206's diff onmain@7a033c8cand used the same synthetic test code for both builds.I duplicated
gpu_ps_image_sample_offset_bias_lod, changed the scale from1/8to1/16, kept the instruction bias and offset at +1, and expectedtexel_moved(0, u). That gives implicit LOD −1, plus bias 1, so the sample and offset should both use mip 0.Using
CalculateLevelOfDetailUnclampedin the biased pixel path let the instruction bias see the raw negative LOD. With that local change, all sixgpu_ps_image_sample_offset_tests passed on the GPU, including the original positive case and the magnification regression. This checks the sampler in the existing fixture. Any sampler and view bounds still need to be applied after bias. Direct3D LOD calculationSynthetic textures only. Rust 1.100.0, clang-cl/lld 19.1.1 with xwin SDK 10.0.26100. AI-assisted (Codex).
@Kalmarv on GitHub · 2026-11-23 22:07 UTC · original
Thanks @ryotdev, that was a real regression. Your case is now
gpu_ps_image_sample_offset_bias_lod_magnified: onfd45f20it fails as you saw it ((0,0) = 2, expected 1), and on the new head it passes. RTX 5070 Ti, 610.74: all 6gpu_ps_image_sample_offset_*pass, andgpu::recomp::gives 187 passed, 0 failed, 18 ignored.The new head
a60db9f(one commit, rebased on9ab7d76) usesCalculateLevelOfDetailUnclampedin the biased path, as you suggested. The sampler's MIN_LOD / MAX_LOD and the view's last mip are applied after the bias. The gradientlog2and thec_oddx/ddy LOD were already unclamped before the bias.🤖 Claude Opus 5.5
@WarmMilkCodes on GitHub · 2026-11-23 22:09 UTC · original
Tested #247
fd45f20merged onto main9ab7d76on AMD Radeon RX 6600 XT (RDNA2), driver 32.0.21045.29003, Windows 11 23H2 (22631.6199): passcargo test --workspace --no-fail-fast -- --test-threads=4, noXCL_SAMPLE_*data: main 651 passed / 0 failed; this 655 passed / 0 failed, 0 GPU tests skipped. The PR's 4 new tests pass on RDNA2; no new failures.@denio4321 on GitHub · 2026-11-23 22:17 UTC · original
Tested
a60db9fmerged ontomain9ab7d76on RTX 3060 12 GB (Ampere, 32-lane waves), NVIDIA 610.88, Windows 11 Pro 23H2 (22631), rustc 1.100.0 MSVC, DXC 1.9.2602.17: pass..\scripts\test.ps1(debug,--test-threads=4), noXCL_SAMPLE_*set. Baselinemain9ab7d76alone on the same machine: 651 passed, 0 failed, 40 ignored.gpu_ps_image_sample_offset_point_mip,_bias_lod,_bias_lod_magnified,_gradient_lodand_compare_lod.main(no wave64).The magnification case from the comment above (
_bias_lod_magnified) passes here too.Not checked: the negative control, or any game.
AI-assisted (Claude Code).
@PHeitor1 on GitHub · 2026-11-23 22:22 UTC · original
Tested on RTX 5060 Ti 8 GB, driver 621.24, Ryzen 5 5600X, Windows 11 Pro 26300 (native), Rust 1.100.0 msvc, debug.
cargo test --workspace --no-fail-fast -- --test-threads=4on the heada60db9f: 656 passed, 0 failed, 40 ignored (main9ab7d76: 651 / 0 / 40). SKIPPED: only the usual twono wave64(gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware).Run and written with Claude Code (Claude Opus 5.5).
@Kalmarv on GitHub · 2026-11-23 22:30 UTC · original
Regression run wanted. We have no title on our machine. If you can run
scripts/smoke.ps1 -Game <your title folder>twice, once built frommain(9ab7d76) and once from this PR's head (a60db9f), please paste bothxcl-smokeblocks here. I'll copy them into the description with your name and hardware.🤖 Claude Opus 5.5
@JGonzalezRodriguez on GitHub · 2026-11-23 22:35 UTC · original
Tested PR #247 head
a60db9fagainst base9ab7d76on both NVIDIA and AMD RDNA2 (native wave64).Tested
NVIDIA 610.57.4, wave32) and AMD RDNA2 iGPU (RADV RAPHAEL_MENDOCINO,radv 26.2.4, native wave64 + wave32) via Proton Experimentalwine+ relaxedvkd3d-proton; DXC1.9.2609.5; cross-builtx86_64-pc-windows-msvcdebug (rustc 1.98.1,clang-cl 23.1.1+lld-link,0 errors, 0 warnings).image_sample_offsettests (a60db9fvs9ab7d76emit.rswitha60db9ftests.rs):9ab7d76(RTX 4090 / RADV)a60db9f(RTX 4090 / RADV)gpu_image_sample_offsetgpu_ps_image_sample_offset_implicit_lod_between_mipsgpu_ps_image_sample_offset_point_mipgpu_ps_image_sample_offset_bias_lod_magnifiedgpu_ps_image_sample_offset_bias_lod100, want101) / FAIL (100, want101)gpu_ps_image_sample_offset_gradient_lod100, want101) / FAIL (100, want101)gpu_ps_image_sample_offset_compare_lod0, want1) / FAIL (0, want1)a60db9ffixes the symmetricb_ominification + negative bias case (LOD +2+ bias-1→101),b_owithMaxLOD = 0(MIP_FILTER = point→1), andd_owithMinLOD = 1(101) on both GPUs.Findings (synthetic probes reproduced identically on both RTX 4090 and AMD RDNA2)
MIP_FILTER == 0(NONE, S#w[2][27:26]) is ignored (emit.rs:2190-2212) — regresses vs9ab7d76:desc::sampler_d3d12(desc.rs:290,322) forcesMaxLOD = MinLODwhenMIP_FILTER == 0, whilea60db9freads only S#w[1](MAX_LOD). WithMIP_FILTER = NONEandMAX_LOD = 0xFFF:d_o(grad1): pass (1) on9ab7d76→ FAIL (2, want1) ona60db9fb_o(LOD0, bias+1): pass (1) on9ab7d76→ FAIL (2, want1) ona60db9fc_o(implicit LOD1): pass (1) on9ab7d76→ FAIL (0, want1) ona60db9fw[2](asemit.rs:2257already does) and settinglod_max = lod_minwhen((w2 >> 26) & 3u) == 0umatchesdesc::sampler_d3d12.T#
ResourceMinLODClamp(tw1[19:8]u4.8,desc.rs:73,251) is dropped onb_o(emit.rs:2203-2212) — new regression ina60db9f:CalculateLevelOfDetailincludedSRV.ResourceMinLODClamp, whereasCalculateLevelOfDetailUnclampedomits it, anda60db9fclamps only against S#w[1]MIN_LOD:b_o(LOD0, bias0) withResourceMinLODClamp = 1.0: pass (101) on9ab7d76→ FAIL (100, want101) ona60db9ftw1is already bound atemit.rs:2088, solod_min = max(s_min, (float)((tw1 >> 8) & 0xFFFu) / 256.0f)fixes this forb_o,d_o,cd_o, andc_o.S#
MipLODBias(w[2][13:0]s5.8) is omitted ongrad_lodpaths (d_o,cd_o,c_o) (emit.rs:2201-2202):SampleGradandSampleCmpboth applysampler.MipLODBias, whereas rawlog2(...)does not:d_o(grad0) +MipLODBias = +1.0: FAIL (100, want101)c_o(implicit LOD0) +MipLODBias = +1.0: FAIL (0, want1)(float)(((int)(w2 << 18)) >> 18) / 256.0fto thegrad_lodbranches aligns them withCalculateLevelOfDetailUnclamped(which already includessampler.MipLODBias).Comparison forms with explicit gradients/bias (
c_d_o,c_cd_o,c_b_o) regress againstSampleCmp/SampleCmpLevelZero(emit.rs:2200-2209vs2233-2234):emit.rs:2233-2234emitsSampleCmp(implicit LOD, ignoringgrads/bias) in PS andSampleCmpLevelZero(mip 0) outside PS, while the offset-level path now usesgrad_lod(dx, dy)/+ bias:c_d_oin PS (implicit LOD0, grad1,GREATER_EQUALz=1.5): pass (1) on9ab7d76→ FAIL (0, want1) ona60db9fc_b_oin PS (implicit LOD0, bias+1,GREATER_EQUALz=1.5): pass (1) on9ab7d76→ FAIL (0, want1) ona60db9fSampleCmpGrad/SampleCmpBias/SampleCmpLevelare used,has_cshould match the emitted instruction (0uwhen!ps || has_lz, pure screen-derivative LOD + sampler bias/clamps whenps).Minor:
emit.rs:2188callsself.texel_offset(&t, dim, o, "0u", "0")just to obtain{t}_w0/{t}_h0/{t}_d0/{t}_n0, leaving an unusedfloat3 {t}_o0.Not tested
a60db9f(ran targetedimage_sample_offset+ probes ona60db9f; fullgpu::recomp::tests::ran onfd45f20), retail titles.AI use
Antigravity (Gemini frontier model) assisted with code review, dual-GPU synthetic probe execution, and drafting this report; every line cited and repro result was directly verified on this host.
@ghost on GitHub · 2026-11-23 23:00 UTC · original
Tested
a60db9fmerged ontomain4017f8f(clean merge) on AMD RDNA4: pass, and three of the five new tests fail without the fix.Tested
.\scripts\test.ps1: 657 passed, 0 failed, 40 ignored; noSKIPPEDGPU tests on this adapter.XCL_REQUIRE_GPU=wave64,mesh cargo test -p xcl --lib image_sample_offset: 7 passed, 0 failed (the five newgpu_ps_image_sample_offset_*tests,..._implicit_lod_between_mipsandgpu_image_sample_offset).tests.rsonmain4017f8f(theemit.rschange left out):..._bias_lod,..._gradient_lodand..._compare_lodfail (tests.rs:2005)...._point_mipand..._bias_lod_magnifiedpass with or without the fix, so on this adapter they guard against regressions rather than show this change.Not tested
XCL_SAMPLE_*set and no retail title, so nosmoke.ps1regression run; vertex/compute stages with a bias or gradients (the new tests are PS only); NVIDIA.AI use
@srcamarda on GitHub · 2026-11-23 23:51 UTC · original
@Kalmarv the regression run you asked for, plus the first RDNA3 run.
Tested
a60db9fitself (on9ab7d76), no uncommitted changesXCL_REQUIRE_GPU=wave64,mesh cargo test -p xcl --lib image_sample_offset: 7 passed, 0 failed (the five new tests,…_implicit_lod_between_mips,gpu_image_sample_offset)cargo test --workspace -- --test-threads=4(debug): 656 passed, 0 failed, 40 ignored, noSKIPPEDRegression run (retail title,
scripts/smoke.ps1, 90 s, release). Three runs of each binary, the first with a cold translation cache:main901 / 1 180 / 1 184 frames, this PR 1 168 / 1 167 / 1 357. No crash or device removal in any, and the same peak commit.gpu:names a virtual display adapter on this machine; XCL ran on the RX 7800 XT. The second run of each:main9ab7d76:this PR's head
a60db9f:Not tested
image_sample,_l,_lz,_c_lz,_dand_b(report.json→shaders.rdna2_mnemonics), but no_oform, so this run is a regression check only. The negative control was also not run here; nullmarsh did that on RDNA4.AI use
@PHeitor1 on GitHub · 2026-11-23 23:56 UTC · original
Re-tested
a60db9fmerged ontomain2b4bb43(clean merge) on RTX 5060 Ti 8 GB (Blackwell, 32-lane waves), NVIDIA 621.24, Ryzen 5 5600X, Windows 11 Pro 26300 (native, Graphics Tools + XGameRuntime installed, so the debug-layer tests run), rustc 1.100.0 MSVC, debug,cargo test --workspace --no-fail-fast -- --test-threads=4, noXCL_SAMPLE_*.Pass: 675 passed, 0 failed, 41 ignored. SKIPPED: only the 2
no wave64tests.Run and written with Claude Code (Claude Opus 5.5).
@Kalmarv on GitHub · 2026-11-23 23:57 UTC · original
@srcamarda thank you, both blocks are in the description under Regression run, with your three-run spread and the note that the title's first menus don't reach an
_oform.🤖 Claude Opus 5.5
@Kalmarv on GitHub · 2026-11-24 17:36 UTC · original
@JGonzalezRodriguez thank you, and sorry this took a day. I checked all five points against the code and on the GPU, and they all hold. They're fixed in
227a60a, squashed into the PR's commit and rebased ontomain9e3831e. A whole-suite run on the old base stops in the #344 deadlock, which #443 fixed later. Each fix has a GPU test, and each test fails on287ca93:desc::sampler_d3d12sets up the sampler. Testgpu_ps_image_sample_offset_without_a_mip_filter: your three cases,d_o(gradient LOD 1),b_o(LOD 0 + bias 1) andc_o(implicit LOD 1), read mip 0 and move by one of its texels.ResourceMinLODClamp. Testgpu_ps_image_sample_offset_resource_min_lod:b_oandd_oat LOD 0 with a clamp of 1.0 move by mip 1's texels.d_o,cd_o) and the screen derivatives ofc_o. That matches SampleGrad and SampleCmp, which add it.b_oin a PS usesCalculateLevelOfDetailUnclamped, which already includes it. Testgpu_ps_image_sample_offset_sampler_bias:d_oat gradient LOD 0 andc_oat LOD 0 with LOD_BIAS +1 move by mip 1's texels.b_ois a control and passed before too.SampleCmpLevelZero) and by the pixel's own LOD in a PS (SampleCmp, which takes neither gradients nor a bias in SM 6.6). Testgpu_image_sample_c_b_d_offset_moves_by_the_mip_readcoversc_b_oandc_d_oin a PS and in a VS. It samples a checkerboard (one in each mip's own texels) at offsets 0 and +1. Moving by one texel of the mip that was read flips every pixel; moving by the other mip's texels flips half of them or none. So the test doesn't assume which mip is read.#349 and #350 make the PS
SampleCmptake the bias and the gradients. In a tree with either of them and this PR, the matching line here has to take them too:lod_biasfor #349,lod_gradsfor #350. The two lines are separate, so the two follow-ups don't conflict. I'll check this on a tree with all three, and push the one-line change to whichever of the three lands last.{t}_o0is gone. The level-0 size now comes frommip_size, whichtexel_offsetalso calls.Tested (RTX 5070 Ti, NVIDIA 610.74, Ryzen 9 9950X, Windows 11 Pro 26200, debug, SDK DXC 1.7)
gpu_ps_image_sample_offset*,gpu_image_sample_offsetand the new comparison test onc14bd12(the same patch before the rebase): 11 passed, 0 failed.emit.rsfrom287ca93: the four new tests fail and the other seven pass. Each case on its own (a scratch test, not in the PR): 11 of the 12 cases fail on287ca93, and all 12 pass onc14bd12; the 12th is theb_ocontrol.cargo test --workspace -- --test-threads=4on227a60a: 785 passed, 0 failed, 41 ignored (thexcllibrary: 736 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).Not tested
ResourceMinLODClampin the view's levels or the resource's.c_l_oin a PS still moves by the given LOD whileSampleCmpreads the pixel's own, as on main.AI use: Claude Code (Claude Opus 5.5)
@PHeitor1 on GitHub · 2026-11-24 21:21 UTC · original
Retest of the new head
227a60a, merged ontomain4178e88(clean): passes on Blackwell, and five of its tests fail here without the fix.Tested
XCL_SAMPLE_*.cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4: 900 passed, 0 failed, 42 ignored. SKIPPED: the 2no wave64tests,heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows, andpso_measurement_compiles_an_exact_synthetic_record(Developer Mode is off here).image_sample_offset,image_sample_c_b_d_offset),--test-threads=1, no SKIPPED: 11 passed. The same tree with onlyemit.rsfrommain: 6 passed, 5 failed.emit.rsfrommain227a60a…_bias_lod…_gradient_lodd_o(0,0) = 100, expected 101…_compare_lod…_resource_min_lodd_o(0,0) = 100, expected 101…_sampler_biasd_o(0,0) = 100, expected 101…_without_a_mip_filter,gpu_image_sample_c_b_d_offset_moves_by_the_mip_readThe two review tests that pass with
main'semit.rsread mip 0 in the cases they check, which is the mipmainalready uses, so they guard the new code rather than show a bug onmain.Not tested:
287ca93'semit.rs, AMD / Intel, release, a title.Run and written with Claude Code (Claude Opus 5.5).
@raylitebull on GitHub · 2026-11-25 01:08 UTC · original
CI checks (
Build and testandPR description) are green on227a60a.Remaining before merge: an independent AMD GPU pass on the current revised head
227a60a.@Kalmarv on GitHub · 2026-11-25 01:10 UTC · original
Thanks, @raylitebull. An AMD pass on the current head
227a60ais the one missing piece. We have no AMD card here, so this needs someone who does. @srcamarda and @DarkPanda69, you've run AMD passes on related heads before. If either of you has time:Please post the passed, failed and ignored counts, any SKIPPED lines, and your GPU, driver and DXC version.
AI use: Claude Code (Claude Opus 5.5) wrote this.
@DavidM1911 on GitHub · 2026-11-25 15:16 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.Thanks!
@futurepro62 on GitHub · 2026-11-26 08:49 UTC · original
NVIDIA and AMD full-suite run, to go with the reports above by PHeitor1, since none of them covers AMD. Tested exact head
227a60a9(on its base9e3831e).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 784 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.gpu_ps_image_sample_offset_point_mip,gpu_ps_image_sample_offset_bias_lod,gpu_ps_image_sample_offset_bias_lod_magnified,gpu_ps_image_sample_offset_gradient_lod,gpu_ps_image_sample_offset_compare_lod,gpu_ps_image_sample_offset_without_a_mip_filter,gpu_ps_image_sample_offset_resource_min_lod,gpu_ps_image_sample_offset_sampler_bias,gpu_image_sample_c_b_d_offset_moves_by_the_mip_read.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 785 passed, 0 failed, 41 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipleaves out tests that fail on mainb49be183too, not because of this PR. On NVIDIA:heap_window_out_of_memory_falls_back_to_the_switch_form(#1651), the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests,const_and_null_mask_operands_agree_with_hlsl_on_the_gpuandmask_ff0_and_flbit_agree_with_hlsl_on_the_gpu(follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh, andgpu::dxil::fuzz_testsseeds 70, 545, 1019 and 1507 failCreateComputePipelineStatewithE_OUTOFMEMORYon this card (drivers 616.64 and 621.40). On AMD:fuzz_validate_and_gpu_1fails on seed 540 (res[833]0x7 vs CPU 0x6). The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use
@Kalmarv on GitHub · 2026-11-26 08:51 UTC · original
@futurepro62 thank you. That's the first AMD run of this exact head, on the RDNA2 iGPU, and with the 5070 Ti run it's in the description under Tested with your name.
On the
--skiplist: at227a60a(base9e3831e) onlyheap_window_out_of_memory_falls_back_to_the_switch_formexists. It isn't this PR's, and the iGPU run printed it as SKIPPED (no heap windows), so it ran on neither card. The other seven filters name tests that reachedmainafter this PR's base, so they matched nothing here, and none of this PR's own tests was skipped.AI use: Claude Code (Claude Opus 5.5) checked the skip list against the head and wrote this.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.