Skip to content

Commit 25ee6d7

Browse files
Joao SaffranJoao Saffran
authored andcommitted
fixing merge issues
1 parent 98be089 commit 25ee6d7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

llvm/lib/Frontend/HLSL/RootSignatureMetadata.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -555,10 +555,13 @@ Error MetadataParser::validateRootSignature(
555555

556556
dxbc::RootParameterType PT =
557557
static_cast<dxbc::RootParameterType>(Info.Header.ParameterType);
558-
559-
case to_underlying(dxbc::RootParameterType::CBV):
560-
case to_underlying(dxbc::RootParameterType::UAV):
561-
case to_underlying(dxbc::RootParameterType::SRV): {
558+
switch (PT) {
559+
case dxbc::RootParameterType::Constants32Bit:
560+
// ToDo: Add proper validation.
561+
continue;
562+
case dxbc::RootParameterType::CBV:
563+
case dxbc::RootParameterType::UAV:
564+
case dxbc::RootParameterType::SRV: {
562565
const dxbc::RTS0::v2::RootDescriptor &Descriptor =
563566
RSD.ParametersContainer.getRootDescriptor(Info.Location);
564567
if (!hlsl::rootsig::verifyRegisterValue(Descriptor.ShaderRegister))

0 commit comments

Comments
 (0)