mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 06:23:01 +08:00
engine_node_helper kmdaf_listener wddm_engine_mapper windows_defs Related-To: NEO-3982 Change-Id: Ia39342059bdeafa97d17f286c167138e5c40553c Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
45 lines
1.0 KiB
C++
45 lines
1.0 KiB
C++
/*
|
|
* Copyright (C) 2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "core/memory_manager/eviction_status.h"
|
|
#include "core/os_interface/windows/windows_defs.h"
|
|
|
|
#include <vector>
|
|
|
|
namespace NEO {
|
|
|
|
namespace WddmMockHelpers {
|
|
struct CallResult {
|
|
uint32_t called = 0;
|
|
uint64_t uint64ParamPassed = -1;
|
|
bool success = false;
|
|
uint64_t commandBufferSubmitted = 0u;
|
|
void *commandHeaderSubmitted = nullptr;
|
|
void *cpuPtrPassed = nullptr;
|
|
};
|
|
struct MakeResidentCall : CallResult {
|
|
std::vector<D3DKMT_HANDLE> handlePack;
|
|
uint32_t handleCount = 0;
|
|
};
|
|
struct KmDafLockCall : CallResult {
|
|
std::vector<D3DKMT_HANDLE> lockedAllocations;
|
|
};
|
|
struct WaitFromCpuResult : CallResult {
|
|
const MonitoredFence *monitoredFence = nullptr;
|
|
};
|
|
struct FreeGpuVirtualAddressCall : CallResult {
|
|
uint64_t sizePassed = -1;
|
|
};
|
|
struct MemoryOperationResult : CallResult {
|
|
MemoryOperationsStatus operationSuccess = MemoryOperationsStatus::UNSUPPORTED;
|
|
};
|
|
} // namespace WddmMockHelpers
|
|
|
|
} // namespace NEO
|