Skip to content

Commit 299e545

Browse files
author
joaosaffran
committed
fix
1 parent ed80eba commit 299e545

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

llvm/lib/ObjectYAML/DXContainerEmitter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,14 +275,14 @@ void DXContainerWriter::writeParts(raw_ostream &OS) {
275275

276276
for (DXContainerYAML::RootParameterLocationYaml &L :
277277
P.RootSignature->Parameters.Locations) {
278-
dxbc::RootParameterHeader Header{L.Header.Type, L.Header.Visibility,
278+
dxbc::RTS0::v1::RootParameterHeader Header{L.Header.Type, L.Header.Visibility,
279279
L.Header.Offset};
280280

281281
switch (L.Header.Type) {
282282
case llvm::to_underlying(dxbc::RootParameterType::Constants32Bit): {
283283
const DXContainerYAML::RootConstantsYaml &ConstantYaml =
284284
P.RootSignature->Parameters.getOrInsertConstants(L);
285-
dxbc::RootConstants Constants;
285+
dxbc::RTS0::v1::RootConstants Constants;
286286
Constants.Num32BitValues = ConstantYaml.Num32BitValues;
287287
Constants.RegisterSpace = ConstantYaml.RegisterSpace;
288288
Constants.ShaderRegister = ConstantYaml.ShaderRegister;

llvm/lib/ObjectYAML/DXContainerYAML.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ DXContainerYAML::RootSignatureYamlDesc::create(
105105
llvm::to_underlying(dxbc::RootDescriptorFlag::Val)) > 0;
106106
#include "llvm/BinaryFormat/DXContainerConstants.def"
107107
}
108-
NewP.Data = YamlDescriptor;
109108
}
110109
}
111110
#define ROOT_ELEMENT_FLAG(Num, Val) \

0 commit comments

Comments
 (0)