mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
refactor: remove misleading std::move
The `surfStateInfo` argument has a `const SurfStateInHeapInfo &` type. Thus the result of `std::move()` is `std::remove_reference<const SurfStateHeapInfo &>::type &&`. This effectively boils down to `const SurfStateHeapInfo &` (the L-value reference has precedence), which effectively is passed to `.push_back(const SurfStateHeapInfo &)`. This is the same outcome as if the `std::move()` is not present at all. Related-To: NEO-15630 Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
478c7ce9a8
commit
f3b3d58ee9
@@ -293,7 +293,7 @@ void BindlessHeapsHelper::releaseSSToReusePool(const SurfaceStateInHeapInfo &sur
|
||||
if (surfStateInfo.heapAllocation != nullptr) {
|
||||
std::lock_guard<std::mutex> autolock(this->mtx);
|
||||
int index = getReusedSshVectorIndex(surfStateInfo.ssSize);
|
||||
surfaceStateInHeapVectorReuse[releasePoolIndex][index].push_back(std::move(surfStateInfo));
|
||||
surfaceStateInHeapVectorReuse[releasePoolIndex][index].push_back(surfStateInfo);
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user