diff options
| author | Chris Forbes <chrisforbes@google.com> | 2017-04-24 09:45:34 -0700 |
|---|---|---|
| committer | Chris Forbes <chrisf@ijw.co.nz> | 2017-04-25 05:28:03 +1200 |
| commit | 96d6632a8ad97bdc611b9d543074510e77274de1 (patch) | |
| tree | d614f838c8ceb563e57952d274bbfa0971f6c3f5 /layers/core_validation.cpp | |
| parent | af6695993ca861c1e3d59ea7898f6ca0eeb02463 (diff) | |
| download | usermoji-96d6632a8ad97bdc611b9d543074510e77274de1.tar.xz | |
layers: Force all device extensions disabled initially
Should really fix device initialization so we don't need to do this
explicitly.
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index fc048315..09ecd869 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -3834,6 +3834,10 @@ static void checkDeviceRegisterExtensions(const VkDeviceCreateInfo *pCreateInfo, {VK_EXT_SHADER_SUBGROUP_VOTE_EXTENSION_NAME, &devExts::khr_subgroup_vote_enabled}, }; + for (auto ext : known_extensions) { + exts->*(ext.second) = false; + } + for (uint32_t i = 0; i < pCreateInfo->enabledExtensionCount; i++) { for (auto ext : known_extensions) { if (!strcmp(ext.first, pCreateInfo->ppEnabledExtensionNames[i])) { |
