mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-27 15:53:13 +08:00
Related-To: NEO-3008 Change-Id: Icd0583f3bbdfc8ffb6eb4e2e9c67e7ef622cc337 Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
25 lines
762 B
C++
25 lines
762 B
C++
/*
|
|
* Copyright (C) 2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/os_interface/linux/drm_allocation.h"
|
|
#include "runtime/os_interface/linux/drm_command_stream.h"
|
|
|
|
namespace NEO {
|
|
template <typename GfxFamily>
|
|
void DrmCommandStreamReceiver<GfxFamily>::makeResidentBufferObjects(const DrmAllocation *drmAllocation) {
|
|
auto bo = drmAllocation->getBO();
|
|
makeResident(bo);
|
|
}
|
|
|
|
template <typename GfxFamily>
|
|
void DrmCommandStreamReceiver<GfxFamily>::flushInternal(const BatchBuffer &batchBuffer, const ResidencyContainer &allocationsForResidency) {
|
|
this->processResidency(allocationsForResidency);
|
|
this->exec(batchBuffer, static_cast<const OsContextLinux *>(osContext)->getDrmContextIds()[0]);
|
|
}
|
|
|
|
} // namespace NEO
|