diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2017-03-17 11:15:24 -0600 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2017-03-17 11:51:07 -0600 |
| commit | d43c7b764b6bf41672df5c759b2d42103bd51c59 (patch) | |
| tree | 95680e8d8472e147995b1d46ef94f467eabfe1ed /layers/core_validation.cpp | |
| parent | 08995c6ec0c991bef4cb7082a58869827a53a98a (diff) | |
| download | usermoji-d43c7b764b6bf41672df5c759b2d42103bd51c59.tar.xz | |
layers: Fix QueueBindSparse fence validation
If bindInfoCount was 0 fence was not properly retired.
Change-Id: I2b6af38b0181d328eaf1bab2c2109f3492905aa0
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 89b9a880..cf986e2e 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -10297,7 +10297,7 @@ VKAPI_ATTR VkResult VKAPI_CALL QueueBindSparse(VkQueue queue, uint32_t bindInfoC skip_call |= ValidateFenceForSubmit(dev_data, pFence); if (pFence) { - SubmitFence(pQueue, pFence, bindInfoCount); + SubmitFence(pQueue, pFence, std::max(1u, bindInfoCount)); } for (uint32_t bindIdx = 0; bindIdx < bindInfoCount; ++bindIdx) { |
