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>
28 lines
670 B
C++
28 lines
670 B
C++
/*
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "runtime/os_interface/windows/wddm/wddm_interface.h"
|
|
|
|
namespace NEO {
|
|
class WddmMockInterface23 : public WddmInterface23 {
|
|
public:
|
|
using WddmInterface23::WddmInterface23;
|
|
|
|
bool createHwQueue(OsContextWin &osContext) override {
|
|
createHwQueueCalled++;
|
|
createHwQueueResult = forceCreateHwQueueFail ? false : WddmInterface23::createHwQueue(osContext);
|
|
return createHwQueueResult;
|
|
}
|
|
|
|
uint32_t createHwQueueCalled = 0;
|
|
bool forceCreateHwQueueFail = false;
|
|
bool createHwQueueResult = false;
|
|
};
|
|
} // namespace NEO
|