diff options
| author | Ian Elliott <ianelliott@google.com> | 2016-08-24 11:30:45 -0600 |
|---|---|---|
| committer | Ian Elliott <ianelliott@google.com> | 2016-08-24 16:21:56 -0600 |
| commit | 3b4a27c43cc7a85043280c46403fdc3c5d33c9a2 (patch) | |
| tree | 0d92ec30f4e2a0416e96dd271720a694920d02d6 /layers/core_validation.cpp | |
| parent | 9b878ff5068e19668080ea711d66cf90dc7e3e16 (diff) | |
| download | usermoji-3b4a27c43cc7a85043280c46403fdc3c5d33c9a2.tar.xz | |
layers: GH849: Defend against poorly-written applications
A test application was written that didn't properly call some count-based query
commands. In this particular case, they always hard-coded the count variable
to 1 the 2nd time the query was called. The swapchain layer was only recording
the 1st count value in this case, and this caused a seg fault when the
vkCreateSwapchainKHR command validation code was run.
This commit better defends against such poorly-written applications, so that
the vkCreateSwapchainKHR command validation code won't seg fault. This
includes looking for VK_INCOMPLETE as a successful return code from the ICD.
Diffstat (limited to 'layers/core_validation.cpp')
0 files changed, 0 insertions, 0 deletions
