2019-12-13 22:47:45 +08:00
|
|
|
/*
|
2020-01-31 21:35:46 +08:00
|
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
2019-12-13 22:47:45 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2020-01-31 21:35:46 +08:00
|
|
|
#include "core/os_interface/windows/wddm/wddm_interface.h"
|
2019-12-13 22:47:45 +08:00
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
class WddmMockInterface20 : public WddmInterface20 {
|
|
|
|
public:
|
2019-12-17 22:26:00 +08:00
|
|
|
using WddmInterface::createMonitoredFence;
|
2019-12-13 22:47:45 +08:00
|
|
|
using WddmInterface20::WddmInterface20;
|
|
|
|
|
2019-12-17 22:26:00 +08:00
|
|
|
void destroyMonitorFence(MonitoredFence &monitorFence) override {
|
2019-12-13 22:47:45 +08:00
|
|
|
destroyMonitorFenceCalled++;
|
2019-12-17 22:26:00 +08:00
|
|
|
WddmInterface20::destroyMonitorFence(monitorFence);
|
2019-12-13 22:47:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t destroyMonitorFenceCalled = 0;
|
|
|
|
};
|
|
|
|
} // namespace NEO
|