Repository navigation
Conversation
…criptor heap staging
Owner
Author
|
Upstream PR xcl-dev#1006 was closed or merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request implements persistent on-disk pipeline state library caching (
ID3D12PipelineLibrary1) and coalesced descriptor heap staging in D3D12.X:Persistent on-disk pipeline library caching:
In
crates/xcl/src/hle/d3d12x/pipeline_library.rs, we introduce anID3D12PipelineLibrary1caching layer to persist driver-compiled hardware PSOs under%LOCALAPPDATA%\xcl\pso\host-pipelines.bin.In
translated_graphics_psoandtranslated_compute_pso(crates/xcl/src/hle/d3d12x/real.rs), compiled pipelines are looked up by a 128-bit hash across root signatures, shader bytecodes, and rasterizer/blend state. On warm runs,LoadGraphicsPipelineandLoadComputePipelinereturn the precompiled driver pipeline immediately, eliminating the 50 ms to 300 ms DXIL-to-ISA driver JIT compilation stalls that cause heavy frame hitches on Intel Arc and other D3D12 hardware. Stored pipelines are serialized atomically upon window closure, process termination, and throttled presentation ticks. Empty pipeline library creation explicitly forwards a null pointer to ensure clean fallback under vkd3d-proton / Wine.Coalesced descriptor heap staging:
In
crates/xcl/src/hle/d3d12x/console_heap.rs,copy_rangebatches multi-slot descriptor copies by calculating destination addresses and indices directly, writing contiguous 64-byte chunks to GPU-mapped memory. Incopy_console_slots, this eliminates repetitiveHEAPSmutex locks and fine-grained PCIe write-combining buffer flushes across Resizable BAR.Tested
cargo test -p xcl pipeline_library(4/4 passed), verifying deterministic name hashing, atomic serialization, and graceful empty library fallback on corrupted blobs across native Windows and Wine.cargo test -p xcl console_heap(3/3 passed), verifying multi-slot descriptor range copying and renumbering.cargo test -p xcl --test gpu_pso_e2e(7/7 passed) andcargo test -p xcl --test gpu_compute_e2e(2/2 passed).Regression run
main(beaa245):PR (
dfcd403):Not tested
AI use
Mirror of xcl-dev#1006 (auto-synced, do not edit).