Skip to content

Commit e065a82

Browse files
committed
removing function I thought I needed
1 parent fa60959 commit e065a82

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

llvm/include/llvm/Frontend/HLSL/RootSignatureValidations.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ LLVM_ABI bool verifyRangeType(uint32_t Type);
3333
LLVM_ABI bool verifyDescriptorRangeFlag(uint32_t Version,
3434
dxbc::DescriptorRangeType Type,
3535
dxbc::DescriptorRangeFlags FlagsVal);
36-
LLVM_ABI bool verifyDescriptorRangeFlag(uint32_t Version,
37-
dxbc::DescriptorRangeType Type,
38-
uint32_t FlagsVal);
3936
LLVM_ABI bool verifyNumDescriptors(uint32_t NumDescriptors);
4037
LLVM_ABI bool verifySamplerFilter(uint32_t Value);
4138
LLVM_ABI bool verifyAddress(uint32_t Address);

llvm/lib/Frontend/HLSL/RootSignatureMetadata.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,6 @@ Error MetadataParser::validateRootSignature(
569569
const mcdxbc::DescriptorTable &Table =
570570
RSD.ParametersContainer.getDescriptorTable(Info.Location);
571571
for (const mcdxbc::DescriptorRange &Range : Table) {
572-
573572
if (!hlsl::rootsig::verifyRegisterSpace(Range.RegisterSpace))
574573
DeferredErrs =
575574
joinErrors(std::move(DeferredErrs),
@@ -583,7 +582,8 @@ Error MetadataParser::validateRootSignature(
583582
"NumDescriptors", Range.NumDescriptors));
584583

585584
if (!hlsl::rootsig::verifyDescriptorRangeFlag(
586-
RSD.Version, Range.RangeType, Range.Flags))
585+
RSD.Version, Range.RangeType,
586+
dxbc::DescriptorRangeFlags(Range.Flags)))
587587
DeferredErrs =
588588
joinErrors(std::move(DeferredErrs),
589589
make_error<RootSignatureValidationError<uint32_t>>(

llvm/lib/Frontend/HLSL/RootSignatureValidations.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,6 @@ bool verifyDescriptorRangeFlag(uint32_t Version, dxbc::DescriptorRangeType Type,
122122
}
123123
return (Flags & ~Mask) == FlagT::None;
124124
}
125-
bool verifyDescriptorRangeFlag(uint32_t Version, dxbc::DescriptorRangeType Type,
126-
uint32_t Flags) {
127-
return verifyDescriptorRangeFlag(Version, Type,
128-
dxbc::DescriptorRangeFlags(Flags));
129-
}
130125

131126
bool verifyNumDescriptors(uint32_t NumDescriptors) {
132127
return NumDescriptors > 0;

0 commit comments

Comments
 (0)