commit
1ae8f260d8
4 files changed
+1198
-102
No files matched your search
@@ -117,7 +117,9 @@ const WINDOW_MOST: u64 = 64;
|
||||
/// apart after it (16, then twice as many each time, [`WINDOW_MOST`] at
|
||||
/// most, never past the buffer) into
|
||||
/// the list's scratch buffer in one pass, and the draws that follow read
|
||||
/// their record there with no pass of ours, until one of these: a compute
|
||||
/// their record there with no pass of ours and no barrier (the scratch
|
||||
/// buffer stays readable as arguments until the next clamp), until one of
|
||||
/// these: a compute
|
||||
/// dispatch, a direct draw, an indirect call with a count buffer or more
|
||||
/// than one record, a draw whose shaders can store to buffers, a record
|
||||
/// outside the window, another host list.
|
||||
@@ -2512,7 +2514,6 @@ impl State {
|
||||
_ => false,
|
||||
};
|
||||
if !ran {
|
||||
crate::indirect::done(list, &bounded);
|
||||
why("prepare failed");
|
||||
return false;
|
||||
}
|
||||
@@ -2538,7 +2539,9 @@ impl State {
|
||||
if kind == MESH {
|
||||
self.mesh_scissor(list, false);
|
||||
}
|
||||
crate::indirect::done(list, &bounded);
|
||||
// The scratch buffer stays readable as arguments: the next draw of
|
||||
// the window reads it with no barrier, and the next clamp moves it
|
||||
// back (`crate::indirect`).
|
||||
if kind == DISPATCH {
|
||||
DISPATCHED.fetch_add(1, Ordering::Relaxed);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user