RUNTIME_VERSION 2081: the command-buffer spares keep their bound of 4096 under load
The commit before this one. The spares held 4097 command buffers against HELD = 4096 in a loaded
lavapipe runtime suite. CommandPool::past(keep) kept one secondary even where keep was 0, so a
pool given back while another pool trimmed to the bound was out with its frees waiting on a slow
free thread kept one past the bound. Spares::begin_ahead made a new primary in a pool holding none
with no bound check. Both now keep the bound: past() honours keep exactly, and a pool whose begin
ahead would make its primary goes out only where the spares and what is out stay within HELD. On
ANV below Xe-HP each spare command buffer holds a 64 KiB block of the binding-table pool, so the
bound is the product's.
Verified (potluck jobs, lavapipe, on the branch at 63a732359c): the forced interleaving test
a_pool_given_back_while_the_bound_is_out_freeing_keeps_none_past_it holds exactly 4096 before and
after a begin ahead; all 19 spares tests pass (m3-max-18938); full runtime suite 2228/2229 with all
spares tests passing (18945; the one failure was the exit_guard scan, fixed in 2e71b1818a).
Negative controls: the product as at the base fails the new test at 4097, 4098 after the begin
ahead (18990); with the first fix alone, 4097 after the begin ahead (18948). Lint (fmt, clippy
plain, m2v_gpu, m2v_cpu_icd, rustdoc): 18942.
Not run: GPU devices (ANV, RADV, NVIDIA, M3); release-mode timing (off the hot path).
This commit is contained in:
1 parent
9958615931
commit
cdbfec92d9
1 file changed
+1
-1
Vendored
+1
-1
@@ -93,7 +93,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 502;
|
||||
/// changes no behaviour, and then updates that hash alone with the commit saying why, or changes
|
||||
/// behaviour and also bumps this version. The commit that bumps it says what changed; this comment
|
||||
/// keeps no history.
|
||||
pub const RUNTIME_VERSION: u32 = 2080;
|
||||
pub const RUNTIME_VERSION: u32 = 2081;
|
||||
|
||||
/// The digest of the sources this build of the crate was compiled from: SHA-256, as lowercase hex,
|
||||
/// of the manifest, the build script, and exactly the files the crate roots' module tree compiles
|
||||
|
||||
Reference in new issue
Block a user