Skip to content

Commit

Permalink
[SPIRV] Declare int64 capability by default (#7681)
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi authored Mar 17, 2021
1 parent 4abbe49 commit c55608f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/target/spirv/ir_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ void IRBuilder::InitHeader() {
header_.push_back(0U);
// shader
ib_.Begin(spv::OpCapability).Add(spv::CapabilityShader).Commit(&header_);
// Declare int64 capability by default
ib_.Begin(spv::OpCapability).Add(spv::CapabilityInt64).Commit(&header_);
// memory model
ib_.Begin(spv::OpMemoryModel)
.AddSeq(spv::AddressingModelLogical, spv::MemoryModelGLSL450)
Expand Down

0 comments on commit c55608f

Please sign in to comment.