mirror of
https://github.com/intel/compute-runtime.git
synced 2025-11-15 10:14:56 +08:00
Updating files modified in 2018 only. Older files remain with old style copyright header Change-Id: Ic99f2e190ad74b4b7f2bd79dd7b9fa5fbe36ec92 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
28 lines
706 B
C++
28 lines
706 B
C++
/*
|
|
* Copyright (C) 2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "runtime/os_interface/windows/wddm/wddm.h"
|
|
|
|
namespace OCLRT {
|
|
class WddmMockInterface23 : public WddmInterface23 {
|
|
public:
|
|
using WddmInterface23::WddmInterface23;
|
|
|
|
bool createHwQueue(PreemptionMode preemptionMode, OsContextWin &osContext) override {
|
|
createHwQueueCalled++;
|
|
createHwQueueResult = forceCreateHwQueueFail ? false : WddmInterface23::createHwQueue(preemptionMode, osContext);
|
|
return createHwQueueResult;
|
|
}
|
|
|
|
uint32_t createHwQueueCalled = 0;
|
|
bool forceCreateHwQueueFail = false;
|
|
bool createHwQueueResult = false;
|
|
};
|
|
} // namespace OCLRT
|