Select RCS1 for low priority CommandQueue

Change-Id: I86b5cb19bfbb358c5036fe4027ea82287a5f4e39
This commit is contained in:
Dunajski, Bartosz
2018-12-13 07:41:33 +01:00
parent cfafe943eb
commit 6face330fd
2 changed files with 16 additions and 0 deletions

View File

@@ -13,6 +13,7 @@
#include "runtime/program/printf_handler.h"
#include "runtime/helpers/dispatch_info.h"
#include "runtime/command_stream/preemption.h"
#include "runtime/helpers/engine_control.h"
#include "runtime/helpers/queue_helpers.h"
#include <memory>
@@ -33,6 +34,7 @@ class CommandQueueHw : public CommandQueue {
if (clPriority & static_cast<cl_queue_priority_khr>(CL_QUEUE_PRIORITY_LOW_KHR)) {
priority = QueuePriority::LOW;
this->engine = &device->getEngine(EngineInstanceConstants::lowPriorityGpgpuEngineIndex);
} else if (clPriority & static_cast<cl_queue_priority_khr>(CL_QUEUE_PRIORITY_MED_KHR)) {
priority = QueuePriority::MEDIUM;
} else if (clPriority & static_cast<cl_queue_priority_khr>(CL_QUEUE_PRIORITY_HIGH_KHR)) {