diff options
| author | Tobin Ehlis <tobin@lunarg.com> | 2015-10-19 14:31:10 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobin@lunarg.com> | 2015-10-22 11:12:27 -0600 |
| commit | 39326fc6cbaf0409b30739a40fd8bcf6d0bf4ad5 (patch) | |
| tree | 5b392e9432952563e00703f7f9218253e200e5fb | |
| parent | 15c23d01fc2bf8affff0b616418f757364fc8f5b (diff) | |
| download | usermoji-39326fc6cbaf0409b30739a40fd8bcf6d0bf4ad5.tar.xz | |
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".
| -rwxr-xr-x | layers/draw_state.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index 1673931c..6e708d0c 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); } } } |
