From 63df733ca24c5633a1ad02dc85d120458bd72383 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Tue, 8 Mar 2016 16:31:06 -0700 Subject: layers: GH83 Fix updates of copies descriptor sets in draw_state When a copied descriptor update is valid, need to update pUpdateStructs for the destination set. There are still some issues with how copied descriptors are handled in draw_state (noted in TODO on line 3049) but this fix addresses specific issue in GH83. --- layers/draw_state.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'layers/draw_state.cpp') diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index 43ad37f6..b0d278f6 100644 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp @@ -3049,6 +3049,7 @@ static VkBool32 dsUpdate(layer_data* my_data, VkDevice device, uint32_t descript // TODO : This may be a hole. I believe copy should be its own copy, // otherwise a subsequent write update to src will incorrectly affect the copy pDstSet->ppDescriptors[j+dstStartIndex] = pSrcSet->ppDescriptors[j+srcStartIndex]; + pDstSet->pUpdateStructs = pSrcSet->pUpdateStructs; } } } -- cgit v1.2.3