Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi committed Apr 10, 2021
1 parent a5a97f4 commit 17597ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/runtime/vulkan/vulkan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1144,8 +1144,7 @@ void VulkanWrappedFunc::operator()(TVMArgs args, TVMRetValue* rv,
const size_t nbytes_scalars = num_pack_args_ * sizeof(ArgUnion64);
bool use_ubo = num_pack_args_ != 0 && nbytes_scalars > MAX_PUSHCONSTANTS;
if (use_ubo) {
// UBO
CHECK(pipeline->ubo.host_buf) << "The UBO host is not allocated";
CHECK(pipeline->ubo.host_buf) << "The UBO host buffer is not allocated";
memcpy(pipeline->ubo.host_buf, pack_args, nbytes_scalars);
VkDescriptorBufferInfo binfo;
binfo.buffer = pipeline->ubo.vk_buf->buffer;
Expand Down

0 comments on commit 17597ae

Please sign in to comment.