RUNTIME 2435: Shadows: a rebind encodes an encoder with a host merge or splice again
What: an encoder that left a splice's or a merge on the host's CPU part
(Deferred::ShadowSplice) now keeps its log, and a rebind's encoding again replaces
that segment with the one it leaves itself over the new pages
(Deferred::left_again_by_an_encoding_again, in Segment::records_again and
reencode.rs's splice_fits). The first segment is retained unrun, as a replaced
pending dispatch's is. A rebind keeps the bytes' offset in their page, so the
copies back cut alike and the encoding again's parts match the first's.
This covers ShadowSplice only, not a staged scatter (Deferred::ScatterStage and
ScatterDrain, host_ram/copy.rs). An encoder that left a staged scatter still keeps
no log (Unlogged::Segments), so a rebind of its buffer fails the command buffer
with EncodedUseRebound as before. Whether a scatter's encoding again over the new
pages leaves segments of the same parts was not checked: its staging depends on
the chunks and imports the new pages lie in.
Why: after RUNTIME 2433 the rebind was no longer refused, but such an encoder kept
no log (Unlogged::Segments), so its command buffer failed EncodedUseRebound.
PHOENIX job m3-max-35745 at 343f4489d3 (RUNTIME 2433's tree) failed
tests::shadow_runs::passes_merged_on_the_host_are_encoded_again_at_a_rebind
("Error Some(EncodedUseRebound); encoders encoded again 0"), and so did lavapipe
job m3-max-35749. The other five tests that failed at RUNTIME 2432 passed there,
and so did 340 of 341 PHOENIX suite tests and 268 of 269 lavapipe ones.
Verified: cargo fmt only so far; the jobs reported with this tip run the tests.
Degradation kinds added: none.
Verified (fplend): msi m3-max-35769 at 4ac4c366b5 (same tree): clippy 0, clippy --cfg m2v_gpu 0, debug
archive 0. lavapipe 35749 at RUNTIME 2433's tree: 268/269, the one failure the rebind test this
fixes. PHOENIX shadow_runs / merge_scratch and the suites follow.
This commit is contained in:
1 parent
c70ba66b60
commit
918a5e59fb
4 files changed
+25
-9
No files matched your search
@@ -639,6 +639,7 @@ impl State {
|
||||
|| segment.gpu_alone
|
||||
|| segment.work.joins_a_run()
|
||||
|| segment.work.recorded_by_an_encoding_again()
|
||||
|| segment.work.left_again_by_an_encoding_again()
|
||||
})
|
||||
};
|
||||
let unjudged = self.unjudged_parts();
|
||||
@@ -667,9 +668,11 @@ impl State {
|
||||
/// not since they were made (which goes, the encoding again having recorded those draws, or
|
||||
/// left a segment of its own where it found them still being made), work its commit recorded
|
||||
/// on the GPU alone, a run's merge (which
|
||||
/// goes, the encoding again merging after itself, `pass_runs.rs`), or a staged gather (which
|
||||
/// goes, the encoding again copying through the imports, `host_ram/copy.rs`), or its group
|
||||
/// was submitted, or the command buffer completed.
|
||||
/// goes, the encoding again merging after itself, `pass_runs.rs`), a staged gather (which
|
||||
/// goes, the encoding again copying through the imports, `host_ram/copy.rs`), or a splice's
|
||||
/// or a merge on the host's CPU part (which goes, the encoding again leaving its own over the
|
||||
/// new pages, `shadow_splice.rs`), or its group was submitted, or the command buffer
|
||||
/// completed.
|
||||
pub(super) fn splice_replay(
|
||||
&mut self,
|
||||
at: usize,
|
||||
@@ -709,8 +712,9 @@ impl State {
|
||||
recorded.raws = raws;
|
||||
recorded.summary = summary;
|
||||
// Its first segments go: the encoding again left a segment of its own in each
|
||||
// pending dispatch's place, and its work on the GPU alone in segments of its own, and
|
||||
// recorded each staged gather's copy at once.
|
||||
// pending dispatch's and each splice's or merge on the host's place, and its work on
|
||||
// the GPU alone in segments of its own, and recorded each staged gather's copy at
|
||||
// once.
|
||||
// What the commit recorded of one stays retained, never submitted, as the first
|
||||
// recording does.
|
||||
for segment in recorded.segments.drain(..) {
|
||||
|
||||
Reference in new issue
Block a user