mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-23 03:01:20 +08:00
Prealloc cmd buffer for CSR only when being used
Related-To: NEO-7361 Currently additional command buffer is preallocated for all CSRs, even for those which won't be used by application. This PR changes that Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3a58579bbe
commit
a66e69abc9
@@ -195,7 +195,7 @@ void CommandQueue::initializeGpgpuInternals() const {
|
||||
}
|
||||
}
|
||||
|
||||
gpgpuEngine->osContext->ensureContextInitialized();
|
||||
gpgpuEngine->commandStreamReceiver->initializeResources();
|
||||
gpgpuEngine->commandStreamReceiver->initDirectSubmission();
|
||||
|
||||
if (getCmdQueueProperties<cl_queue_properties>(propertiesVector.data(), CL_QUEUE_PROPERTIES) & static_cast<cl_queue_properties>(CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE) && !this->gpgpuEngine->commandStreamReceiver->isUpdateTagFromWaitEnabled()) {
|
||||
@@ -340,7 +340,7 @@ void CommandQueue::constructBcsEnginesForSplit() {
|
||||
bcsEngines[i] = neoDevice.tryGetEngine(engineType, EngineUsage::Regular);
|
||||
bcsEngineTypes.push_back(engineType);
|
||||
if (bcsEngines[i]) {
|
||||
bcsEngines[i]->osContext->ensureContextInitialized();
|
||||
bcsEngines[i]->commandStreamReceiver->initializeResources();
|
||||
bcsEngines[i]->commandStreamReceiver->initDirectSubmission();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user