Skip to content

Commit

Permalink
[vulkan] Set kApiVersion to VK_API_VERSION_1_3 (taichi-dev#4970)
Browse files Browse the repository at this point in the history
* Change vulkan version to fix AMD crash problem.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
turbo0628 and pre-commit-ci[bot] authored May 12, 2022
1 parent 1b6797c commit 7c4de03
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion taichi/backends/vulkan/vulkan_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ namespace vulkan {

class VulkanEnvSettings {
public:
// This version number is used to create a vkInstance, it should be
// the highest API version that is designed to use.
// Reference:
// https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkApplicationInfo.html
static constexpr uint32_t kApiVersion() {
return VK_API_VERSION_1_2;
return VK_API_VERSION_1_3;
}
};

Expand Down

0 comments on commit 7c4de03

Please sign in to comment.