mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
25 lines
787 B
C++
25 lines
787 B
C++
/*
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "core/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, uint32_t handleId) {
|
|
auto bo = drmAllocation->getBO();
|
|
makeResident(bo);
|
|
}
|
|
|
|
template <typename GfxFamily>
|
|
void DrmCommandStreamReceiver<GfxFamily>::flushInternal(const BatchBuffer &batchBuffer, const ResidencyContainer &allocationsForResidency) {
|
|
this->processResidency(allocationsForResidency, 0u);
|
|
this->exec(batchBuffer, static_cast<const OsContextLinux *>(osContext)->getDrmContextIds()[0]);
|
|
}
|
|
|
|
} // namespace NEO
|