upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/cpp_unwind_test.cpp
diff options
context:
space:
mode:
authorMoonEyes <ducoinbenjamin@yahoo.fr>2026-12-01 11:43:23 +0100
committerGitHub <noreply@github.com>2026-12-01 11:43:23 +0100
commitb121bc0bab48726601ee2871394e35225768dde8 (patch)
tree95854c0b76021a245fefbd1b2625fb2f6ed2481d /runtime/test/cpp_unwind_test.cpp
parentc77b84e3a08499fcb00dfc89b7247e1ae142c425 (diff)
ci: build and test the d3d12 Rust runtime on Windows (CI-D3D12-CARGO-TEST) (#2648)
* d3d12: min/max samplers honour filterMinmaxImageComponentMapping (D3D-994) Without VkPhysicalDeviceSamplerFilterMinmaxProperties:: filterMinmaxImageComponentMapping, a minimum/maximum reduction defines only the R component of a sample; G, B and A are undefined. The AMD Windows driver on Polaris (RX 580) reports singleComponentFormats = 1 and imageComponentMapping = 0, and returns exactly that: R is correct, G/B/A vary. The layer now records the property in VulkanDeviceInfo and logs once when it creates a reduction sampler on a device without it. The descriptor test compares R only on such devices, and all four channels where the device maps every component. * d3d12: say when the driver's pipeline cache stops keeping new pipelines (RT-PIPELINE-CACHE-GROWTH-STALL) A driver can stop adding to a large VkPipelineCache with no error. On NVIDIA 610.88 a 1.23 GB or 1.35 GB cache came back the same size to the byte after a 2 s compile, so the next run compiles the same pipelines again and nothing says why. The runtime now takes the cache's size at creation and at each session save, counts the title's pipeline builds that took at least 200 ms, and logs once when 16 or more compiled while the cache grew less than 64 KiB. pipeline_cache_store_test covers the decision; docs/d3d12_vulkan.md records the measurements. * docs: rewrap the pipeline cache growth paragraph (RT-PIPELINE-CACHE-GROWTH-STALL) * d3d12_xs: say so when LEONIDA_D3D12=vulkan is asked of a runtime built without the Vulkan device (RT-VULKAN-REQUESTED-NOT-BUILT) A gta6rt configured without Vulkan headers is built without LEONIDA_VULKAN_DEVICE. D3D12XboxCreateDevice then ignored LEONIDA_D3D12=vulkan without a word and wrapped the host's D3D12 device, so a run stopped somewhere else and read like a boot result. It now prints one [rt] d3d12_xs line naming the cause and the configure options. Which device is created does not change. The reading of the variable moves to shims/d3d12_backend.h, used by both builds; new CPU-only test d3d12_backend, registered outside the Vulkan-headers block. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * d3d12: frame-time percentiles and what stalls frames, in the log and on the panel (D3D12-FRAME-TIME-STATS) The frame-rate line gives a mean over the last second or more, and the F3 panel only the longest frame, so a run with smooth frames and a few multi-second stalls looks like a slow one, and the stalls do not show. host/frametime.rs keeps every presented frame's time. With the frame-rate line, every five seconds, it logs one line: the median, 95th and 99th percentiles (nearest rank), the longest frame, how many took over 100 ms and over a second, and beside them host pipelines queued and made a second, waits for new memory to be resident per frame, and the commit the system has left. The panel shows the last line's numbers and the pipeline wait per frame. Pure parts are unit-tested. * d3d12: frame-time panel lines fit long stalls, the first line counts from the first present (review) - Panel: frame times of 10 s or more (the launcher's pipeline budget) made the percentile line longer than 40 columns, and the panel cut it without a sign ("MAX 10000" showed as "MAX 100"). Times from 10 s up are shown in whole seconds ("10S"); the test covers 10 s, 100 s and 10 min. - The first line's pipelines made a second and residency waits counted everything since the process started: the meter now starts from the totals at the first present. - "queued" was queued or being made: the log says so, the panel says PIPES PENDING. - The nearest-rank test covers 95% of 100 frames, where a float ceil would take the 96th. * d3d12: a pipeline a frame waits for goes before those asked for earlier (D3D12-PIPELINE-WAIT-QUEUE) A draw whose host pipeline is not made queues it at the back of the requested list, and its frame then waits for it up to the frame's budget. On the first visit to the world about 1,700 pipelines were queued at once, 562 of them took over a second each, and with the launcher's 10 s budget every frame waited the whole budget for a pipeline a thousand others stood before, then dropped its draws anyway: 0.35 fps for three and a half minutes (RTX 3080, 8 workers). A new queue state, AWAITED, sits between REQUESTED and MAKING. When a frame starts waiting for a pipeline that is still in the queue, the entry moves to the front of its list (passes over the screen in theirs), after those awaited before it, so the next free worker makes it. It moves at most once, is never claimed twice, and WAITING does not count it again; makes already running are not interrupted. LEONIDA_PIPELINE_AWAIT_FIRST=0 keeps the order asked. Frames on a cold cache still wait up to the frame's budget: the waits now succeed, so a frame may spend its budget on several pipelines it then draws instead of one it drops. The budget setting bounds that, as before. * ci: build and test the d3d12 Rust runtime on Windows (CI-D3D12-CARGO-TEST) No workflow ran the d3d12/ workspace tests. This adds one on windows-latest for changes under d3d12/: build, then cargo test as the gate (no GPU, no game data). The xtask asset-policy test and clippy -D warnings both fail on main today (two sources over the 640 KiB limit; about 25 clippy findings), so they run as reports until fixed. cargo fmt is left out: it would reformat most of the tree under the open d3d12 pull requests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * d3d12: a frame's pipeline wait counts the queue lock its promotion waits for (review) wait() started its timer after promote() took the queue's lock, so time spent waiting for that lock came on top of the frame's budget: in a synthetic contention test (queue held 240 ms, 80 ms budget) a frame waited 320 ms. The timer now starts before the promotion, so the lock delay is part of the budget (240 ms in the same test, the lock holder's time itself). Reported with the test by merzleckeier. * ci: d3d12 workflow follows TheGeogeo's review mods/** in the paths (leonida-lua's tests read mods/example_lua), a build with the features people run, the replay test of leonida-gpu (diagnostics), a cache of Cargo's downloads, a limit on the test step. d3d12/.github/workflows/ci.yml is removed: GitHub runs workflows only from the repository's root. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: skip the depth bounds test on the runner's software adapter until #2663 It is the only failure of the job, and it hides the crates after leonida-gpu and the replay test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Zilumz1 <221744236+Zilumz1@users.noreply.github.com> Co-authored-by: Galaxy <jojomalrbx@gmail.com> Co-authored-by: quartz-heron-58 <245169279+quartz-heron-58@users.noreply.github.com> Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com> Co-authored-by: OreoFR <29048345+OreoFR@users.noreply.github.com> Co-authored-by: Galaxy <23423870+thegalaxydev@users.noreply.github.com> Co-authored-by: TheGeogeo <57634077+TheGeogeo@users.noreply.github.com> Co-authored-by: MoonEyes <14891700+MoonEyes@users.noreply.github.com>
Diffstat (limited to 'runtime/test/cpp_unwind_test.cpp')
0 files changed, 0 insertions, 0 deletions