Skip to content

Commit

Permalink
Auto Format
Browse files Browse the repository at this point in the history
  • Loading branch information
taichi-gardener committed Jan 23, 2022
1 parent d9118af commit 50ea6fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions taichi/codegen/spirv/spirv_codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1597,8 +1597,8 @@ class TaskCodegen : public IRVisitor {
return it->second;
}

spirv::Value buffer_value =
ir_->buffer_argument(type, 0, buffer_binding_map_[buffer], buffer_instance_name(buffer));
spirv::Value buffer_value = ir_->buffer_argument(
type, 0, buffer_binding_map_[buffer], buffer_instance_name(buffer));
buffer_value_map_[key] = buffer_value;
TI_TRACE("buffer name = {}, value = {}", buffer_instance_name(buffer),
buffer_value.id);
Expand All @@ -1615,8 +1615,8 @@ class TaskCodegen : public IRVisitor {
return it->second;
}

spirv::Value buffer_value =
ir_->buffer_argument(type, 0, buffer_binding_map_[buffer], buffer_instance_name(buffer));
spirv::Value buffer_value = ir_->buffer_argument(
type, 0, buffer_binding_map_[buffer], buffer_instance_name(buffer));
buffer_value_map_[key] = buffer_value;
TI_TRACE("buffer name = {}, value = {}", buffer_instance_name(buffer),
buffer_value.id);
Expand Down
4 changes: 2 additions & 2 deletions taichi/codegen/spirv/spirv_ir_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ SType IRBuilder::get_struct_array_type(const SType &value_type,
Value IRBuilder::buffer_argument(const SType &value_type,
uint32_t descriptor_set,
uint32_t binding,
const std::string& name) {
const std::string &name) {
// NOTE: BufferBlock was deprecated in SPIRV 1.3
// use StorageClassStorageBuffer instead.
spv::StorageClass storage_class;
Expand All @@ -370,7 +370,7 @@ Value IRBuilder::buffer_argument(const SType &value_type,
this->debug(spv::OpName, sarr_type, name + "_struct_array");

SType ptr_type = get_pointer_type(sarr_type, storage_class);

this->debug(spv::OpName, sarr_type, name + "_ptr");

Value val = new_value(ptr_type, ValueKind::kStructArrayPtr);
Expand Down

0 comments on commit 50ea6fa

Please sign in to comment.