mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Allow Device creating multiple CSRs [3/n]
Add CSR from Device to CommandQueue Change-Id: Iaccf3c73d25e357242837677777d0513e81f520e Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
fbf0d44fff
commit
3ad33bf1b8
@ -75,8 +75,7 @@ struct HardwareParse {
|
||||
|
||||
template <typename FamilyType>
|
||||
void parseCommands(OCLRT::CommandQueue &commandQueue) {
|
||||
auto &device = commandQueue.getDevice();
|
||||
auto &commandStreamReceiver = device.getCommandStreamReceiver();
|
||||
auto &commandStreamReceiver = commandQueue.getCommandStreamReceiver();
|
||||
auto &commandStreamCSR = commandStreamReceiver.getCS();
|
||||
|
||||
parseCommands<FamilyType>(commandStreamCSR, startCSRCS);
|
||||
|
@ -27,7 +27,7 @@ struct KmdNotifyTests : public ::testing::Test {
|
||||
device.reset(MockDevice::createWithNewExecutionEnvironment<MockDevice>(&localHwInfo));
|
||||
cmdQ.reset(new MockCommandQueue(&context, device.get(), nullptr));
|
||||
*device->getTagAddress() = taskCountToWait;
|
||||
device->getCommandStreamReceiver().waitForFlushStamp(flushStampToWait, *device->getOsContext());
|
||||
cmdQ->getCommandStreamReceiver().waitForFlushStamp(flushStampToWait, *device->getOsContext());
|
||||
overrideKmdNotifyParams(true, 2, true, 1, false, 0);
|
||||
}
|
||||
|
||||
@ -167,7 +167,7 @@ HWTEST_F(KmdNotifyTests, givenDisabledQuickSleepWhenWaitUntilCompleteWithQuickSl
|
||||
|
||||
HWTEST_F(KmdNotifyTests, givenNotReadyTaskCountWhenPollForCompletionCalledThenTimeout) {
|
||||
*device->getTagAddress() = taskCountToWait - 1;
|
||||
auto success = device->getCommandStreamReceiver().waitForCompletionWithTimeout(true, 1, taskCountToWait);
|
||||
auto success = device->getUltCommandStreamReceiver<FamilyType>().waitForCompletionWithTimeout(true, 1, taskCountToWait);
|
||||
EXPECT_FALSE(success);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user