Skip to content

Commit 3cbe0cf

Browse files
author
joaosaffran
committed
formating
1 parent eeffded commit 3cbe0cf

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

llvm/lib/Target/DirectX/DXILRootSignature.cpp

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -260,26 +260,26 @@ static bool validate(LLVMContext *Ctx, const mcdxbc::RootSignatureDesc &RSD) {
260260
assert(dxbc::isValidParameterType(Info.Header.ParameterType) &&
261261
"Invalid value for ParameterType");
262262

263-
switch(Info.Header.ParameterType) {
264-
265-
case llvm::to_underlying(dxbc::RootParameterType::CBV):
266-
case llvm::to_underlying(dxbc::RootParameterType::UAV):
267-
case llvm::to_underlying(dxbc::RootParameterType::SRV): {
268-
const dxbc::RTS0::v2::RootDescriptor &Descriptor = RSD.ParametersContainer.getRootDescriptor(Info.Location);
269-
if (!verifyRegisterValue(Descriptor.ShaderRegister))
270-
return reportValueError(Ctx, "ShaderRegister",
271-
Descriptor.ShaderRegister);
272-
273-
if (!verifyRegisterSpace(Descriptor.RegisterSpace))
274-
return reportValueError(Ctx, "RegisterSpace",
275-
Descriptor.RegisterSpace);
276-
277-
if(RSD.Version > 1) {
278-
if (!verifyDescriptorFlag(Descriptor.Flags))
279-
return reportValueError(Ctx, "DescriptorFlag", Descriptor.Flags);
280-
}
281-
break;
263+
switch (Info.Header.ParameterType) {
264+
265+
case llvm::to_underlying(dxbc::RootParameterType::CBV):
266+
case llvm::to_underlying(dxbc::RootParameterType::UAV):
267+
case llvm::to_underlying(dxbc::RootParameterType::SRV): {
268+
const dxbc::RTS0::v2::RootDescriptor &Descriptor =
269+
RSD.ParametersContainer.getRootDescriptor(Info.Location);
270+
if (!verifyRegisterValue(Descriptor.ShaderRegister))
271+
return reportValueError(Ctx, "ShaderRegister",
272+
Descriptor.ShaderRegister);
273+
274+
if (!verifyRegisterSpace(Descriptor.RegisterSpace))
275+
return reportValueError(Ctx, "RegisterSpace", Descriptor.RegisterSpace);
276+
277+
if (RSD.Version > 1) {
278+
if (!verifyDescriptorFlag(Descriptor.Flags))
279+
return reportValueError(Ctx, "DescriptorFlag", Descriptor.Flags);
282280
}
281+
break;
282+
}
283283
}
284284
}
285285

@@ -425,14 +425,14 @@ PreservedAnalyses RootSignatureAnalysisPrinter::run(Module &M,
425425
case llvm::to_underlying(dxbc::RootParameterType::CBV):
426426
case llvm::to_underlying(dxbc::RootParameterType::UAV):
427427
case llvm::to_underlying(dxbc::RootParameterType::SRV): {
428-
const dxbc::RTS0::v2::RootDescriptor &Descriptor =
428+
const dxbc::RTS0::v2::RootDescriptor &Descriptor =
429429
RS.ParametersContainer.getRootDescriptor(Loc);
430430
OS << indent(Space + 2)
431431
<< "Register Space: " << Descriptor.RegisterSpace << "\n";
432432
OS << indent(Space + 2)
433433
<< "Shader Register: " << Descriptor.ShaderRegister << "\n";
434434
if(RS.Version > 1)
435-
OS << indent(Space + 2) << "Flags: " << Descriptor.Flags << "\n";
435+
OS << indent(Space + 2) << "Flags: " << Descriptor.Flags << "\n";
436436
break;
437437
}
438438
}

0 commit comments

Comments
 (0)