translator: under the identity domains a pulled fetch's own source buffer is its device address
A source buffer that no accessed slot shares was a read-only storage view of its own, a descriptor, on every profile but a replay variant's. Under the identity domains every slot is its device address and no descriptor is held, so a post-tessellation function's evaluation stage, which pulls its control points and patches, was refused as IdentityDomains even with its pushed strides admitted. Under identity such a source is now its device address (SlotGuestBase, its bind offset removed), as a replay variant's is through its root entry.
This commit is contained in:
1 parent
d43ad3486a
commit
3cc329414f
2 files changed
+8
-6
No files matched your search
@@ -1405,13 +1405,14 @@ fn place_slots(cx: &mut SelectCx<'_>, m: &mut Meter) -> Result<Vec<Option<SlotCh
|
||||
}
|
||||
// Source buffers no accessed slot shares: read-only `Whole` storage slots of their own, whose
|
||||
// range is never provably within `maxStorageBufferRange`; a replay variant's are read through
|
||||
// their root entries, as its other slots are.
|
||||
// their root entries, as its other slots are, and under the identity domains each is its device
|
||||
// address, as every slot is there.
|
||||
let mut own: Vec<(SlotRef, SlotLowering)> = Vec::new();
|
||||
for &s in &sources {
|
||||
if shared_slot(s).is_some() {
|
||||
continue;
|
||||
}
|
||||
if replay {
|
||||
if replay || identity(p) {
|
||||
own.push((s, psb_lowering(Window::Whole)?));
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -64,10 +64,11 @@
|
||||
//! would fetch at the stream position, where the function reads the vertex its index names. The
|
||||
//! layouts they pull are not a pulled-vertex-buffer variant's (`variant_pulled` keeps item 7's).
|
||||
//!
|
||||
//! Under the identity domains (`Device::from_queries`' profile) items 2 to 6 pull nothing: the
|
||||
//! pulled fetch reads through a descriptor, which those domains hold none of. Item 2's cases are
|
||||
//! `metal::vertex::attribute_fetch`'s refusals, and an attribute items 3 to 6 would pull is refused
|
||||
//! as `Feature::VertexInputLayout`, with the limit it passes where it passes one.
|
||||
//! Under the identity domains (`Device::from_queries`' profile) items 2 to 6 pull nothing: item 2's
|
||||
//! cases are `metal::vertex::attribute_fetch`'s refusals, and an attribute items 3 to 6 would pull
|
||||
//! is refused as `Feature::VertexInputLayout`, with the limit it passes where it passes one. What
|
||||
//! items 7 and 8 pull is read through the source buffer's device address, as every slot is read
|
||||
//! there, at the layout's pushed stride (`PushField::VertexBufferStride`).
|
||||
//!
|
||||
//! A fixed-function entry keeps nothing of the format (`VertexFetch::FixedFunction`): no
|
||||
//! instruction of the module names it, so every format the device fetches in fixed function
|
||||
|
||||
Reference in new issue
Block a user