mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 00:03:14 +08:00
fix: do not use BCS for low priority queues
Related-To: NEO-16073 Currently only CCS is supported with low priority context. Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
eba3a2d685
commit
b68f65af36
@@ -1825,6 +1825,25 @@ TEST(CommandQueue, givenWriteToImageFromBufferWhenCallingBlitEnqueueAllowedThenR
|
||||
EXPECT_EQ(queue.blitEnqueueAllowed(args), expectedValue);
|
||||
}
|
||||
|
||||
TEST(CommandQueue, givenLowPriorityQueueWhenBlitEnqueueAllowedIsCalledThenReturnFalse) {
|
||||
MockContext context{};
|
||||
MockCommandQueue queue(&context, context.getDevice(0), 0, false);
|
||||
queue.priority = QueuePriority::low;
|
||||
if (queue.countBcsEngines() == 0) {
|
||||
queue.bcsEngines[0] = &context.getDevice(0)->getDefaultEngine();
|
||||
}
|
||||
|
||||
auto buffer = std::unique_ptr<Buffer>(BufferHelper<>::create(&context));
|
||||
size_t origin[3] = {0, 0, 0};
|
||||
size_t region[3] = {1, 1, 1};
|
||||
MockImageBase dstImage{};
|
||||
dstImage.associatedMemObject = buffer.get();
|
||||
|
||||
CsrSelectionArgs args{CL_COMMAND_WRITE_IMAGE, nullptr, &dstImage, 0u, region, nullptr, origin};
|
||||
|
||||
EXPECT_FALSE(queue.blitEnqueueAllowed(args));
|
||||
}
|
||||
|
||||
TEST(CommandQueue, givenBufferWhenMultiStorageIsNotSetThenDontRequireMigrations) {
|
||||
MockDefaultContext context{true};
|
||||
MockCommandQueue queue(&context, context.getDevice(1), 0, false);
|
||||
|
||||
Reference in New Issue
Block a user