mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-01 04:23:00 +08:00
Add ClDevice
Decouple cl_device_id from Device class. Related-To: NEO-3938 Change-Id: I68543a753aea562f3b47ba0d23a059ff3cffa906 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
@@ -557,7 +557,7 @@ void CommandQueueHw<GfxFamily>::processDeviceEnqueue(DeviceQueueHw<GfxFamily> *d
|
||||
this->getIndirectHeap(IndirectHeap::SURFACE_STATE, 0u).getGraphicsAllocation(),
|
||||
devQueueHw->getDebugQueue());
|
||||
|
||||
auto preemptionMode = PreemptionHelper::taskPreemptionMode(*device, multiDispatchInfo);
|
||||
auto preemptionMode = PreemptionHelper::taskPreemptionMode(getDevice(), multiDispatchInfo);
|
||||
GpgpuWalkerHelper<GfxFamily>::dispatchScheduler(
|
||||
*this->commandStream,
|
||||
*devQueueHw,
|
||||
@@ -731,7 +731,7 @@ CompletionStamp CommandQueueHw<GfxFamily>::enqueueNonBlocked(
|
||||
{}, //pipelineSelectArgs
|
||||
this->flushStamp->getStampReference(), //flushStampReference
|
||||
getThrottle(), //throttle
|
||||
PreemptionHelper::taskPreemptionMode(*device, multiDispatchInfo), //preemptionMode
|
||||
PreemptionHelper::taskPreemptionMode(getDevice(), multiDispatchInfo), //preemptionMode
|
||||
numGrfRequired, //numGrfRequired
|
||||
L3CachingSettings::l3CacheOn, //l3CacheSettings
|
||||
kernel->getThreadArbitrationPolicy(), //threadArbitrationPolicy
|
||||
@@ -786,7 +786,7 @@ CompletionStamp CommandQueueHw<GfxFamily>::enqueueNonBlocked(
|
||||
getIndirectHeap(IndirectHeap::SURFACE_STATE, 0u),
|
||||
taskLevel,
|
||||
dispatchFlags,
|
||||
*device);
|
||||
getDevice());
|
||||
|
||||
return completionStamp;
|
||||
}
|
||||
@@ -859,7 +859,7 @@ void CommandQueueHw<GfxFamily>::enqueueBlocked(
|
||||
allSurfaces.push_back(surface->duplicate());
|
||||
}
|
||||
|
||||
PreemptionMode preemptionMode = PreemptionHelper::taskPreemptionMode(*device, multiDispatchInfo);
|
||||
PreemptionMode preemptionMode = PreemptionHelper::taskPreemptionMode(getDevice(), multiDispatchInfo);
|
||||
bool slmUsed = multiDispatchInfo.usesSlm() || multiDispatchInfo.peekParentKernel();
|
||||
command = std::make_unique<CommandComputeKernel>(*this,
|
||||
blockedCommandsData,
|
||||
@@ -955,7 +955,7 @@ CompletionStamp CommandQueueHw<GfxFamily>::enqueueCommandWithoutKernel(
|
||||
getIndirectHeap(IndirectHeap::SURFACE_STATE, 0u),
|
||||
taskLevel,
|
||||
dispatchFlags,
|
||||
*device);
|
||||
getDevice());
|
||||
|
||||
return completionStamp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user