Tests: cover textured graphics PSOs and static samplers on the GPU #969
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!969
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-969"
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?
@ChalanaGimhanaX on GitHub · 2026-11-24 09:40 UTC · original
ChalanaGimhanaX:tests/gpu-textured-draw-e2e→main· +394 −0 · 1 files · 1 commits · open
crates/xcl/tests/gpu_pso_e2e.rsskips its textured pipeline test wheneverXCL_SAMPLE_RPFis unset, leaving textured graphics PSO translation, T#/S# descriptor decoding, multi-draw descriptor switching, and static sampler extraction without game-free GPU coverage onmain. This adds an integration test binary with minimal hand-encoded console VS/PS containers exercisingCreateGraphicsPipelineStateend-to-end. No runtime files or game data are touched.What is in it
crates/xcl/tests/gpu_textured_draw_e2e.rs: two synthetic GPU tests throughCreateGraphicsPipelineState:console_textured_ps_decoded_descriptors_and_switch_between_draws: console VS (POSITION+COLOR+TEXCOORD) + PS loading an 8-dword T# and dynamic 4-dword S# froms[8:9]and multiplyingimage_sampleby vertex color; decodes two 64x64 linear RGBA8 T#s (identity and BGRA swizzle) viagpu::desc::{image, image_d3d12, sampler_d3d12}, checkstranslated_pipelines/fallback_pipelines, draws both halves in one command list viarunner::draw_on_multiswitching onlys[8], and verifies all 4096 pixels.console_ps_static_sampler_from_constants_in_abi_root_signature: console PS constructing two S# descriptors from SGPR constants (POINT + BORDER(opaque white)andLINEAR + WRAP); verifies static sampler extraction (compiled.samplers) and draws overu in [0, 2]with&[]dynamic samplers so sampling runs solely through the pipeline's ABI root signature static samplers.Tested
rustc 1.100.0 (0ef1bc386 2026-11-09), debug build, tested on both GPUs on this machine:32.0.21030.11004):XCL_ADAPTER=radeon .\scripts\test.ps1(cargo test --workspace -- --test-threads=4): 718 passed, 0 failed, 41 ignored (0 GPU tests skipped)XCL_ADAPTER=radeon XCL_REQUIRE_GPU=wave64,mesh cargo test -p xcl --test gpu_textured_draw_e2e: 2 passed, 0 failedXCL_ADAPTER=radeon XCL_SPLIT_WAVE64=1 cargo test -p xcl --test gpu_textured_draw_e2e: 2 passed, 0 failedXCL_ADAPTER=radeon XCL_ASYNC_PSO=0 cargo test -p xcl --test gpu_textured_draw_e2e: 2 passed, 0 failedXCL_DXIL_CACHErun onradeon: 2 passed, 0 failed610.88/32.0.16.1088):XCL_ADAPTER=nvidia .\scripts\test.ps1(cargo test --workspace -- --test-threads=4): 718 passed, 0 failed, 41 ignored (2 GPU skips:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware—no wave64)XCL_ADAPTER=nvidia cargo test -p xcl --test gpu_textured_draw_e2e(default andXCL_ASYNC_PSO=0): 2 passed, 0 failed (0 skips)XCL_ADAPTER=warp): 2 skipped cleanly (no wave64)cargo clippy -p xcl --test gpu_textured_draw_e2e: 0 warnings/errors ingpu_textured_draw_e2e.rsNot tested
d3d12SDKLayers.dllnot installed) and optionalXCL_SAMPLE_*retail-data testsAI use
crates/xcl/tests/gpu_textured_draw_e2e.rsand this PR description, checked open PRs for overlap, and ran local verification; all assertions and dual-GPU results verified on AMD Radeon 780M and NVIDIA RTX 5060 hardware.@Aniseto on GitHub · 2026-11-24 10:16 UTC · original · edited 2026-11-24 10:21 UTC
Ran both new tests at
23eb733on a second Blackwell part (wave32 only).Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build.
The textured PS path and the static sampler from the ABI root signature both render and read back correctly here. This adds an RTX 5070 Ti / driver 32.0.16.2124 datapoint next to the PR's RTX 5060 Laptop run, on Windows 11 build 26200.
Not tested: RDNA2/RDNA4 and Intel GPUs, Wine, the D3D12 debug-layer path for this test, optional
XCL_SAMPLE_*retail-data tests.AI-assisted (OpenCode), model: DeepSeek V4.1 Flash 1017 - checked out the PR's head commit in a detached worktree, built it, ran the test binaries, wrote this report; the worktree was not modified.
@SlopTart on GitHub · 2026-11-24 10:38 UTC · original
Linux / AMD RDNA3 datapoint.
Merged state: head
23eb733onto main6bac4b4, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 710 passed, 11 failed, 41 ignored; failures are the known Wine-lane set from my #42 rows plus this rig's title-textures flake family (see #718). textured-graphics-PSO/static-sampler test coverage green on RDNA3 wave64.Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile,--test-threads=4. My Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
@DavidM1911 on GitHub · 2026-11-24 13:51 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:Thanks!
@JJAutoCompare on GitHub · 2026-11-25 05:38 UTC · original
Empirical test report (
23eb733a)Verified xcl-dev/xcl PR #969 at commit
23eb733a0faf096ff22ab0294564cb58516eae6ein a clean, detached worktree.Hardware / environment
1.100.0 (0ef1bc386 2026-11-09). DXC1.9.2609.5 (01b62ad47). Unoptimized Cargo test profile, debug info and incremental compilation disabled.Commands and results
cargo test --workspace --no-runexited 0 outside the GPU lock.Invoke-ArcTest.ps1 -Test { & $fixture }ran the builtgpu_textured_draw_e2etest executable withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1. Exit 0 in the lock wrapper. The test harness reported 2 passed, 0 failed, 0 ignored, and the complete captured output contained 0SKIPPEDlines. Harness time was 2.97 s.Observed behavior
console_textured_ps_decoded_descriptors_and_switch_between_drawspassed its pixel readback checks for decoded texture and dynamic sampler descriptors, switching the descriptor table between two draws in one command list, and BGRA swizzle on the right half.console_ps_static_sampler_from_constants_in_abi_root_signaturepassed its static-sampler extraction and pixel readback checks for point filtering with an opaque white border and linear filtering with wrap, with zero dynamic samplers supplied.Not tested
The full GPU workspace suite and game smoke runs were omitted. Coverage is limited to the two synthetic fixtures on the Arc A770.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr969-focused.logand published.@DavidM1911 on GitHub · 2026-11-26 03:23 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
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.