mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
Avoid dynamic memory allocation [3/n]
- use reference on auto type to prevent copy. Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
bab1827e15
commit
fe9fe80fc6
@@ -1365,7 +1365,7 @@ int changeBufferObjectBinding(Drm *drm, OsContext *osContext, uint32_t vmHandleI
|
||||
flags |= ioctlHelper->getFlagsForVmBind(bindCapture, bindImmediate, bindMakeResident);
|
||||
}
|
||||
|
||||
auto bindAddresses = bo->getColourAddresses();
|
||||
auto &bindAddresses = bo->getColourAddresses();
|
||||
auto bindIterations = bindAddresses.size();
|
||||
if (bindIterations == 0) {
|
||||
bindIterations = 1;
|
||||
|
||||
Reference in New Issue
Block a user