mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

Change-Id: If965c79d70392db26597aea4c2f3b7ae2820fe96 Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
37 lines
1.2 KiB
C++
37 lines
1.2 KiB
C++
/*
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "runtime/gmm_helper/gmm_lib.h"
|
|
|
|
#include <memory>
|
|
|
|
namespace NEO {
|
|
class GmmMemoryBase {
|
|
public:
|
|
virtual ~GmmMemoryBase() = default;
|
|
|
|
MOCKABLE_VIRTUAL bool configureDeviceAddressSpace(GMM_ESCAPE_HANDLE hAdapter,
|
|
GMM_ESCAPE_HANDLE hDevice,
|
|
GMM_ESCAPE_FUNC_TYPE pfnEscape,
|
|
GMM_GFX_SIZE_T SvmSize,
|
|
BOOLEAN BDWL3Coherency);
|
|
|
|
virtual bool configureDevice(GMM_ESCAPE_HANDLE hAdapter,
|
|
GMM_ESCAPE_HANDLE hDevice,
|
|
GMM_ESCAPE_FUNC_TYPE pfnEscape,
|
|
GMM_GFX_SIZE_T SvmSize,
|
|
BOOLEAN BDWL3Coherency,
|
|
GMM_GFX_PARTITIONING &gfxPartition,
|
|
uintptr_t &minAddress);
|
|
|
|
protected:
|
|
GmmMemoryBase();
|
|
GMM_CLIENT_CONTEXT *clientContext = nullptr;
|
|
};
|
|
} // namespace NEO
|