AubCSR to operate in batched dispatch mode (by default)

This commit changes the default dispatch mode for AUB CSR
from the immediate dispatch to the batched dispatch mode.

Change-Id: Idca914475a9a38788fd94e16eb6db4c0afb1bdd6
This commit is contained in:
Milczarek, Slawomir
2018-01-13 17:32:04 +01:00
committed by sys_ocldev
parent ee250be942
commit 92ebb0c3c1
9 changed files with 50 additions and 3 deletions

View File

@@ -91,6 +91,8 @@ HWTEST_P(AUBCopyBuffer, simple) {
EXPECT_EQ(CL_SUCCESS, retVal);
pCmdQ->flush();
pSrcMemory = ptrOffset(pSrcMemory, srcOffset);
pDstMemory = ptrOffset(pDstMemory, dstOffset);

View File

@@ -115,6 +115,8 @@ HWTEST_P(AUBCopyBufferRect, simple) {
nullptr);
EXPECT_EQ(CL_SUCCESS, retVal);
pCmdQ->flush();
// Verify Output, line by line
uint8_t src[rowPitch * slicePitch];
memset(src, 0, sizeof(src));

View File

@@ -79,6 +79,8 @@ HWTEST_P(AUBFillBuffer, simple) {
event);
ASSERT_EQ(CL_SUCCESS, retVal);
pCmdQ->flush();
pDestMemory = reinterpret_cast<decltype(pDestMemory)>((destBuffer->getGraphicsAllocation()->getGpuAddress()));
// The memory under offset should be untouched

View File

@@ -228,6 +228,8 @@ HWTEST_P(AubFillImage, simple) {
nullptr);
EXPECT_EQ(CL_SUCCESS, retVal);
pCmdQ->flush();
((MemoryAllocation *)image->getGraphicsAllocation())->allowAubFileWrite = false; // disallow file overwrite from cpu in next enqueue calls
size_t imgOrigin[] = {0, 0, 0};
size_t imgRegion[] = {testWidth, testHeight, testDepth};

View File

@@ -170,6 +170,8 @@ HWTEST_P(AUBHelloWorldIntegrateTest, simple) {
event);
ASSERT_EQ(CL_SUCCESS, retVal);
pCmdQ->flush();
// Compute our memory expecations based on kernel execution
auto globalWorkItems = globalWorkSize[0] * globalWorkSize[1] * globalWorkSize[2];
auto sizeWritten = globalWorkItems * sizeof(float);
@@ -301,6 +303,8 @@ HWTEST_P(AUBSimpleArgIntegrateTest, simple) {
event);
ASSERT_EQ(CL_SUCCESS, retVal);
pCmdQ->flush();
// Compute our memory expecations based on kernel execution
size_t globalWorkItems = globalWorkSize[0] * globalWorkSize[1] * globalWorkSize[2];
size_t sizeWritten = globalWorkItems * sizeof(int);