From 1b1d4a05ccf2b0820953343b47d1d7f7c5f6a465 Mon Sep 17 00:00:00 2001 From: johannes hanika Date: Sun, 15 Jan 2023 11:20:31 +0100 Subject: [PATCH] graph: reset module/node bindings on topology change --- src/pipe/graph.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pipe/graph.c b/src/pipe/graph.c index 316437a63..8b2ed5767 100644 --- a/src/pipe/graph.c +++ b/src/pipe/graph.c @@ -1995,8 +1995,8 @@ VkResult dt_graph_run( if(run & s_graph_run_alloc) { - vkDestroyDescriptorSetLayout(qvk.device, graph->uniform_dset_layout, 0); - graph->uniform_dset_layout = 0; + vkDestroyDescriptorSetLayout(qvk.device, graph->uniform_dset_layout, 0); + graph->uniform_dset_layout = 0; if(!graph->uniform_dset_layout) { // init layout of uniform descriptor set: VkDescriptorSetLayoutBinding bindings[] = {{ @@ -2070,6 +2070,10 @@ VkResult dt_graph_run( if(graph->conn_image_pool[i].image_view) vkDestroyImageView(qvk.device, graph->conn_image_pool[i].image_view, VK_NULL_HANDLE); } graph->conn_image_end = 0; + for(int i=0;imodule[modid[i]].num_connectors;j++) + graph->module[modid[i]].connector[j].associated_i = + graph->module[modid[i]].connector[j].associated_c = -1; for(int i=0;inum_nodes;i++) { for(int j=0;jnode[i].num_connectors;j++)