2019-09-01 21:36:15 +02:00
|
|
|
/*
|
|
|
|
|
* 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);
|
|
|
|
|
}
|
2019-09-23 16:30:31 +02:00
|
|
|
|
|
|
|
|
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]);
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-01 21:36:15 +02:00
|
|
|
} // namespace NEO
|