Tests: cover textured graphics PSOs and static samplers on the GPU #963
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by ChalanaGimhanaX on 2026-11-24T09:40:08Z.
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.Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-24T10:16:34Z.
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.
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-24T10:38:20Z.
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.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T13:51:24Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:Thanks!
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T05:38:40Z.
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.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T03:23:26Z.
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
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-30T08:41:59Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:33:34Z.
Triage (#1607) – head
23eb733No open or merged PR makes the same change. Main's
retail_textured_ps_decoded_descriptors_and_a_descriptor_change_between_draws(gpu_pso_e2e.rs) checks the descriptor switch with retail sample shaders only. This file does it with hand-built containers and adds a static-sampler extraction test. #941 (same author) covers untextured PSOs in another file and duplicates the container helpers. The lines shared with #896 are only that boilerplate.All the APIs it calls (
runner::draw_on_multi,pso::console_to_dxil_for,desc::xcl_image_words/xcl_sampler_words) exist on main. No problems found in the diff.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.