ULT renaming: Read Buffer Rectangle tests

Related-To: NEO-2236

Change-Id: I72081fe65bf4f2fd96e00ab3670862177be88fa5
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
This commit is contained in:
Adam Cetnerowski
2019-11-13 22:07:35 -08:00
committed by sys_ocldev
parent 06941a51af
commit 7311cf9fde

View File

@@ -20,7 +20,7 @@
using namespace NEO; using namespace NEO;
HWTEST_F(EnqueueReadBufferRectTest, null_src_mem_object) { HWTEST_F(EnqueueReadBufferRectTest, GivenNullBufferWhenReadingBufferThenInvalidMemObjectErrorIsReturned) {
auto retVal = CL_SUCCESS; auto retVal = CL_SUCCESS;
size_t bufferOrigin[] = {0, 0, 0}; size_t bufferOrigin[] = {0, 0, 0};
size_t hostOrigin[] = {0, 0, 0}; size_t hostOrigin[] = {0, 0, 0};
@@ -45,7 +45,7 @@ HWTEST_F(EnqueueReadBufferRectTest, null_src_mem_object) {
EXPECT_EQ(CL_INVALID_MEM_OBJECT, retVal); EXPECT_EQ(CL_INVALID_MEM_OBJECT, retVal);
} }
HWTEST_F(EnqueueReadBufferRectTest, nullHostPtr) { HWTEST_F(EnqueueReadBufferRectTest, GivenNullHostPtrWhenReadingBufferThenInvalidValueErrorIsReturned) {
auto retVal = CL_SUCCESS; auto retVal = CL_SUCCESS;
size_t bufferOrigin[] = {0, 0, 0}; size_t bufferOrigin[] = {0, 0, 0};
size_t hostOrigin[] = {0, 0, 0}; size_t hostOrigin[] = {0, 0, 0};
@@ -70,7 +70,7 @@ HWTEST_F(EnqueueReadBufferRectTest, nullHostPtr) {
EXPECT_EQ(CL_INVALID_VALUE, retVal); EXPECT_EQ(CL_INVALID_VALUE, retVal);
} }
HWTEST_F(EnqueueReadBufferRectTest, returnSuccess) { HWTEST_F(EnqueueReadBufferRectTest, GivenValidParamsWhenReadingBufferThenSuccessIsReturned) {
auto retVal = CL_SUCCESS; auto retVal = CL_SUCCESS;
size_t bufferOrigin[] = {0, 0, 0}; size_t bufferOrigin[] = {0, 0, 0};
size_t hostOrigin[] = {0, 0, 0}; size_t hostOrigin[] = {0, 0, 0};
@@ -95,7 +95,7 @@ HWTEST_F(EnqueueReadBufferRectTest, returnSuccess) {
EXPECT_EQ(CL_SUCCESS, retVal); EXPECT_EQ(CL_SUCCESS, retVal);
} }
HWTEST_F(EnqueueReadBufferRectTest, alignsToCSR_Blocking) { HWTEST_F(EnqueueReadBufferRectTest, GivenBlockingEnqueueWhenReadingBufferThenTaskLevelIsNotIncremented) {
//this test case assumes IOQ //this test case assumes IOQ
auto &csr = pDevice->getUltCommandStreamReceiver<FamilyType>(); auto &csr = pDevice->getUltCommandStreamReceiver<FamilyType>();
csr.taskCount = pCmdQ->taskCount + 100; csr.taskCount = pCmdQ->taskCount + 100;
@@ -107,7 +107,7 @@ HWTEST_F(EnqueueReadBufferRectTest, alignsToCSR_Blocking) {
EXPECT_EQ(oldCsrTaskLevel, pCmdQ->taskLevel); EXPECT_EQ(oldCsrTaskLevel, pCmdQ->taskLevel);
} }
HWTEST_F(EnqueueReadBufferRectTest, alignsToCSR_NonBlocking) { HWTEST_F(EnqueueReadBufferRectTest, GivenNonBlockingEnqueueWhenReadingBufferThenTaskLevelIsIncremented) {
//this test case assumes IOQ //this test case assumes IOQ
auto &csr = pDevice->getUltCommandStreamReceiver<FamilyType>(); auto &csr = pDevice->getUltCommandStreamReceiver<FamilyType>();
csr.taskCount = pCmdQ->taskCount + 100; csr.taskCount = pCmdQ->taskCount + 100;
@@ -118,7 +118,7 @@ HWTEST_F(EnqueueReadBufferRectTest, alignsToCSR_NonBlocking) {
EXPECT_EQ(csr.peekTaskLevel(), pCmdQ->taskLevel + 1); EXPECT_EQ(csr.peekTaskLevel(), pCmdQ->taskLevel + 1);
} }
HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadBufferRectTest, 2D_GPGPUWalker) { HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadBufferRectTest, Given2dRegionWhenReadingBufferThenCommandsAreProgrammedCorrectly) {
typedef typename FamilyType::GPGPU_WALKER GPGPU_WALKER; typedef typename FamilyType::GPGPU_WALKER GPGPU_WALKER;
enqueueReadBufferRect2D<FamilyType>(); enqueueReadBufferRect2D<FamilyType>();
@@ -149,21 +149,21 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadBufferRectTest, 2D_GPGPUWalker) {
} }
} }
HWTEST_F(EnqueueReadBufferRectTest, 2D_bumpsTaskLevel) { HWTEST_F(EnqueueReadBufferRectTest, WhenReadingBufferThenTaskLevelIsIncremented) {
auto taskLevelBefore = pCmdQ->taskLevel; auto taskLevelBefore = pCmdQ->taskLevel;
enqueueReadBufferRect2D<FamilyType>(); enqueueReadBufferRect2D<FamilyType>();
EXPECT_GT(pCmdQ->taskLevel, taskLevelBefore); EXPECT_GT(pCmdQ->taskLevel, taskLevelBefore);
} }
HWTEST_F(EnqueueReadBufferRectTest, 2D_addsCommands) { HWTEST_F(EnqueueReadBufferRectTest, WhenReadingBufferThenCommandsAreAdded) {
auto usedCmdBufferBefore = pCS->getUsed(); auto usedCmdBufferBefore = pCS->getUsed();
enqueueReadBufferRect2D<FamilyType>(); enqueueReadBufferRect2D<FamilyType>();
EXPECT_NE(usedCmdBufferBefore, pCS->getUsed()); EXPECT_NE(usedCmdBufferBefore, pCS->getUsed());
} }
HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadBufferRectTest, 2D_addsIndirectData) { HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadBufferRectTest, WhenReadingBufferThenIndirectDataIsAdded) {
auto dshBefore = pDSH->getUsed(); auto dshBefore = pDSH->getUsed();
auto iohBefore = pIOH->getUsed(); auto iohBefore = pIOH->getUsed();
auto sshBefore = pSSH->getUsed(); auto sshBefore = pSSH->getUsed();
@@ -199,7 +199,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadBufferRectTest, 2D_addsIndirectData) {
} }
} }
HWTEST_F(EnqueueReadBufferRectTest, 2D_LoadRegisterImmediateL3CNTLREG) { HWTEST_F(EnqueueReadBufferRectTest, WhenReadingBufferThenL3ProgrammingIsCorrect) {
enqueueReadBufferRect2D<FamilyType>(); enqueueReadBufferRect2D<FamilyType>();
validateL3Programming<FamilyType>(cmdList, itorWalker); validateL3Programming<FamilyType>(cmdList, itorWalker);
} }
@@ -211,7 +211,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadBufferRectTest, When2DEnqueueIsDoneThenSt
pDSH, pIOH, pSSH, itorPipelineSelect, itorWalker, cmdList, 0llu); pDSH, pIOH, pSSH, itorPipelineSelect, itorWalker, cmdList, 0llu);
} }
HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadBufferRectTest, 2D_MediaInterfaceDescriptorLoad) { HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadBufferRectTest, WhenReadingBufferThenMediaInterfaceDescriptorIsCorrect) {
typedef typename FamilyType::MEDIA_INTERFACE_DESCRIPTOR_LOAD MEDIA_INTERFACE_DESCRIPTOR_LOAD; typedef typename FamilyType::MEDIA_INTERFACE_DESCRIPTOR_LOAD MEDIA_INTERFACE_DESCRIPTOR_LOAD;
typedef typename FamilyType::INTERFACE_DESCRIPTOR_DATA INTERFACE_DESCRIPTOR_DATA; typedef typename FamilyType::INTERFACE_DESCRIPTOR_DATA INTERFACE_DESCRIPTOR_DATA;
@@ -239,7 +239,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadBufferRectTest, 2D_MediaInterfaceDescript
FamilyType::PARSE::template validateCommand<MEDIA_INTERFACE_DESCRIPTOR_LOAD *>(cmdList.begin(), itorCmd); FamilyType::PARSE::template validateCommand<MEDIA_INTERFACE_DESCRIPTOR_LOAD *>(cmdList.begin(), itorCmd);
} }
HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadBufferRectTest, 2D_InterfaceDescriptorData) { HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadBufferRectTest, WhenReadingBufferThenInterfaceDescriptorDataIsCorrect) {
typedef typename FamilyType::MEDIA_INTERFACE_DESCRIPTOR_LOAD MEDIA_INTERFACE_DESCRIPTOR_LOAD; typedef typename FamilyType::MEDIA_INTERFACE_DESCRIPTOR_LOAD MEDIA_INTERFACE_DESCRIPTOR_LOAD;
typedef typename FamilyType::STATE_BASE_ADDRESS STATE_BASE_ADDRESS; typedef typename FamilyType::STATE_BASE_ADDRESS STATE_BASE_ADDRESS;
typedef typename FamilyType::INTERFACE_DESCRIPTOR_DATA INTERFACE_DESCRIPTOR_DATA; typedef typename FamilyType::INTERFACE_DESCRIPTOR_DATA INTERFACE_DESCRIPTOR_DATA;
@@ -276,18 +276,18 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadBufferRectTest, 2D_InterfaceDescriptorDat
EXPECT_NE(0u, IDD.getConstantIndirectUrbEntryReadLength()); EXPECT_NE(0u, IDD.getConstantIndirectUrbEntryReadLength());
} }
HWTEST_F(EnqueueReadBufferRectTest, 2D_PipelineSelect) { HWTEST_F(EnqueueReadBufferRectTest, WhenReadingBufferThenOnePipelineSelectIsProgrammed) {
enqueueReadBufferRect2D<FamilyType>(); enqueueReadBufferRect2D<FamilyType>();
int numCommands = getNumberOfPipelineSelectsThatEnablePipelineSelect<FamilyType>(); int numCommands = getNumberOfPipelineSelectsThatEnablePipelineSelect<FamilyType>();
EXPECT_EQ(1, numCommands); EXPECT_EQ(1, numCommands);
} }
HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadBufferRectTest, 2D_MediaVFEState) { HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadBufferRectTest, WhenReadingBufferThenMediaVfeStateIsCorrect) {
enqueueReadBufferRect2D<FamilyType>(); enqueueReadBufferRect2D<FamilyType>();
validateMediaVFEState<FamilyType>(&pDevice->getHardwareInfo(), cmdMediaVfeState, cmdList, itorMediaVfeState); validateMediaVFEState<FamilyType>(&pDevice->getHardwareInfo(), cmdMediaVfeState, cmdList, itorMediaVfeState);
} }
HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadBufferRectTest, blockingRequiresPipeControlAfterWalkerWithDCFlushSet) { HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueReadBufferRectTest, GivenBlockingEnqueueWhenReadingBufferThenPipeControlIsProgrammedAfterWalkerWithDcFlushSet) {
typedef typename FamilyType::PIPE_CONTROL PIPE_CONTROL; typedef typename FamilyType::PIPE_CONTROL PIPE_CONTROL;
auto blocking = CL_TRUE; auto blocking = CL_TRUE;