mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
Create dedicated engine for internal usage
Related-To: NEO-4149 Change-Id: I1641866429cfa87b457a808b22917d191c482a7e Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
31029be263
commit
d810067048
@@ -80,6 +80,7 @@ class HwHelper {
|
||||
static uint32_t getEnginesCount(const HardwareInfo &hwInfo);
|
||||
|
||||
static constexpr uint32_t lowPriorityGpgpuEngineIndex = 1;
|
||||
static constexpr uint32_t internalUsageEngineIndex = 2;
|
||||
|
||||
protected:
|
||||
HwHelper() = default;
|
||||
|
||||
@@ -42,8 +42,9 @@ bool HwHelperHw<GfxFamily>::timestampPacketWriteSupported() const {
|
||||
|
||||
template <typename GfxFamily>
|
||||
const std::vector<aub_stream::EngineType> HwHelperHw<GfxFamily>::getGpgpuEngineInstances() const {
|
||||
constexpr std::array<aub_stream::EngineType, 2> gpgpuEngineInstances = {{aub_stream::ENGINE_RCS,
|
||||
aub_stream::ENGINE_RCS}}; // low priority
|
||||
constexpr std::array<aub_stream::EngineType, 3> gpgpuEngineInstances = {{aub_stream::ENGINE_RCS,
|
||||
aub_stream::ENGINE_RCS, // low priority
|
||||
aub_stream::ENGINE_RCS}}; // internal usage
|
||||
return std::vector<aub_stream::EngineType>(gpgpuEngineInstances.begin(), gpgpuEngineInstances.end());
|
||||
}
|
||||
|
||||
|
||||
@@ -581,7 +581,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, MidThreadPreemptionTests, givenDirtyCsrStateWhenStat
|
||||
auto &csr = mockDevice->getUltCommandStreamReceiver<FamilyType>();
|
||||
csr.isPreambleSent = true;
|
||||
|
||||
CommandQueueHw<FamilyType> commandQueue(nullptr, device.get(), 0);
|
||||
CommandQueueHw<FamilyType> commandQueue(nullptr, device.get(), 0, false);
|
||||
auto &commandStream = commandQueue.getCS(4096u);
|
||||
|
||||
DispatchFlags dispatchFlags = DispatchFlagsHelper::createDefaultDispatchFlags();
|
||||
@@ -627,7 +627,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, MidThreadPreemptionTests, givenPreemptionProgrammedA
|
||||
auto &csr = mockDevice->getUltCommandStreamReceiver<FamilyType>();
|
||||
csr.isPreambleSent = true;
|
||||
|
||||
CommandQueueHw<FamilyType> commandQueue(nullptr, device.get(), 0);
|
||||
CommandQueueHw<FamilyType> commandQueue(nullptr, device.get(), 0, false);
|
||||
auto &commandStream = commandQueue.getCS(4096u);
|
||||
|
||||
DispatchFlags dispatchFlags = DispatchFlagsHelper::createDefaultDispatchFlags();
|
||||
|
||||
Reference in New Issue
Block a user