Skip to content

launcher: reuse one bounded verified DXIL snapshot - #247

Draft
Valdi320 wants to merge 1 commit into
brcly:mainfrom
Valdi320:work/bounded-dxil-snapshot-20261126
Draft

Valdi320 wants to merge 1 commit into
brcly:mainfrom
Valdi320:work/bounded-dxil-snapshot-20261126

Conversation

@Valdi320

Copy link
Copy Markdown
Contributor

Changes

Read a content-cache DXIL entry once as a bounded regular-file snapshot; verify its digest and container before writing it to the private staging file, and return those same bytes to the caller for stage validation. Save the already validated bytes instead of rereading the output. Incrementally hash the HLSL key without allocating a concatenated copy. Share bounded file helpers with the runtime cache; identity and checksum reads are bounded and non-following. Keep existing cache keys and publication semantics.

Validation

  • Tests cover returned snapshot, oversized cache entry, linked payload or stamp, FIFO payload or identity, invalid entries and existing runtime shader validation.
  • All six no-GPU check groups and all eight Lanes GPU checks passed on RTX 4080 / GE-Proton11-14 using same-base runtime and fixture with source equality checked.
  • Synthetic structurally valid 8 MiB cached container (not executable DXIL), 25 warm reads per version: median 16.06 -> 9.65 ms, identical contents and SHA-256. Real Lanes covers normal compiled DXIL reuse. No retail performance claim.
  • Independent of launcher: deduplicate concurrent DXIL compilation by HLSL content #239 and launcher: profile host shader compilation stages and cache reuse #238; callers of fetch/save must be reconciled if merged together. Full GPU and AMD validation outstanding. No retail assets.

@Valdi320

Copy link
Copy Markdown
Contributor Author

Integration follow-up, not a new merge request: https://github.com/Valdi320/TuxBox/tree/a54533a2bb5c83e23fbcad994caafea21607a975

Combined the existing four paired Wave64 optimizations with #228, #236, #238, #239, #240, #247 and #248. Resolved overlap in the launcher: content-lock wait time separately reported; large cold requests reserve capacity before waiting for a shared content lock; deferrals are not reported as failures; bounded snapshot bytes reused directly. Fast lane remains opt-in. The new interaction test passes.

Real DXC/DXV, synthetic mixed request queue (three equivalent large shaders and a small shader, two workers, three runs per mode): baseline 3 DXC calls, small and batch median 932 ms; combined without fast lane 2 calls, 845 ms; combined with fast lane 2 calls, small 33 ms and batch 754 ms. All output hashes identical across nine runs. Two deferrals correctly reported per fast-lane run. Synthetic translator stub supplies generated HLSL fixtures; no title performance claim.

Six code-check groups passed at final head. Earlier integration stage passed 31 guest controls, including presentation/4K; final D3D12 rebuild produced the same provider SHA-256, and 8 Lanes gates plus 4 XG-provider checks were rerun at final head. Private Xvfb automatically starts/restores environment, NVIDIA RTX 4080, GE-Proton11-14. XG provider reused from #248 after verifying its source equality. Native reference XG DLL unavailable; full GPU suite, AMD and retail validation outstanding. Branch is for interaction validation; individual PRs remain separately reviewable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant