mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
Operate on OsContext when per context VMs are used Related-To: NEO-4957 Change-Id: Ia6bef88a80163d4ceee9f9bf59bda6b569d8929f Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
20 lines
524 B
C++
20 lines
524 B
C++
/*
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/os_interface/linux/drm_allocation.h"
|
|
#include "shared/source/os_interface/linux/drm_buffer_object.h"
|
|
#include "shared/source/os_interface/os_context.h"
|
|
|
|
namespace NEO {
|
|
|
|
void DrmAllocation::bindBOs(OsContext *osContext, uint32_t vmHandleId, std::vector<BufferObject *> *bufferObjects, bool bind) {
|
|
auto bo = this->getBO();
|
|
bindBO(bo, osContext, vmHandleId, bufferObjects, bind);
|
|
}
|
|
|
|
} // namespace NEO
|