2024-01-04 17:10:49 +08:00
|
|
|
/*
|
2025-05-06 19:24:01 +08:00
|
|
|
* Copyright (C) 2024-2025 Intel Corporation
|
2024-01-04 17:10:49 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "shared/source/os_interface/windows/wddm/wddm_interface.h"
|
|
|
|
#include "shared/test/common/test_macros/mock_method_macros.h"
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
class WddmMockInterface : public WddmInterface {
|
|
|
|
public:
|
|
|
|
using WddmInterface::WddmInterface;
|
|
|
|
ADDMETHOD_NOBASE(createHwQueue, bool, true, (OsContextWin & osContext));
|
|
|
|
ADDMETHOD_NOBASE_VOIDRETURN(destroyHwQueue, (D3DKMT_HANDLE hwQueue));
|
|
|
|
ADDMETHOD_NOBASE(createMonitoredFence, bool, true, (OsContextWin & osContext));
|
|
|
|
ADDMETHOD_NOBASE_VOIDRETURN(destroyMonitorFence, (MonitoredFence & monitorFence));
|
|
|
|
ADDMETHOD_NOBASE(hwQueuesSupported, bool, false, ());
|
|
|
|
ADDMETHOD_NOBASE(submit, bool, true, (uint64_t commandBuffer, size_t size, void *commandHeader, WddmSubmitArguments &submitArguments));
|
2025-05-06 19:24:01 +08:00
|
|
|
ADDMETHOD_NOBASE(createFenceForDirectSubmission, bool, true, (MonitoredFence & monitorFence, OsContextWin &osContext));
|
2024-01-04 17:10:49 +08:00
|
|
|
};
|
|
|
|
} // namespace NEO
|