Skip to content

Commit

Permalink
[aot] Disable physical storage buffer in runtime (taichi-dev#6494)
Browse files Browse the repository at this point in the history
The physical storage buffer codegen was disabled but the runtime can
still use them. This is an attempt to disable psb at runtime. Will bring
it back after devcap.
  • Loading branch information
PENGUINLIONG authored and quadpixels committed May 13, 2023
1 parent 092588d commit ebaf60f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions c_api/src/taichi_vulkan_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ VulkanRuntimeImported::Workaround::Workaround(
caps.set(taichi::lang::DeviceCapability::spirv_version, 0x10000);
}

// (penguinliong) Will bring it back after devcap.
/*
if (api_version > VK_API_VERSION_1_0) {
caps.set(taichi::lang::DeviceCapability::spirv_has_physical_storage_buffer,
true);
}
*/

vk_device.set_current_caps(std::move(caps));
vk_device.init_vulkan_structs(
Expand Down

0 comments on commit ebaf60f

Please sign in to comment.