layers: Fix indices in DrawState error message
authorTobin Ehlis <tobin@lunarg.com>
Mon, 19 Oct 2015 20:31:10 +0000 (14:31 -0600)
committerTobin Ehlis <tobin@lunarg.com>
Thu, 22 Oct 2015 17:12:27 +0000 (11:12 -0600)
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

index 1673931..6e708d0 100755 (executable)
@@ -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);
                 }
             }
         }