From 8afa3d77d559e2fc745fdf2220254b20169f6941 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Wed, 28 Dec 2016 14:24:47 -0700 Subject: layers:Mark latest buffers and images as written Fixes #1311 In the Draw-time refactor the marking of store images and buffers as written was incorrectly moved before the list of images and buffers was updated for the current active bindings. This fix restores correct order of operations so that the buffers and images of interest are first added to cmd buffer active list, then they're appropriately updated as written. --- layers/core_validation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 6421b09b..16f036e5 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -8022,8 +8022,8 @@ static void UpdateStateCmdDrawDispatchType( vector, std::vector const *>> *active_set_bindings_pairs, std::unordered_set *active_bindings) { - MarkStoreImagesAndBuffersAsWritten(dev_data, cb_state); UpdateDrawState(dev_data, cb_state, bind_point, active_set_bindings_pairs, active_bindings); + MarkStoreImagesAndBuffersAsWritten(dev_data, cb_state); UpdateCmdBufferLastCmd(dev_data, cb_state, cmd_type); } -- cgit v1.2.3