mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
refactor: use reference in for-range loops
Related-To: NEO-9038 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6eae5db63e
commit
95eb5df978
@@ -611,7 +611,7 @@ GraphicsAllocation *MemoryManager::allocateInternalGraphicsMemoryWithHostCopy(ui
|
||||
|
||||
bool MemoryManager::mapAuxGpuVA(GraphicsAllocation *graphicsAllocation) {
|
||||
bool ret = false;
|
||||
for (auto engine : getRegisteredEngines(graphicsAllocation->getRootDeviceIndex())) {
|
||||
for (auto &engine : getRegisteredEngines(graphicsAllocation->getRootDeviceIndex())) {
|
||||
if (engine.commandStreamReceiver->pageTableManager.get()) {
|
||||
ret = engine.commandStreamReceiver->pageTableManager->updateAuxTable(graphicsAllocation->getGpuAddress(), graphicsAllocation->getDefaultGmm(), true);
|
||||
if (!ret) {
|
||||
|
||||
Reference in New Issue
Block a user