diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 14:48:39 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-27 14:48:39 -0500 |
| commit | 2243cd05704126127f885aa44182aa0158bfad65 (patch) | |
| tree | 4536738de16824c3fc142067dba1bfd0e3abc5f7 /runtime/test/code_hooks_test.cpp | |
| parent | cef91163bd8ba0fec6ae1699b85a1841409d5fa4 (diff) | |
NVIDIA: pipelines with static samplers come from the pipeline library again, by the places of their samplers
What was wrong: the NVIDIA driver keeps a device's static samplers in one table and a compiled
pipeline holds their places in it, given in the order root signatures first bring each sampler.
A pipeline from an ID3D12PipelineLibrary is taken with the places of the run that stored it, so
in a run that made static samplers in another order it samples through other ones. Since
f0606a744 such pipelines skipped the library and were made by the driver at every start: some
1,650 of them, five minutes of all workers, because the driver's own cache keeps a pipeline by
those places too and the order differed from run to run (eight workers make them).
What changes (pipeline/places.rs, on NVIDIA only):
- The static samplers seen are listed in static-samplers.txt beside the library, in the order
first seen. When the host device is made, before anything else, each is made in that order
and kept, between samplers of ours: a listed sampler's place follows from the list up to it.
- A pipeline whose static samplers were all listed at the start is in the library under a name
that also holds the list up to its last sampler. One with a sampler first met in this run is
made by the driver, as before; the sampler is listed for the next run, and made at the place
it will have then so that the driver's cache has its pipelines.
- Before the first such pipeline is looked up, every place is looked at on the card: a small
pipeline stored by an earlier run for each listed sampler must sample bit for bit as the same
pipeline made now. If one does not, pipelines with static samplers are the driver's for that
run (the skip of before), and the log says so.
LEONIDA_LIBRARY_STATIC_SAMPLERS=0: none of it, as before. =1: plain names, as before.
Tests (RTX 4060 Ti, driver 616.64; the ignored ones run this test program as processes of their
own with one cache folder, hand-written programs only):
cargo test -p leonida-gpu --features diagnostics --lib pipeline::places -- --ignored --nocapture --test-threads=1
(the fault with its exact places; the driver's table; the driver's cache; three runs to loaded
and right, a grown list, samplers made before the list found, =0 and =1),
cargo test -p leonida-gpu --features diagnostics --lib pipeline:: and
cargo check --profile diag -p leonida --features diagnostics. Not run in the game yet; the
debug layer is not installed here. AI-assisted.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/code_hooks_test.cpp')
0 files changed, 0 insertions, 0 deletions