Skip to content

Commit

Permalink
rspirv: changes for sdk-1.3.268
Browse files Browse the repository at this point in the history
  • Loading branch information
exrook committed Oct 25, 2023
1 parent f6d7816 commit e73dc56
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions rspirv/binary/assemble.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ impl Assemble for dr::Operand {
Self::MemorySemantics(v) => result.push(v.bits()),
Self::MemoryAccess(v) => result.push(v.bits()),
Self::KernelProfilingInfo(v) => result.push(v.bits()),
Self::CooperativeMatrixOperands(v) => result.push(v.bits()),
Self::SourceLanguage(v) => result.push(v as u32),
Self::ExecutionModel(v) => result.push(v as u32),
Self::AddressingModel(v) => result.push(v as u32),
Expand Down Expand Up @@ -87,6 +88,12 @@ impl Assemble for dr::Operand {
Self::FPOperationMode(v) => result.push(v as u32),
Self::OverflowModes(v) => result.push(v as u32),
Self::PackedVectorFormat(v) => result.push(v as u32),
Self::HostAccessQualifier(v) => result.push(v as u32),
Self::CooperativeMatrixLayout(v) => result.push(v as u32),
Self::CooperativeMatrixUse(v) => result.push(v as u32),
Self::InitializationModeQualifier(v) => result.push(v as u32),
Self::LoadCacheControl(v) => result.push(v as u32),
Self::StoreCacheControl(v) => result.push(v as u32),
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions rspirv/binary/autogen_parse_operand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl<'c, 'd> Parser<'c, 'd> {
GOpKind::IdRef => vec![dr::Operand::IdRef(self.decoder.id()?)],
GOpKind::LiteralInteger => vec![dr::Operand::LiteralBit32(self.decoder.bit32()?)],
GOpKind::LiteralString => vec![dr::Operand::LiteralString(self.decoder.string()?)],
GOpKind::LiteralFloat => vec![dr::Operand::LiteralFloat(self.decoder.float()?)],
GOpKind::LiteralFloat => vec![dr::Operand::LiteralBit32(self.decoder.bit32()?)],
GOpKind::LiteralExtInstInteger => vec![dr::Operand::LiteralExtInstInteger(
self.decoder.ext_inst_integer()?,
)],
Expand Down Expand Up @@ -557,7 +557,7 @@ impl<'c, 'd> Parser<'c, 'd> {
dr::Operand::LiteralString(self.decoder.string()?),
],
spirv::Decoration::FPMaxErrorDecorationINTEL => {
vec![dr::Operand::LiteralFloat(self.decoder.float()?)]
vec![dr::Operand::LiteralBit32(self.decoder.bit32()?)]
}
spirv::Decoration::LatencyControlLabelINTEL => {
vec![dr::Operand::LiteralBit32(self.decoder.bit32()?)]
Expand Down

0 comments on commit e73dc56

Please sign in to comment.