Skip to content

Commit

Permalink
[vulkan] Disable Vulkan validation layer (#3050)
Browse files Browse the repository at this point in the history
* [refactor] Respect NDEBUG

* fix?

* hacky fix
  • Loading branch information
k-ye authored Sep 29, 2021
1 parent 52c47b2 commit cc2dd34
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions taichi/backends/vulkan/embedded_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ namespace vulkan {

namespace {

#ifdef NDEBUG
// FIXME: NDEBUG is broken, so just manually enable this if necessary.
constexpr bool kEnableValidationLayers = false;
#else
constexpr bool kEnableValidationLayers = true;
#endif

const std::vector<const char *> kValidationLayers = {
"VK_LAYER_KHRONOS_validation",
};
Expand Down

0 comments on commit cc2dd34

Please sign in to comment.