From 39326fc6cbaf0409b30739a40fd8bcf6d0bf4ad5 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Mon, 19 Oct 2015 14:31:10 -0600 Subject: [PATCH] layers: Fix indices in DrawState error message If imageView aspect for DescriptorSet Update has both Depth and Stencil set, top-level "WriteDescriptorSet" is governed by "i" and specific descriptor within that particular WriteDescriptorSet is governed by "j". --- layers/draw_state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index 1673931..6e708d0 100755 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp @@ -886,7 +886,7 @@ static VkBool32 validateDescriptorSetImageView(VkDevice device, uint32_t writeDs (flags & VK_IMAGE_ASPECT_STENCIL_BIT)) { skipCall |= log_msg(mdd(device), VK_DBG_REPORT_ERROR_BIT, VK_OBJECT_TYPE_IMAGE_VIEW, dInfo->imageView.handle, 0, DRAWSTATE_INVALID_IMAGE_ASPECT, "DS", "vkUpdateDescriptorSets: DesriptorSet[%d] in WriteDesriptorSet[%d] " - "has ImageView with both STENCIL and DEPTH aspects set", i, j); + "has ImageView with both STENCIL and DEPTH aspects set", j, i); } } } -- 2.7.4