Skip to content

Commit

Permalink
[Hotfix] typo in Vulkan runtime change causing severe perf regression (
Browse files Browse the repository at this point in the history
…#7871)

Co-authored-by: Masahiro Masuda <masahi@129@gmail.com>
  • Loading branch information
masahi and Masahiro Masuda authored Apr 17, 2021
1 parent e082ef5 commit 6d0386b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/vulkan/vulkan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class VulkanDeviceAPI final : public DeviceAPI {
const auto& vctx = context(dev.device_id);
auto usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT |
VK_BUFFER_USAGE_STORAGE_BUFFER_BIT;
return CreateBuffer(vctx, nbytes, usage, vctx.staging_mtype_index);
return CreateBuffer(vctx, nbytes, usage, vctx.compute_mtype_index);
}

void FreeDataSpace(Device dev, void* ptr) final {
Expand Down

0 comments on commit 6d0386b

Please sign in to comment.