From e132f2c4c194aa45d77e9f1eb43dd602c084c411 Mon Sep 17 00:00:00 2001 From: German Andryeyev Date: Fri, 21 Feb 2020 16:50:10 -0500 Subject: [PATCH] SWDEV-221395 - [OpenCL] Failure to Create RTQ2 Don't add real time queues into the pool of generic queues. Change-Id: I7f6865df740b8a2fbbec5e897a988a2151ef5a9e [ROCm/clr commit: 0fb8e378b124f22478dc0e3f3776a8a2d30b4fc7] --- projects/clr/rocclr/device/pal/palvirtual.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/clr/rocclr/device/pal/palvirtual.cpp b/projects/clr/rocclr/device/pal/palvirtual.cpp index 43ef2c9333..706d02b53e 100644 --- a/projects/clr/rocclr/device/pal/palvirtual.cpp +++ b/projects/clr/rocclr/device/pal/palvirtual.cpp @@ -131,8 +131,9 @@ VirtualGPU::Queue* VirtualGPU::Queue::Create(const VirtualGPU& gpu, Pal::QueueTy new (allocSize) VirtualGPU::Queue(gpu, palDev, residency_limit, max_command_buffers); if (queue != nullptr) { address addrQ = nullptr; - if ((qCreateInfo.engineType == Pal::EngineTypeCompute) || - (qCreateInfo.engineType == Pal::EngineTypeDma)) { + if (((qCreateInfo.engineType == Pal::EngineTypeCompute) || + (qCreateInfo.engineType == Pal::EngineTypeDma)) && + (qCreateInfo.priority != Pal::QueuePriority::Realtime)) { uint32_t index = AllocedQueues(gpu, qCreateInfo.engineType); // Create PAL queue object if (index < GPU_MAX_HW_QUEUES) {