Remove aub test

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski 2020-12-08 13:32:03 +00:00 committed by Compute-Runtime-Automation
parent ddca863c48
commit 4fb4d99a06
1 changed files with 0 additions and 28 deletions

View File

@ -34,31 +34,3 @@ GEN12LPTEST_F(Gen12LPAubBatchBufferTests, givenSimpleRCSWithBatchBufferWhenItHas
GEN12LPTEST_F(Gen12LPAubBatchBufferTests, givenSimpleCCSWithBatchBufferWhenItHasMSBSetInGpuAddressThenAUBShouldBeSetupSuccessfully) {
setupAUBWithBatchBuffer<FamilyType>(pDevice, aub_stream::ENGINE_CCS, gpuBatchBufferAddr);
}
GEN12LPTEST_F(Gen12LPTimestampTests, DISABLED_givenCommandQueueWithProfilingEnabledWhenKernelIsEnqueuedThenProfilingTimestampsAreNotZero) {
cl_queue_properties properties[3] = {CL_QUEUE_PROPERTIES, CL_QUEUE_PROFILING_ENABLE, 0};
CommandQueueHw<FamilyType> cmdQ(pContext, pClDevice, &properties[0], false);
const uint32_t bufferSize = 4;
std::unique_ptr<Buffer> buffer(Buffer::create(pContext, CL_MEM_READ_WRITE, bufferSize, nullptr, retVal));
memset(buffer->getGraphicsAllocation(pClDevice->getRootDeviceIndex())->getUnderlyingBuffer(), 0,
buffer->getGraphicsAllocation(pClDevice->getRootDeviceIndex())->getUnderlyingBufferSize());
buffer->forceDisallowCPUCopy = true;
uint8_t writeData[bufferSize] = {0x11, 0x22, 0x33, 0x44};
cl_event event;
cmdQ.enqueueWriteBuffer(buffer.get(), CL_TRUE, 0, bufferSize, writeData, nullptr, 0, nullptr, &event);
ASSERT_NE(event, nullptr);
auto eventObject = castToObject<Event>(event);
ASSERT_NE(eventObject, nullptr);
expectMemory<FamilyType>(buffer->getGraphicsAllocation(pClDevice->getRootDeviceIndex())->getUnderlyingBuffer(), writeData, bufferSize);
uint64_t notExpectedTimestampValues[2] = {0, 0};
TagNode<HwTimeStamps> &hwTimeStamps = *(eventObject->getHwTimeStampNode());
uint64_t timeStampStartAddress = hwTimeStamps.getGpuAddress() + offsetof(HwTimeStamps, ContextStartTS);
uint64_t timeStampEndAddress = hwTimeStamps.getGpuAddress() + offsetof(HwTimeStamps, ContextEndTS);
expectMemoryNotEqual<FamilyType>(reinterpret_cast<void *>(timeStampStartAddress), &notExpectedTimestampValues[0], sizeof(uint64_t));
expectMemoryNotEqual<FamilyType>(reinterpret_cast<void *>(timeStampEndAddress), &notExpectedTimestampValues[1], sizeof(uint64_t));
eventObject->release();
}