Repository navigation
Conversation
…_format format_bytes had no test, and typed buffer views take their element stride from it. The new integration test compares it, for every GFX10 format 0-77 that dxgi_format maps, with the element size the device's GetCopyableFootprints gives for that DXGI format, and checks that gfx10_format gives back every format dxgi_format maps. On an RX 9060 XT all 42 formats agree; changing 7..=19 => 2 to 1 makes the test fail and name each 16-bit format. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested Both focused tests passed on Windows 11 build 26300 with the RTX 3080 Ti (621.35), Ryzen 7 9800X3D and Rust 1.99.1 MSVC, debug. With Not tested Full workspace, retail titles, Intel, WARP, and driver element sizes for formats outside the fixture’s range. AI use Codex with GPT-6.2 Sol ran the tests and drafted this report. |
|
NVIDIA data point (the "NVIDIA / Intel / WARP" gap): Setup: Windows 11 Pro 26300, Ryzen 7 7800X3D, 32 GB, RTX 3080 Ti 12 GB (driver 621.01), PR head Runs:
Not tested: Intel, WARP (no CI-runner access from this host). AI use: Gentle Shell (Pi coding agent), model qwen4-max: ran the tests and wrote this report from the logs; a human reviews it before posting. No code changes. |
Test report: #548 under Wine with vkd3d-proton as the host driver (Linux, NVIDIA)The other runs here are native Windows drivers. Under Wine, the host driver this test compares XCL with is vkd3d-proton (D3D12 on Vulkan), and the test passes there as well. Setup
Result:
Not tested
AI use: Claude Code (Claude Opus 5.5) built the test, ran it on the machine above and wrote this report. The results are pasted from those runs. The account owner asked for test reports to be posted while they were away and has not reviewed this one. |
Empirical test report (0e71923)Independent Intel Arc A770 D3D12 verification of PR #548 at detached head Hardware / environment
Commands and results
Observed behavior
Not tested
AI use Verified and published with T3 Code / Antigravity (gemini-4-neon). |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Prime1997
left a comment
There was a problem hiding this comment.
Focused Windows result on the current NVIDIA source: 2 passed, 0 failed, 0 ignored, 0 explicit skips.
Tested this head on an isolated merge tree with nvidia-dev af2cecc40886a8682ecf3267f5328c6dc4b66ad7. The host's physical adapter was an RTX 3060 Ti (32.0.16.1714); the element-size test uses the D3D12 default adapter. Rebuilt with cargo test --locked -p xcl --test format_bytes_driver --no-run. Both named tests ran separately with --test-threads=1 --nocapture, with one filtered out on each invocation.
The driver check covered at least 40 mapped formats in 0–77. The CPU fixture checked reverse mappings across 0–255. The test does not log a device LUID or the exact driver comparison count. This gives useful independent coverage beyond the API footprint tests in #694 and #1808. Current main accepts the test file cleanly. Windows CI was awaiting approval at review time; these local results cover the two new fixtures.
AI use: Codex (GPT-6) reviewed the pinned changes and verified the reported evidence. Optional temporary Discord for coordinating contributor work, testing, and comparing results.
gpu::desc::format_byteshas no test. Typed buffer views take their element stride from it (real::buffer_words_atand the V# path next to it), so a wrong entry gives a title's typed buffer loads the wrong stride. This adds an integration test that checks it against the PC driver on the same machine, plus a check thatgfx10_formatinvertsdxgi_format. Test-only: nothing undercrates/xcl/srcchanges.What is in it
crates/xcl/tests/format_bytes_driver.rs:format_bytes_matches_the_drivers_element_size: for every GFX10 format 0–77 (the rangeformat_bytesdocuments) thatdxgi_formatmaps,format_bytesequals the element size of a 64-texel row from the device'sGetCopyableFootprintsin that DXGI format. Skips withskip_test("no GPU")when no device can be made.gfx10_format_inverts_dxgi_format: for every format 0–255 thatdxgi_formatmaps,gfx10_formatgives it back (no two GFX10 formats share a DXGI one). No device needed.Tested
stable-x86_64-pc-windows-msvc, debug.\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4) onmain7ebf1b8+ this file: 679 passed, 0 failed, 41 ignored, exit code 0; 0SKIPPEDcargo test -p xcl --test format_bytes_driver: 2 passed; 42 formats of 0–77 checked against the driver, all equalformat_bytes's7..=19 => 2changed to=> 1(not committed), the test fails and names each 16-bit format (format 7 (DXGI_FORMAT(56)): format_bytes 1, driver 2; …)Regression run
crates/xcl/tests/;xcl.exedoes not change.Not tested
format_bytesfalls back to 4, while the driver gives 2 for B5G6R5 / B5G5R5A1 / B4G4R4A4 (133, 135, 136) and 8 or 16 bytes per 4x4 block for BC1–BC7 (169–182). BC formats cannot be buffer formats, and 16-bit packed typed buffer views are unusual; the use where these formats do come up isreal::texture_memory, which sizes the address space it reserves for a committed texture from it, so a BC texture gets 4–8 times the space it needs and a very large one can pass the 1 GiB limit there. That is a runtime change, so not in this PR.AI use
🤖 Generated with Claude Code