D3D12.X: a console sampler keeps its filter and border colour #1885
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!1885
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1885"
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?
@veyn-sudo on GitHub · 2026-11-24 22:34 UTC · original
veyn-sudo:pr/sampler-filter→main· +73 −13 · 1 files · 2 commits · openCreateSamplerX(device #61) made every sampler anisotropic with a transparent black border, whatever the desc asked for: point samplers filtered linearly, and opaque black and white borders were lost. Both fields are in the console desc and are now taken from it.What is in it (
crates/xcl/src/hle/d3d12x/device_x.rs)pc_sampler_desc, so that it can be testedA maximum anisotropy of 1 gives no anisotropic filter. Anisotropic point (2) is point, as #1117 reads it in an S#.
Tested
cargo test --workspace -- --test-threads=4: 961 passed, 0 failed, 43 ignored. SKIPPED lines: 18 no wave64, 1 no heap windows, 3 per-lane f16 refusalsconsole_samplers_keep_their_filter,console_samplers_keep_their_border_colourRegression run
main:
PR:
Not tested
HANDOFF.mdsays "#61 CreateSamplerX (0x6C-byte desc → anisotropic PC sampler)": no longer true for every sampler.AI use
🤖 Generated with Claude Code
@futurepro62 on GitHub · 2026-11-24 22:45 UTC · original · edited 2026-11-24 22:53 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
b76c075(on its basec4d37be).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: 956 passed, 0 failed, 43 ignored. SKIPPED (no wave64):a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu,a_per_lane_2d_or_3d_group_runs_on_the_gpu,coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu,cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware,the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.console_samplers_keep_their_filter,console_samplers_keep_their_border_colour.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 961 passed, 0 failed, 43 ignored. SKIPPED:f16_programs_on_the_gpu(f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipleaves out five tests where this PR's base has them. They fail on main689f2dbtoo, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns their skips into failures. These areheap_window_out_of_memory_falls_back_to_the_switch_form(#1651) and the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests (follow-up on #1651). The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-25 02:07 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@JJAutoCompare on GitHub · 2026-11-25 03:00 UTC · original
PR #1885 — Intel Arc A770 verification
Tested commit
b76c075450a3bee4d4d27ad6e9de06d0e308f933, the fetched PR head.Environment
STOR-WINLAB, Windows 11 Enterprise Evaluation build 26200.9974, AMD Ryzen 7 3800X. Intel Arc A770 16 GiB, driver 32.0.101.9175, wave range 8–32,
DoublePrecisionFloatShaderOps=0. DXC/DXIL 1.9.2609.5,rustc 1.100.0 (0ef1bc386 2026-11-09). Unoptimized builds with debug info disabled andXCL_ADAPTER=A770.Tested
cargo build --workspaceandcargo test --workspace --no-runboth succeeded outside the GPU lock.cargo test -p xcl console_samplers_keep -- --nocapturereported 2 passed, 0 failed, 0 ignored. The two CPU tests verify point, linear, mixed and anisotropic filter encoding and preservation of all four border-colour components in the PC descriptor used byCreateSamplerX.cargo test --workspace --no-fail-fast -- --test-threads=4ran once under the shared Arc lock. Cargo exited 101.pr1885-suite.logcontains 20 result blocks totalling 942 passed, 19 failed, 43 ignored, with 22SKIPPEDlines counted separately. Both sampler tests passed in this run too.Failures and skips
0x80070057, including FP64 cases. Four reported result mismatches in FMA overflow, FP16 high-half preservation, implicit-LOD offset sampling (25.609375 vs 26), and wave64 pixel reductions. The offset-sampling test supplies a sampler from an S# descriptor directly to the GPU runner.RSSetDepthBiasXcheck read blue at the top-right pixel where it expected green.Not tested
GPU rendering via
CreateSamplerX, retail titles or a pairedmain/PR smoke run, other GPUs, and game-data checks gated by unsetXCL_SAMPLE_*variables. The debug-layer title check returns early on this host becaused3d12SDKLayers.dllis absent.AI use
T3 Code / Codex (
gpt-6.2-sol,reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity,gemini-4-neon) verified counts againstpr1885-suite.logand published this report.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.