mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 23:26:24 +00:00
Don't check for vertex buffers in dispatch aspects
Recently started causing a crash because we stopped creating an empty InputState for compute pipelines
This commit is contained in:
committed by
Corentin Wallez
parent
181e22b482
commit
4efaf32d1b
@@ -436,8 +436,7 @@ namespace backend {
|
||||
|
||||
constexpr ValidationAspects requiredDispatchAspects =
|
||||
1 << VALIDATION_ASPECT_COMPUTE_PIPELINE |
|
||||
1 << VALIDATION_ASPECT_BINDGROUPS |
|
||||
1 << VALIDATION_ASPECT_VERTEX_BUFFERS;
|
||||
1 << VALIDATION_ASPECT_BINDGROUPS;
|
||||
|
||||
if ((requiredDispatchAspects & ~aspects).any()) {
|
||||
// Compute the lazily computed aspects
|
||||
@@ -445,11 +444,6 @@ namespace backend {
|
||||
aspects.set(VALIDATION_ASPECT_BINDGROUPS);
|
||||
}
|
||||
|
||||
auto requiredInputs = lastPipeline->GetInputState()->GetInputsSetMask();
|
||||
if ((inputsSet & ~requiredInputs).none()) {
|
||||
aspects.set(VALIDATION_ASPECT_VERTEX_BUFFERS);
|
||||
}
|
||||
|
||||
// Check again if anything is missing
|
||||
if ((requiredDispatchAspects & ~aspects).any()) {
|
||||
HandleError("Some dispatch state is missing");
|
||||
|
||||
Reference in New Issue
Block a user