Skip to content

Commit 83bcbdd

Browse files
layers: Skip if vertex entry point is NULL
1 parent cd99896 commit 83bcbdd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

layers/core_checks/cc_pipeline_graphics.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4251,7 +4251,10 @@ bool CoreChecks::ValidateDrawPipelineVertexBinding(const vvl::CommandBuffer &cb_
42514251
};
42524252

42534253
const spirv::EntryPoint *vertex_entry_point = last_bound.GetVertexEntryPoint();
4254-
ASSERT_AND_RETURN_SKIP(vertex_entry_point);
4254+
// Can be NULL if pipeline binaries are used
4255+
if (!vertex_entry_point) {
4256+
return skip;
4257+
}
42554258
vvl::unordered_set<uint32_t> spirv_input_locations;
42564259
for (const auto &pair : vertex_entry_point->input_interface_slots) {
42574260
spirv_input_locations.emplace(pair.first.Location());

0 commit comments

Comments
 (0)