-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathAmdDxExtASICInfo.h
93 lines (85 loc) · 3.6 KB
/
AmdDxExtASICInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*
***************************************************************************************************
*
* Copyright (c) 2012-2016 Advanced Micro Devices, Inc. All rights reserved.
*
***************************************************************************************************
*/
/**
***************************************************************************************************
* @file AmdDxExtASICInfo.h
*
* @brief
* AMD D3D ASIC Info Extension API include file.
***************************************************************************************************
*/
#ifndef _AMDDXEXTASICINFO_H_
#define _AMDDXEXTASICINFO_H_
const unsigned int AmdDxASICInfoMaxGPUCount = 8; ///< Maximum GPU Count
/**
***************************************************************************************************
* @brief
* AmdDxASICInfoChipFamily - Enumerates chip family.
*
***************************************************************************************************
*/
enum AmdDxASICInfoChipFamily
{
AmdDxChipFamily_Unknown,
AmdDxChipFamily_GFX6,
AmdDxChipFamily_GFX7,
AmdDxChipFamily_GFX8,
AmdDxChipFamily_GFX9,
AmdDxChipFamily_GFX10,
};
/**
***************************************************************************************************
* @brief
* AmdDxExtASICInfoHWInfo - Structure for video graphics hardware info.
*
***************************************************************************************************
*/
struct AmdDxASICInfoHWInfo
{
AmdDxASICInfoChipFamily chipFamily; ///< Chip family
UINT chipID; ///< Chip ID
UINT revisionID; ///< Revision ID
UINT64 gpuCounterFrequency; ///< GPU counter frequency
UINT64 coreClockInHz; ///< Core clock in Hz
UINT64 memClockInHz; ///< Memory clock in Hz
UINT64 videoMemSize; ///< Size of video memory
UINT numShaderEngines; ///< Total shader engine
UINT numShaderArraysPerSE; ///< Number of shader arrays per shader engine
UINT totalCU; ///< Total compute unit
UINT numSimdsPerCU; ///< Number of SIMDs per CU
UINT asicName; ///< ASIC name enumeration (internal driver-defined)
UINT waveSlotsPerSimd; ///< Number of wave slots per SIMD
UINT reserved[510]; ///< Reserved for further extensions
};
/**
***************************************************************************************************
* @brief
* AmdDxASICInfo struct - Structure filled by driver to provide video graphics harware and
* driver info.
*
***************************************************************************************************
*/
struct AmdDxASICInfo
{
AmdDxASICInfoHWInfo hwInfo[AmdDxASICInfoMaxGPUCount]; ///< Hardware specific information
UINT gpuCount; ///< Number of active GPUs
UINT reserved[512]; ///< Reserved for further extensions
};
/**
***************************************************************************************************
* @brief
* AmdDxASICInfoParam struct - Structure filled by the application to pass current extension
* version and pointer to AmdDxASICInfo structure object.
*
***************************************************************************************************
*/
struct AmdDxASICInfoParam
{
AmdDxASICInfo* pASICInfo; ///< Pointer to the info object
};
#endif //_AMDDXEXTASICINFO_H_