2018-01-22 16:43:26 +01:00
|
|
|
/*
|
2020-02-22 22:21:06 +01:00
|
|
|
* Copyright (C) 2018-2020 Intel Corporation
|
2018-01-22 16:43:26 +01:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-01-22 16:43:26 +01:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2019-02-27 11:39:32 +01:00
|
|
|
#include "Windows.h"
|
2018-05-10 11:42:41 +02:00
|
|
|
#include <d3dkmthk.h>
|
2019-02-27 11:39:32 +01:00
|
|
|
|
2018-05-10 11:42:41 +02:00
|
|
|
#include <cstdint>
|
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2018-01-22 16:43:26 +01:00
|
|
|
|
2018-02-08 22:52:58 +01:00
|
|
|
constexpr uintptr_t windowsMinAddress = 0x200000;
|
2018-01-22 16:43:26 +01:00
|
|
|
|
2018-05-10 11:42:41 +02:00
|
|
|
struct MonitoredFence {
|
2018-05-18 10:18:16 +02: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 11:42:41 +02:00
|
|
|
};
|
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|