Skip to content

Commit 81692d6

Browse files
committed
nfc: change some test values around or something
1 parent 2bdbbc6 commit 81692d6

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

llvm/lib/Frontend/HLSL/HLSLRootSignature.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ void DescriptorTableClause::dump(raw_ostream &OS) const {
140140
OS << ", space = " << Space;
141141
OS << ", offset = ";
142142
if (Offset == DescriptorTableOffsetAppend)
143-
OS << "DESCRIPTOR_TABLE_OFFSET_APPEND";
143+
OS << "DescriptorTableOffsetAppend";
144144
else
145145
OS << Offset;
146146
OS << ", flags = ";

llvm/unittests/Frontend/HLSLRootSignatureDumpTest.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ TEST(HLSLRootSignatureTest, DescriptorCBVClauseDump) {
2626

2727
std::string Expected =
2828
"CBV(b0, numDescriptors = 1, space = 0, "
29-
"offset = DESCRIPTOR_TABLE_OFFSET_APPEND, "
29+
"offset = DescriptorTableOffsetAppend, "
3030
"flags = DataStaticWhileSetAtExecute)";
3131
EXPECT_EQ(Out, Expected);
3232
}
@@ -54,10 +54,10 @@ TEST(HLSLRootSignatureTest, DescriptorSRVClauseDump) {
5454
TEST(HLSLRootSignatureTest, DescriptorUAVClauseDump) {
5555
DescriptorTableClause Clause;
5656
Clause.Type = ClauseType::UAV;
57-
Clause.Reg = { RegisterType::UReg, 0 };
58-
Clause.NumDescriptors = 2;
59-
Clause.Space = 42;
60-
Clause.Offset = 3;
57+
Clause.Reg = { RegisterType::UReg, 92374 };
58+
Clause.NumDescriptors = 3298;
59+
Clause.Space = 932847;
60+
Clause.Offset = 1;
6161
Clause.Flags = DescriptorRangeFlags::ValidFlags;
6262

6363
std::string Out;
@@ -66,7 +66,7 @@ TEST(HLSLRootSignatureTest, DescriptorUAVClauseDump) {
6666
OS.flush();
6767

6868
std::string Expected =
69-
"UAV(u0, numDescriptors = 2, space = 42, offset = 3, flags = "
69+
"UAV(u92374, numDescriptors = 3298, space = 932847, offset = 1, flags = "
7070
"DescriptorsVolatile | "
7171
"DataVolatile | "
7272
"DataStaticWhileSetAtExecute | "
@@ -81,7 +81,7 @@ TEST(HLSLRootSignatureTest, DescriptorSamplerClauseDump) {
8181
Clause.Reg = { RegisterType::SReg, 0 };
8282
Clause.NumDescriptors = 2;
8383
Clause.Space = 42;
84-
Clause.Offset = 3;
84+
Clause.Offset = DescriptorTableOffsetAppend;
8585
Clause.Flags = DescriptorRangeFlags::ValidSamplerFlags;
8686

8787
std::string Out;
@@ -90,7 +90,7 @@ TEST(HLSLRootSignatureTest, DescriptorSamplerClauseDump) {
9090
OS.flush();
9191

9292
std::string Expected =
93-
"Sampler(s0, numDescriptors = 2, space = 42, offset = 3, "
93+
"Sampler(s0, numDescriptors = 2, space = 42, offset = DescriptorTableOffsetAppend, "
9494
"flags = DescriptorsVolatile)";
9595
EXPECT_EQ(Out, Expected);
9696
}

0 commit comments

Comments
 (0)