1 | /* |
2 | * Copyright 2019 Google LLC |
3 | * |
4 | * Use of this source code is governed by a BSD-style license that can be |
5 | * found in the LICENSE file. |
6 | */ |
7 | #ifndef GrUtil_DEFINED |
8 | #define GrUtil_DEFINED |
9 | |
10 | #include "include/core/SkTypes.h" |
11 | |
12 | enum GrIntelGpuFamily { |
13 | kUnknown_IntelGpuFamily, |
14 | |
15 | // 6th gen |
16 | kSandyBridge_IntelGpuFamily, |
17 | |
18 | // 7th gen |
19 | kIvyBridge_IntelGpuFamily, |
20 | kValleyView_IntelGpuFamily, // aka BayTrail |
21 | kHaswell_IntelGpuFamily, |
22 | |
23 | // 8th gen |
24 | kCherryView_IntelGpuFamily, // aka Braswell |
25 | kBroadwell_IntelGpuFamily, |
26 | |
27 | // 9th gen |
28 | kApolloLake_IntelGpuFamily, |
29 | kSkyLake_IntelGpuFamily, |
30 | kGeminiLake_IntelGpuFamily, |
31 | kKabyLake_IntelGpuFamily, |
32 | kCoffeeLake_IntelGpuFamily, |
33 | |
34 | // 11th gen |
35 | kIceLake_IntelGpuFamily, |
36 | }; |
37 | |
38 | GrIntelGpuFamily GrGetIntelGpuFamily(uint32_t deviceID); |
39 | |
40 | #endif |
41 | |