mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +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);
|
flags |= ioctlHelper->getFlagsForVmBind(bindCapture, bindImmediate, bindMakeResident);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto bindAddresses = bo->getColourAddresses();
|
auto &bindAddresses = bo->getColourAddresses();
|
||||||
auto bindIterations = bindAddresses.size();
|
auto bindIterations = bindAddresses.size();
|
||||||
if (bindIterations == 0) {
|
if (bindIterations == 0) {
|
||||||
bindIterations = 1;
|
bindIterations = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user