2018-01-22 23:43:26 +08:00
|
|
|
/*
|
2018-09-18 15:11:08 +08:00
|
|
|
* Copyright (C) 2018 Intel Corporation
|
2018-01-22 23:43:26 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-01-22 23:43:26 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-05-10 17:42:41 +08:00
|
|
|
#include <d3dkmthk.h>
|
|
|
|
#include <cstdint>
|
|
|
|
|
2018-01-22 23:43:26 +08:00
|
|
|
namespace OCLRT {
|
|
|
|
|
2018-02-09 05:52:58 +08:00
|
|
|
constexpr uintptr_t windowsMinAddress = 0x200000;
|
2018-01-22 23:43:26 +08:00
|
|
|
|
2018-05-10 17:42:41 +08:00
|
|
|
struct MonitoredFence {
|
2018-05-18 16:18:16 +08:00
|
|
|
D3DKMT_HANDLE fenceHandle = 0;
|
|
|
|
D3DGPU_VIRTUAL_ADDRESS gpuAddress = 0;
|
|
|
|
volatile uint64_t *cpuAddress = nullptr;
|
|
|
|
volatile uint64_t currentFenceValue = 0;
|
|
|
|
uint64_t lastSubmittedFence = 0;
|
2018-05-10 17:42:41 +08:00
|
|
|
};
|
|
|
|
|
2018-01-22 23:43:26 +08:00
|
|
|
} // namespace OCLRT
|