@@ -260,26 +260,26 @@ static bool validate(LLVMContext *Ctx, const mcdxbc::RootSignatureDesc &RSD) {
260
260
assert (dxbc::isValidParameterType (Info.Header .ParameterType ) &&
261
261
" Invalid value for ParameterType" );
262
262
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 );
282
280
}
281
+ break ;
282
+ }
283
283
}
284
284
}
285
285
@@ -425,14 +425,14 @@ PreservedAnalyses RootSignatureAnalysisPrinter::run(Module &M,
425
425
case llvm::to_underlying (dxbc::RootParameterType::CBV):
426
426
case llvm::to_underlying (dxbc::RootParameterType::UAV):
427
427
case llvm::to_underlying (dxbc::RootParameterType::SRV): {
428
- const dxbc::RTS0::v2::RootDescriptor &Descriptor =
428
+ const dxbc::RTS0::v2::RootDescriptor &Descriptor =
429
429
RS.ParametersContainer .getRootDescriptor (Loc);
430
430
OS << indent (Space + 2 )
431
431
<< " Register Space: " << Descriptor.RegisterSpace << " \n " ;
432
432
OS << indent (Space + 2 )
433
433
<< " Shader Register: " << Descriptor.ShaderRegister << " \n " ;
434
434
if (RS.Version > 1 )
435
- OS << indent (Space + 2 ) << " Flags: " << Descriptor.Flags << " \n " ;
435
+ OS << indent (Space + 2 ) << " Flags: " << Descriptor.Flags << " \n " ;
436
436
break ;
437
437
}
438
438
}
0 commit comments