Writes through views picked from the heap come back (VICTORY_PICKED_WRITES)
Off by default. A shader that stores through a view it picks by an index (37 compute programs of the title, 82a2ad6d07417d36 one of them) writes buffers nobody declared. With a submission that has one, the buffers found written that way are declared and landed as any; of the other buffers the heap shows unordered views of 32 MB a frame are compared on the card, in turn, and one that changed undeclared is found. Found late is not landed late. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
c11b92e9ac
commit
424013a59c
8 files changed
+523
-11
No files matched your search
@@ -1044,6 +1044,9 @@ impl State {
|
||||
for stage in &p.stages {
|
||||
let t = stage.translated();
|
||||
STORES.set(t.stores);
|
||||
if t.stores && crate::picked::on() && crate::picked::picks(&stage.shader, &t.picks) {
|
||||
crate::picked::runs_in(list);
|
||||
}
|
||||
let made = self.tables(list, &t.used, &t.host.root_indexed_views, compute);
|
||||
STORES.set(true);
|
||||
if made.iter().any(|m| m.1 == u32::MAX) {
|
||||
@@ -1469,6 +1472,7 @@ impl State {
|
||||
// it is named below.
|
||||
static GONE: std::sync::atomic::AtomicBool = std::sync::atomic::AtomicBool::new(false);
|
||||
let mut alive = !GONE.load(Ordering::Relaxed) && crate::descriptor::host::device_removed().is_none();
|
||||
let mut unordered = Vec::new();
|
||||
for (n, &index) in slots.iter().enumerate() {
|
||||
ranges.remove(&index);
|
||||
let Some(handle) = heap.handle(index) else {
|
||||
@@ -1501,8 +1505,14 @@ impl State {
|
||||
if host.shows(index, &shadow.buffer) == Some(false) {
|
||||
HEAP_VIEWS_ELSEWHERE.fetch_add(1, Ordering::Relaxed);
|
||||
}
|
||||
if crate::picked::on() && view_kind(&view) == Some(ResourceType::Uav) {
|
||||
unordered.push((shadow.clone(), address, address + len));
|
||||
}
|
||||
ranges.insert(index, (shadow, address, address + len));
|
||||
}
|
||||
if crate::picked::on() {
|
||||
crate::picked::shown(unordered, *passes % 16 == 1);
|
||||
}
|
||||
let views = ranges.len() as u32;
|
||||
// Per host copy, the span its picked views cover.
|
||||
let mut spans: std::collections::HashMap<usize, (std::sync::Arc<crate::shadow::Shadow>, u64, u64)> =
|
||||
|
||||
Reference in new issue
Block a user