mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
- Move logic to enqueueHandler to cover all scenarios - Create BlockedCommandsData not only for Kernel enqueue - KernelOperation cleanup Change-Id: Ie4a673cbbc986c685996a38ab296444d38e7bbd5 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
18 lines
469 B
C++
18 lines
469 B
C++
/*
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/helpers/task_information.h"
|
|
|
|
namespace NEO {
|
|
template <typename ObjectT>
|
|
void KernelOperation::ResourceCleaner::operator()(ObjectT *object) {
|
|
storageForAllocations->storeAllocation(std::unique_ptr<GraphicsAllocation>(object->getGraphicsAllocation()),
|
|
REUSABLE_ALLOCATION);
|
|
delete object;
|
|
}
|
|
} // namespace NEO
|