Repository navigation
Conversation
The direct compute path bypasses DXC and its cached-only check. Defer after a translated-cache miss so async creation can return a stand-in. Translate or fall back when the PSO build runs. On an RTX 5060 Ti with a warm driver cache, synthetic p95 CreateComputePipelineState fell from 2.02–2.12 ms to 0.40–0.41 ms. Immediate first bind rose from 9–13 us to 1.81–2.08 ms. Assisted-by: Codex (GPT-6.2 Sol)
|
If anyone with a suitable retail title is available to help with the required paired smoke runs, I would really appreciate it.
Please share both Thanks for your help! AI use: ChatGPT assisted with drafting this comment. |
|
Requested retail smoke pair — RTX 5070 Ti / Proton With Tested
Regression run The Wine smoke script generated both blocks. I abbreviated the local folder name in
PR head Wine reported 0 MB in the Windows peak-commit field. The Linux cgroup peaks were 14.72 and 15.70 GiB, respectively, with no OOM kill. This is one title run per revision with default lazy PSOs. The focused integration test exercises the non-lazy cache-only path directly. AI use — OpenAI Codex (GPT-6, exact variant unavailable) built and ran the checks, verified the logs, and drafted this report. Follow-up with I repeated the 150 s retail runs at the same commits and with the same settings, adding
Both base attempts logged the same stack through The PR logged 117 direct compute translations and zero HLSL fallbacks. For each base attempt, all 100 compute translation cache keys shared with the PR had byte-identical DXIL. The early exits leave the 150 s frame-count difference unresolved with lazy PSOs disabled. The Wine smoke script generated this block for the PR. I abbreviated the local folder name in AI use — OpenAI Codex (GPT-6, exact variant unavailable) ran the follow-up and checked the logs and cache entries. |
|
Thanks, @vitor127wt, for running the paired retail smoke and focused GPU regression tests. If you have time, could you repeat both retail runs with Maintainers, could you confirm whether the Linux/Proton AI use: GPT-6 helped me put my thoughts into words and translate this comment into English. |
|
Thanks, @vitor127wt, for rerunning both revisions and retrying If the logs are still available, could you share the last few PSO trace lines before each baseline exit and any timestamped memory samples around that point for both revisions? Shader hashes, timing, and counters would be enough. @Flyander, if you have time, would you be willing to run a native Windows AI use: GPT-6 helped analyze the evidence and draft this comment. |
|
I'll be offline for a while. Maintainers, feel free to review, test, or make any necessary adjustments to this PR while I'm away. I'm happy with either integration order for #1788 and #1809, provided the end-to-end GPU regression coverage is preserved. The remaining testing limitations are documented in the PR description. Thanks for your time and help! AI use: ChatGPT assisted with drafting this comment. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
The cached-only direct compute issue addressed by this PR has been resolved upstream in #1836. I'm closing this PR to avoid duplicating changes. The end-to-end GPU regression test remains available in this branch for anyone interested in extending the existing test coverage. Thanks to everyone who took the time to test, review, and provide feedback. I appreciate your help! |
Part of #1269. On a translated-cache miss, direct DXIL compute translation now defers during the cached-only probe. This lets async
CreateComputePipelineStatereturn a stand-in while keeping RAM and disk cache hits inline. Basemaincommit:4178e888c0b5be50a2887eda45cdb832763b68a4.What is in it
pso.rscallsdxc::defer()after the translation cache lookup and before direct compute translation.gpu_compute_e2e.rsexercises probe, cache, bind, and HLSL fallback behavior with synthetic shaders and GPU readback.README.mddocuments async direct compute support.Tested
x86_64-pc-windows-gnu).cargo test --workspace -- --test-threads=4viascripts/test.ps1on03d321d: 892 passed, 0 failed, 42 ignored. GPU skips reported by the harness: two native wave64, one heap windows.XCL_SAMPLE_*unset.cargo test --release -p xcl --test gpu_compute_e2e direct_compute_pso_cached_only -- --exact --nocapture: 1 passed with no skips. The cold probe and cold creation assertions both failed onmainwith the same test.CreateComputePipelineStatereturn fell from 2.02–2.12 ms to 0.40–0.41 ms. Time to the real PSO rose from 2.02–2.12 ms to 2.51–2.60 ms. Immediate firstSetPipelineStaterose from 9–13 µs to 1.81–2.08 ms.Regression run
@vitor127wt ran the independent retail smoke pair on Linux under Proton using
scripts/linux/smoke.shfrom #257. Both runs used the same title, 150 seconds,XCL_DIRECT_DXIL=1,XCL_HEAP_WINDOWS=1, and default lazy PSOs.The main run showed 2,126 frames and the PR run showed 1,822 frames (−14.3%). Linux cgroup peak memory rose from 14.72 GiB to 15.70 GiB. Both runs exited normally with zero crashes, device removals, or OOM kills. All 24 matching compute cache keys had byte-identical DXIL, with zero HLSL fallbacks.
The blocks below preserve the report's measurements and use the anonymized title identifier
9cc6a39e. Wine reportedpeak commit: 0 MBfor both runs. The Linux cgroup peaks are a separate measurement. This is one pair under Proton with default lazy PSOs, so the cause of the lower frame count is undetermined. Maintainer confirmation is pending on whether the Proton smoke pair satisfies the Windowsscripts/smoke.ps1requirement.main:
PR:
Follow-up with
XCL_LAZY_PSO=0In the updated independent report, @vitor127wt reran the same title and settings under Proton with
XCL_LAZY_PSO=0on both revisions. Each attempt used a fresh prefix and empty cache. The memory scope was capped at 16 GiB with no swap.main(4178e88)0x3at 100.915 smainretry (4178e88)0x3at 101.073 s03d321d)0x0after 150 sBoth baseline attempts logged the same stack through
d3d12core.dll+0x87333andwinevulkan.dll+0x11050. The early exits prevented the smoke script from producing end-of-run summaries or blocks formain. The PR's last active present interval ended at 124.035 s. The PR reached the cgroup cap and completed with zero OOM kills, crashes, or device removals.The PR logged 117 direct compute translations and zero HLSL fallbacks. For each baseline attempt, all 100 shared compute cache keys had byte-identical DXIL. The different run lengths and frame-count sources prevent a like-for-like 150 s frame or FPS comparison. The cgroup peaks cover different amounts of runtime work. The cause of the baseline exits and of the higher PR memory peak remains open. The standalone follow-up block is in the linked report. The paired blocks above are from the original default-lazy run.
Not tested
scripts/smoke.ps1on native Windows. The Proton follow-up did not yield a completed 150 s baseline withXCL_LAZY_PSO=0.AI use