Repository navigation
Conversation
|
Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on clean Two more passing tests than main: keeping the driver's blob of a slow graphics pipeline is exercised here; nothing else changes verdict. Tree restored afterwards (md5 and a full diff against a clean checkout), hardware adapter, no Wine, no game data. AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it. |
|
Linux / AMD RDNA3 datapoint. Merged state: head Full suite, Not tested: retail titles (none here), Windows, RDNA4. 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 AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting. |
8427ced to
68b5f98
Compare
|
Rebased cleanly onto current |
|
Verified rebased head |
A translated compute program's driver blob is kept on disk when its build took 250 ms or longer (driver_cache), so a later run skips the driver's compile. Graphics pipelines had no such cache: every run compiled each of them in the driver again, and a draw waits for its pipeline (bind::graphics_bound). An NVIDIA driver takes 10 - 17 s for one big translated pixel shader. translated_graphics_pso now goes through driver_cache::build: a blob kept for the pipeline is given as CachedPSO; a refused one (another driver, adapter or root signature, a damaged file) is dropped and the pipeline compiled as before; a compile of 250 ms or more keeps its blob (GetCachedBlob). The file is named after everything the driver compiles the pipeline from (graphics_name): the bytes of each shader stage, the static samplers of its root signature, blend, rasterizer, depth-stencil, input layout, formats, sample desc, node mask and flags, read field by field. A pipeline made again without its rect list GS keeps no blob, and one with stream output is not kept. XCL_PSO_DISK_CACHE=0 turns both caches off, as before. Assisted-by: Claude Code (Claude Opus 5.5)
68b5f98 to
90d7003
Compare
|
Regression run of Against the limits in CONTRIBUTING.md: 101 % of AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, AI use: Claude Code (Claude Opus 5.5) built both trees and ran |
Empirical test report (90d7003)Verified commit Hardware / environment
Commands and results
Observed behavior
Not tested The full GPU workspace suite and game smoke runs were omitted. Real D3D12 driver AI use Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against |
|
Verification on RTX 3060 Ti (Windows 11): merge conflict with current |
Keep NGG compute and passthrough mesh graphics driver blobs under independent canonical keys. Retry rejected entries under the existing cold-compile policy and validate fresh-process replay, per-pass corruption, and GPU output on synthetic inputs. Part of xcl-dev#1269. Related to xcl-dev#1836 and xcl-dev#902. Assisted-by: OpenAI Codex (GPT-6)
Keep NGG compute and passthrough mesh graphics driver blobs under independent canonical keys. Retry rejected entries under the existing cold-compile policy and validate fresh-process replay, per-pass corruption, and GPU output on synthetic inputs. Part of xcl-dev#1269. Related to xcl-dev#1836 and xcl-dev#902. Assisted-by: OpenAI Codex (GPT-6)
Translated graphics PSOs could share a driver-blob key even when one retained a native geometry shader that the other did not. Hash and size the final GS bytes, including native GS bytecode, rather than only XCL's generated rectangle shader. Scope bounded RAM entries to the effective per-device root signature. Persisted paths remain adapter-scoped and encode the static-sampler ABI, while in-process entries can no longer cross devices. Stream-output declarations are pointer-backed state not represented by the descriptor key, so leave those pipelines uncached instead of aliasing different layouts. An unreadable nonempty GS is also conservatively uncached. This follows the cache-identity findings in PR xcl-dev#902 and issue xcl-dev#2508. The Windows GNU cross-target library/test check passes; native Windows tests and smoke were unavailable. Assisted-by: Codex (GPT-5.6-sol)
Translated graphics PSOs could share a driver-blob key even when one retained a native geometry shader that the other did not. Hash and size the final GS bytes, including native GS bytecode, rather than only XCL's generated rectangle shader. Scope bounded RAM entries to the effective per-device root signature. Persisted paths remain adapter-scoped and encode the static-sampler ABI, while in-process entries can no longer cross devices. Stream-output declarations are pointer-backed state not represented by the descriptor key, so leave those pipelines uncached instead of aliasing different layouts. An unreadable nonempty GS is also conservatively uncached. This follows the cache-identity findings in PR xcl-dev#902 and issue xcl-dev#2508. The Windows GNU cross-target library/test check passes; native Windows tests and smoke were unavailable. Assisted-by: Codex (GPT-5.6-sol)
Translated graphics PSOs could share a driver-blob key even when one retained a native geometry shader that the other did not. Hash and size the final GS bytes, including native GS bytecode, rather than only XCL's generated rectangle shader. Scope bounded RAM entries to the effective per-device root signature. Persisted paths remain adapter-scoped and encode the static-sampler ABI, while in-process entries can no longer cross devices. Stream-output declarations are pointer-backed state not represented by the descriptor key, so leave those pipelines uncached instead of aliasing different layouts. An unreadable nonempty GS is also conservatively uncached. This follows the cache-identity findings in PR xcl-dev#902 and issue xcl-dev#2508. The Windows GNU cross-target library/test check passes; native Windows tests and smoke were unavailable. Assisted-by: Codex (GPT-5.6-sol)
Translated graphics PSOs could share a driver-blob key even when one retained a native geometry shader that the other did not. Hash and size the final GS bytes, including native GS bytecode, rather than only XCL's generated rectangle shader. Scope bounded RAM entries to the effective per-device root signature. Persisted paths remain adapter-scoped and encode the static-sampler ABI, while in-process entries can no longer cross devices. Stream-output declarations are pointer-backed state not represented by the descriptor key, so leave those pipelines uncached instead of aliasing different layouts. An unreadable nonempty GS is also conservatively uncached. This follows the cache-identity findings in PR xcl-dev#902 and issue xcl-dev#2508. The Windows GNU cross-target library/test check passes; native Windows tests and smoke were unavailable. Assisted-by: Codex (GPT-5.6-sol)
Translated graphics PSOs could share a driver-blob key even when one retained a native geometry shader that the other did not. Hash and size the final GS bytes, including native GS bytecode, rather than only XCL's generated rectangle shader. Scope bounded RAM entries to the effective per-device root signature. Persisted paths remain adapter-scoped and encode the static-sampler ABI, while in-process entries can no longer cross devices. Stream-output declarations are pointer-backed state not represented by the descriptor key, so leave those pipelines uncached instead of aliasing different layouts. An unreadable nonempty GS is also conservatively uncached. This follows the cache-identity findings in PR xcl-dev#902 and issue xcl-dev#2508. The Windows GNU cross-target library/test check passes; native Windows tests and smoke were unavailable. Assisted-by: Codex (GPT-5.6-sol)
Translated graphics PSOs could share a driver-blob key even when one retained a native geometry shader that the other did not. Hash and size the final GS bytes, including native GS bytecode, rather than only XCL's generated rectangle shader. Scope bounded RAM entries to the effective per-device root signature. Persisted paths remain adapter-scoped and encode the static-sampler ABI, while in-process entries can no longer cross devices. Stream-output declarations are pointer-backed state not represented by the descriptor key, so leave those pipelines uncached instead of aliasing different layouts. An unreadable nonempty GS is also conservatively uncached. This follows the cache-identity findings in PR xcl-dev#902 and issue xcl-dev#2508. The Windows GNU cross-target library/test check passes; native Windows tests and smoke were unavailable. Assisted-by: Codex (GPT-5.6-sol)
Extends XCL's on-disk driver PSO blob cache (
crates/xcl/src/hle/d3d12x/real.rs) to slow translated graphics pipelines (previously only compute pipeline blobs were persisted on disk):translated_graphics_psoloads any matching cached driver blob viaCachedPSOand persists blobs for graphics compiles taking>= 250 ms(keyed on all shader stage bytes, root signature / static samplers, fixed-function state, input layout, formats, sample desc, node mask, and flags; stream-output pipelines skipped).XCL_PSO_DISK_CACHE=0.Tested
617.42/32.0.16.1742), Windows 11 Pro 25H2 (26200.9974),rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC debug, DXC Windows SDK10.0.26100.0,d3d12SDKLayers.dllinstalled433d7eed0acb34123d480c13754d11aca224b041(HEAD8427cedf280d2cfd006897811421729a4f60f11fhas an identical tree; only commit author metadata was updated after GitHub account rename)cargo build --workspace: clean (no new warnings; only pre-existingfetch_updatedeprecation warning)cargo test --workspace -- --test-threads=4: 717 passed, 0 failed, 41 ignoredSKIPPEDGPU tests:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64Not tested
scripts/smoke.ps1) not yet run (no retail title available in this clean-room environment); opened as Draft pending a smoke run.AI use