-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathDeviceId.h
87 lines (69 loc) · 2.43 KB
/
DeviceId.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
/////////////////////////////////////////////////////////////////////////////////////////////
// Copyright 2017-2018 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/////////////////////////////////////////////////////////////////////////////////////////////
#pragma once
namespace GPUDetect
{
enum INTEL_GPU_ARCHITECTURE
{
IGFX_UNKNOWN = 0x00,
IGFX_SANDYBRIDGE = 0x0c,
IGFX_IVYBRIDGE,
IGFX_HASWELL,
IGFX_VALLEYVIEW,
IGFX_BROADWELL,
IGFX_CHERRYVIEW,
IGFX_SKYLAKE,
IGFX_KABYLAKE,
IGFX_COFFEELAKE,
IGFX_WILLOWVIEW,
IGFX_BROXTON,
IGFX_GEMINILAKE,
IGFX_CANNONLAKE = 0x1a,
IGFX_ICELAKE = 0x1c,
IGFX_ICELAKE_LP,
IGFX_LAKEFIELD = 0x1e,
IGFX_TIGERLAKE_LP = 0x21,
IGFX_ROCKETLAKE = 0x23,
IGFX_ADL = 0x24,
IGFX_ADL_LP = 0X25,
// Alchemist
DGFX_ACM = 1270,
IGFX_DG1 = 0x4ba,
IGFX_MAX_PRODUCT,
// Architectures with no enum value
IGFX_WHISKEYLAKE,
IGFX_COMETLAKE,
};
/*******************************************************************************
* getIntelGPUArchitecture
*
* Returns the architecture of an Intel GPU by parsing the device id. It
* assumes that it is indeed an Intel GPU device ID (i.e., that VendorID
* was INTEL_VENDOR_ID).
*
* You cannot generally compare device IDs to compare architectures; for
* example, a newer architecture may have an lower deviceID.
*
******************************************************************************/
INTEL_GPU_ARCHITECTURE GetIntelGPUArchitecture(unsigned int deviceId);
/*******************************************************************************
* getIntelGPUArchitectureString
*
* Convert A INTEL_GPU_ARCHITECTURE to a string.
*
******************************************************************************/
char const* GetIntelGPUArchitectureString(INTEL_GPU_ARCHITECTURE arch);
}