Skip to content

Commit c2ab0b1

Browse files
ULT renaming: Write buffer rect tests
Related-To: NEO-2236 Change-Id: I1ded69858ed6998fe03669383fd697129488a0b7 Signed-off-by: Adam Cetnerowski <[email protected]>
1 parent 49cde62 commit c2ab0b1

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

unit_tests/command_queue/enqueue_write_buffer_rect_tests.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
using namespace NEO;
2222

23-
HWTEST_F(EnqueueWriteBufferRectTest, nullBufferReturnsError) {
23+
HWTEST_F(EnqueueWriteBufferRectTest, GivenNullBufferWhenWritingBufferThenInvalidMemObjectErrorIsReturned) {
2424
auto retVal = CL_SUCCESS;
2525
size_t srcOrigin[] = {0, 0, 0};
2626
size_t dstOrigin[] = {0, 0, 0};
@@ -45,7 +45,7 @@ HWTEST_F(EnqueueWriteBufferRectTest, nullBufferReturnsError) {
4545
EXPECT_EQ(CL_INVALID_MEM_OBJECT, retVal);
4646
}
4747

48-
HWTEST_F(EnqueueWriteBufferRectTest, returnSuccess) {
48+
HWTEST_F(EnqueueWriteBufferRectTest, GivenValidParamsWhenWritingBufferThenSuccessIsReturned) {
4949
auto retVal = CL_SUCCESS;
5050
size_t srcOrigin[] = {0, 0, 0};
5151
size_t dstOrigin[] = {0, 0, 0};
@@ -70,7 +70,7 @@ HWTEST_F(EnqueueWriteBufferRectTest, returnSuccess) {
7070
EXPECT_EQ(CL_SUCCESS, retVal);
7171
}
7272

73-
HWTEST_F(EnqueueWriteBufferRectTest, alignsToCSR_Blocking) {
73+
HWTEST_F(EnqueueWriteBufferRectTest, GivenBlockingEnqueueWhenWritingBufferThenTaskLevelIsNotIncremented) {
7474
//this test case assumes IOQ
7575
auto &csr = pDevice->getUltCommandStreamReceiver<FamilyType>();
7676
csr.taskCount = pCmdQ->taskCount + 100;
@@ -82,7 +82,7 @@ HWTEST_F(EnqueueWriteBufferRectTest, alignsToCSR_Blocking) {
8282
EXPECT_EQ(oldCsrTaskLevel, pCmdQ->taskLevel);
8383
}
8484

85-
HWTEST_F(EnqueueWriteBufferRectTest, alignsToCSR_NonBlocking) {
85+
HWTEST_F(EnqueueWriteBufferRectTest, GivenNonBlockingEnqueueWhenWritingBufferThenTaskLevelIsIncremented) {
8686
//this test case assumes IOQ
8787
auto &csr = pDevice->getUltCommandStreamReceiver<FamilyType>();
8888
csr.taskCount = pCmdQ->taskCount + 100;
@@ -93,7 +93,7 @@ HWTEST_F(EnqueueWriteBufferRectTest, alignsToCSR_NonBlocking) {
9393
EXPECT_EQ(csr.peekTaskLevel(), pCmdQ->taskLevel + 1);
9494
}
9595

96-
HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteBufferRectTest, 2D_GPGPUWalker) {
96+
HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteBufferRectTest, Given2dRegionWhenWritingBufferThenCommandsAreProgrammedCorrectly) {
9797
typedef typename FamilyType::GPGPU_WALKER GPGPU_WALKER;
9898
enqueueWriteBufferRect2D<FamilyType>();
9999

@@ -124,21 +124,21 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteBufferRectTest, 2D_GPGPUWalker) {
124124
}
125125
}
126126

127-
HWTEST_F(EnqueueWriteBufferRectTest, 2D_bumpsTaskLevel) {
127+
HWTEST_F(EnqueueWriteBufferRectTest, WhenWritingBufferThenTaskLevelIsIncremented) {
128128
auto taskLevelBefore = pCmdQ->taskLevel;
129129

130130
enqueueWriteBufferRect2D<FamilyType>();
131131
EXPECT_GT(pCmdQ->taskLevel, taskLevelBefore);
132132
}
133133

134-
HWTEST_F(EnqueueWriteBufferRectTest, 2D_addsCommands) {
134+
HWTEST_F(EnqueueWriteBufferRectTest, WhenWritingBufferThenCommandsAreAdded) {
135135
auto usedCmdBufferBefore = pCS->getUsed();
136136

137137
enqueueWriteBufferRect2D<FamilyType>();
138138
EXPECT_NE(usedCmdBufferBefore, pCS->getUsed());
139139
}
140140

141-
HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteBufferRectTest, 2D_addsIndirectData) {
141+
HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteBufferRectTest, WhenWritingBufferThenIndirectDataIsAdded) {
142142
auto dshBefore = pDSH->getUsed();
143143
auto iohBefore = pIOH->getUsed();
144144
auto sshBefore = pSSH->getUsed();
@@ -173,7 +173,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteBufferRectTest, 2D_addsIndirectData) {
173173
}
174174
}
175175

176-
HWTEST_F(EnqueueWriteBufferRectTest, 2D_LoadRegisterImmediateL3CNTLREG) {
176+
HWTEST_F(EnqueueWriteBufferRectTest, WhenWritingBufferThenL3ProgrammingIsCorrect) {
177177
enqueueWriteBufferRect2D<FamilyType>();
178178
validateL3Programming<FamilyType>(cmdList, itorWalker);
179179
}
@@ -185,7 +185,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteBufferRectTest, When2DEnqueueIsDoneThenS
185185
pDSH, pIOH, pSSH, itorPipelineSelect, itorWalker, cmdList, 0llu);
186186
}
187187

188-
HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteBufferRectTest, 2D_MediaInterfaceDescriptorLoad) {
188+
HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteBufferRectTest, WhenWritingBufferThenMediaInterfaceDescriptorIsCorrect) {
189189
typedef typename FamilyType::MEDIA_INTERFACE_DESCRIPTOR_LOAD MEDIA_INTERFACE_DESCRIPTOR_LOAD;
190190
typedef typename FamilyType::INTERFACE_DESCRIPTOR_DATA INTERFACE_DESCRIPTOR_DATA;
191191

@@ -213,7 +213,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteBufferRectTest, 2D_MediaInterfaceDescrip
213213
FamilyType::PARSE::template validateCommand<MEDIA_INTERFACE_DESCRIPTOR_LOAD *>(cmdList.begin(), itorCmd);
214214
}
215215

216-
HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteBufferRectTest, 2D_InterfaceDescriptorData) {
216+
HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteBufferRectTest, WhenWritingBufferThenInterfaceDescriptorDataIsCorrect) {
217217
typedef typename FamilyType::MEDIA_INTERFACE_DESCRIPTOR_LOAD MEDIA_INTERFACE_DESCRIPTOR_LOAD;
218218
typedef typename FamilyType::STATE_BASE_ADDRESS STATE_BASE_ADDRESS;
219219
typedef typename FamilyType::INTERFACE_DESCRIPTOR_DATA INTERFACE_DESCRIPTOR_DATA;
@@ -250,13 +250,13 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteBufferRectTest, 2D_InterfaceDescriptorDa
250250
EXPECT_NE(0u, IDD.getConstantIndirectUrbEntryReadLength());
251251
}
252252

253-
HWTEST_F(EnqueueWriteBufferRectTest, 2D_PipelineSelect) {
253+
HWTEST_F(EnqueueWriteBufferRectTest, WhenWritingBufferThenOnePipelineSelectIsProgrammed) {
254254
enqueueWriteBufferRect2D<FamilyType>();
255255
int numCommands = getNumberOfPipelineSelectsThatEnablePipelineSelect<FamilyType>();
256256
EXPECT_EQ(1, numCommands);
257257
}
258258

259-
HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteBufferRectTest, 2D_MediaVFEState) {
259+
HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteBufferRectTest, WhenWritingBufferThenMediaVfeStateIsCorrect) {
260260
enqueueWriteBufferRect2D<FamilyType>();
261261
validateMediaVFEState<FamilyType>(&pDevice->getHardwareInfo(), cmdMediaVfeState, cmdList, itorMediaVfeState);
262262
}

0 commit comments

Comments
 (0)