2018-01-22 16:43:26 +01:00
|
|
|
/*
|
2021-05-19 20:12:09 +00:00
|
|
|
* Copyright (C) 2018-2021 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
|
|
|
|
|
2021-05-26 23:45:38 +02:00
|
|
|
#include "shared/source/os_interface/windows/d3dkmthk_wrapper.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
|