Merge local/waits

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-24 21:41:29 -06:00
commit da89c8a5a9
6 files changed
+1084 -48

No files matched your search

+7 -2
View File
@@ -1179,6 +1179,8 @@ impl State {
let len = s.left(a).min(limit);
s.refresh(list, a, len);
if writes {
#[cfg(feature = "diagnostics")]
crate::host::wide_write(a, len, self.pipeline);
s.gpu_writes(list, a, len);
}
};
@@ -2565,7 +2567,8 @@ impl State {
host.make_null(index);
continue;
};
list.defer_fill(to, address as *const u8, size as usize);
let slot = (std::ptr::from_ref(heap) as usize, index);
list.defer_constants(to, address as *const u8, size as usize, slot);
host.constant_at(index, gpu, size);
}
Some(view) => {
@@ -2747,7 +2750,7 @@ impl State {
};
let (from, to, stride) = (from as usize, to as usize, stride as usize);
let n = rects as usize;
list.defer_host(move || {
list.defer_host_read(from, n * 3 * stride, move || {
// The vertices are read in place, at submission: no change
// of mapping under the read (see
// `crate::watch::title_memory_reading`).
@@ -3115,6 +3118,8 @@ fn readable(list: &HostList, kind: ResourceType, view: &View) {
// A shader that cannot store to buffers leaves the range as
// the title has it: nothing to find afterwards.
if STORES.get() || !write_skip() {
#[cfg(feature = "diagnostics")]
crate::host::wide_write(address, len, 0);
shadow.gpu_writes(list, address, len);
} else {
#[cfg(feature = "diagnostics")]