Skip to content

Commit

Permalink
[vulkan] [bug] Stop using the buffer device address feature on macOS (#…
Browse files Browse the repository at this point in the history
…6415)

See
#6295 (comment).

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
strongoier and pre-commit-ci[bot] authored Oct 24, 2022
1 parent f573176 commit f677fb1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions taichi/rhi/vulkan/vulkan_device_creator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,11 @@ void VulkanDeviceCreator::create_logical_device(bool manual_create) {
if (CHECK_VERSION(1, 3) ||
buffer_device_address_feature.bufferDeviceAddress) {
if (device_supported_features.shaderInt64) {
// Temporarily disable it on macOS:
// https://github.com/taichi-dev/taichi/issues/6295
#if !defined(__APPLE__)
caps.set(DeviceCapability::spirv_has_physical_storage_buffer, true);
#endif
}
}
*pNextEnd = &buffer_device_address_feature;
Expand Down

0 comments on commit f677fb1

Please sign in to comment.