Skip to content

Commit

Permalink
Use IGL_VERIFY to enable the buffer device address extension
Browse files Browse the repository at this point in the history
Summary: Using `IGL_VERIFY` instead of `IGL_ASSERT` ensures that the extension is enabled in all build modes (debug, release, etc).

Reviewed By: corporateshark

Differential Revision: D48606761

fbshipit-source-id: 6056491c6544d2b3fe10ae89740b341ddb634491
  • Loading branch information
mmaurer authored and facebook-github-bot committed Aug 23, 2023
1 parent 4837419 commit c1b6dc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/igl/vulkan/VulkanContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,8 @@ igl::Result VulkanContext::initContext(const HWDeviceDesc& desc,
extensions_.enable(extraDeviceExtensions[i], VulkanExtensions::ExtensionType::Device);
}
if (config_.enableBufferDeviceAddress) {
IGL_ASSERT(extensions_.enable(VK_KHR_BUFFER_DEVICE_ADDRESS_EXTENSION_NAME,
VulkanExtensions::ExtensionType::Device));
(void)IGL_VERIFY(extensions_.enable(VK_KHR_BUFFER_DEVICE_ADDRESS_EXTENSION_NAME,
VulkanExtensions::ExtensionType::Device));
}

VulkanQueuePool queuePool(vkPhysicalDevice_);
Expand Down

0 comments on commit c1b6dc4

Please sign in to comment.