2018-05-18 10:18:16 +02:00
|
|
|
/*
|
2019-01-28 20:16:36 +01:00
|
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
2018-09-18 09:11:08 +02:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
2018-05-18 10:18:16 +02:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2019-01-28 20:16:36 +01:00
|
|
|
#include "runtime/os_interface/windows/wddm/wddm_interface.h"
|
2018-05-18 10:18:16 +02:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2018-08-10 16:41:44 +02:00
|
|
|
class WddmMockInterface23 : public WddmInterface23 {
|
|
|
|
public:
|
|
|
|
using WddmInterface23::WddmInterface23;
|
|
|
|
|
2019-02-27 11:17:17 +01:00
|
|
|
bool createHwQueue(OsContextWin &osContext) override {
|
2018-05-18 10:18:16 +02:00
|
|
|
createHwQueueCalled++;
|
2019-02-27 11:17:17 +01:00
|
|
|
createHwQueueResult = forceCreateHwQueueFail ? false : WddmInterface23::createHwQueue(osContext);
|
2018-05-18 10:18:16 +02:00
|
|
|
return createHwQueueResult;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t createHwQueueCalled = 0;
|
|
|
|
bool forceCreateHwQueueFail = false;
|
|
|
|
bool createHwQueueResult = false;
|
|
|
|
};
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|