Skip to content

Commit

Permalink
change internal acquire sync handling
Browse files Browse the repository at this point in the history
  • Loading branch information
martty committed Dec 3, 2024
1 parent 65e3fd7 commit 795b1dc
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/runtime/vk/Backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1628,26 +1628,15 @@ namespace vuk {
print_results(node);
fmt::print(" = acquire<");
#endif
bool internal = false;
for (auto& [k, vec] : impl->deferred_splices) {
for (auto& v : vec) {
if (v.node == node) {
internal = true;
break;
}
}
}

for (size_t i = 0; i < node->splice.values.size(); i++) {
auto& link = node->links[i];
// TODO: array exception
if (!link.undef && link.reads.size() == 0 && !link.next && node->type[0]->kind != Type::ARRAY_TY) { // it is never used
continue;
}
StreamResourceUse src_use = { acqrel->last_use[i], src_stream };
if (!internal) {
recorder.init_sync(node->type[i].get(), src_use, node->splice.values[i]);
}
recorder.init_sync(node->type[i].get(), src_use, node->splice.values[i], false);

if (node->type[i]->hash_value == current_module->types.builtin_buffer) {
#ifdef VUK_DUMP_EXEC
fmt::print("buffer");
Expand Down

0 comments on commit 795b1dc

Please sign in to comment.