Repository navigation
Tests: reserved-resource tiling parity with the host driver (issue #480) - #2889
Luislariosss wants to merge 1 commit into
Conversation
|
Update for head NVIDIA run (listed as untested), with an RX 9070 XT in the same PC: the test passes on the AMD card and fails on the RTX 3060, 3 of 3 runs, on the first case. Tested: head
The XCL-slot vs host-driver assert before it passes, so XCL hands back what the driver reports. With a local So NVIDIA packs the single 8x8 mip and gives Not tested: the other three cases on NVIDIA (they don't get reached), Intel, release, the retail title. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report. |
|
I followed up on DarkPanda69's RTX 3060 result with a standalone native D3D12 probe on an RTX 4070 Ti SUPER (617.14, Windows build 28000). For this head ( A separate format control from Wine's vkd3d tiling tests also ran on the same adapter. For single-mip 512×512 textures, BC1/BC4 returned 512×256 and two tiles, and BC5 returned 256×256 and four tiles. BC5 is a useful separate case if you extend the format matrix. Seven standalone native checks passed. The probe also records all three rejections by the original packed-start assertion. DarkPanda69 ran the full XCL test. My run used the host API only. Source, build command and raw output AI use: Codex (gpt-6.2-sol) read the sources, wrote and ran the standalone probe, and prepared this report. |
ca3eb15 to
f334cc9
Compare
|
Thanks both. The
On AMD (RX 9060 XT, driver 32.0.32029.2010) the test still passes with the new case: 1 passed, 0 failed. @DarkPanda69 if you can rerun |
|
@Luislariosss Reran at AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this reply. |
|
Thanks @DarkPanda69 - with 4 of 4 on the RTX 3060 at |
…re messages) Upstream xcl-dev#2890 (c6c14a1, single-commit on upstream/main 8b957be): title_under_the_debug_layer prints the last TAIL=40 lines of xcl.log in its three assertion messages and tolerates a missing log file (unwrap_or_default), so a title that never finishes still shows why. Verbatim port of the whole fix (1 file, +24/-4): the TAIL const + tail() helper after the PathBuf import and the three rewritten asserts. Applies cleanly; the only context offset is the linux-only debug_layer_skip_line helper above the hunk. Windows-only siblings xcl-dev#2888 (perf-compare ps1 stack), xcl-dev#2889 (tiling_parity.rs host-driver test, no cfg(windows) gate), xcl-dev#2891 (title_textures.rs write-watch tiering on the 71b8e6e dev-stack) stay out per the step-139 sync entry.
…m, pure std) Upstream single-commit 7575f67 on 8b957be: 1 file shaders.rs +38/-2. Helper + 2 direct_sweep call-site swaps + regression test, hunk bodies identical (only line offset from linux-only helpers). xcl-dev#2909/xcl-dev#2910 SKIP (hle/d3d12x/real.rs, Windows-only); xcl-dev#2906 SKIP (dev-stack tip, same shape as xcl-dev#2886); xcl-dev#2889 re-pinned f334cc9 (force-push, still SKIP).
|
Intel Arc A770 capability check at Tested: Clean PR head, Windows 11 build 26200, Ryzen 7 3800X, Arc A770 16 GB, driver Not tested: The reserved-texture tiling assertions did not execute on this Arc adapter. AI use: T3 Code / Codex ( |
Part of #480. Supersedes #712: the branch was force-pushed after that PR was closed, so GitHub cannot reopen it; this is the same change, reworked.
There is no test that checks XCL's D3D12 answers against the PC driver on the same machine, and for the part of the API plain D3D12 also implements the driver is ground truth: if the tiling XCL reports differs from what the driver would say, the title sees a difference no console-file test would catch.
New integration test
crates/xcl/tests/tiling_parity.rs, no game data and no console DLL:d3d12x::vram::place_pages, which rewrites the layout toD3D12_TEXTURE_LAYOUT_64KB_UNDEFINED_SWIZZLEand calls the realCreateReservedResource), obtaining the adopted consoleID3D12Devicefromd3d12x::D3D12XboxCreateDeviceafter checking the backend is Real;GetResourceTilingentry to return identical answers;GetDesc), which the page binding depends on;0xFFFFFFFFas its start tile (NVIDIA does this for a packed 8x8, and it is not a tile index): the packed range comes fromD3D12_PACKED_MIP_INFO, and that is what must fit;runner::skip_test) with no GPU, no tiled-resource support, no tier 2 heaps, or whenXCL_VRAM_ARENASdisables page placement.What is in it
crates/xcl/tests/tiling_parity.rs(new): thereserved_resource_tiling_matches_host_drivertest described above.Tested
stable-x86_64-pc-windows-msvc; debug build.cargo test -p xcl --test tiling_parity: ok, 1 passed, 0 failed, backendreal.BC5_UNORM 512x512(reported by @DarkPanda69 in the thread).cargo test --workspace --no-fail-fast -- --test-threads=4: 1316 passed, 2 failed, 27 ignored. The 2 failures aregpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1andfuzz_validate_and_gpu_3(a CPU/GPU result mismatch in the DXIL fuzzer): library tests this PR does not touch, and they fail the same way onmainon this adapter (tracked upstream in DXIL fuzz tests: fuzz_validate_and_gpu_1 fails on AMD (seed 722 and others, RDNA2-4), so the default suite is red there #2115).Not tested
AI use