Skip to content

Commit

Permalink
[vulkan] Set kApiVersion to VK_API_VERSION_1_3
Browse files Browse the repository at this point in the history
This change fixes issue #4900. On certain AMD GPUs (such as RX 5500),
the Vullkan version needs to be 1.3 in order for Volk to correctly populate
the "vkGetDeviceBufferMemoryRequirements" function pointer. If the
version is 1.2, the pointer will be NULL and cause an assertion failure.

Tested by running the voxel challenge program and see the program
working as expected on a Windows PC.
  • Loading branch information
quadpixels committed May 11, 2022
1 parent 6d538e1 commit a5032c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taichi/backends/vulkan/vulkan_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace vulkan {
class VulkanEnvSettings {
public:
static constexpr uint32_t kApiVersion() {
return VK_API_VERSION_1_2;
return VK_API_VERSION_1_3;
}
};

Expand Down

0 comments on commit a5032c0

Please sign in to comment.