Skip to content

Commit 91056dd

Browse files
authored
Add support for Immortalis-G925 and Mali-G725/625 hardware
2 parents 867f915 + 7e71186 commit 91056dd

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.vscode
44

55
# Build and debug output files
6+
/.cache
67
/bin*
78
/build*
89
/log*

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021-2023 Arm Limited
3+
Copyright (c) 2021-2024 Arm Limited
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ or general mobile graphics development or technology please submit them on the
163163

164164
- - -
165165

166-
_Copyright © 2023, Arm Limited and contributors. All rights reserved._
166+
_Copyright © 2023-2024, Arm Limited and contributors. All rights reserved._
167167

168168
[1]: https://community.arm.com/support-forums/f/graphics-gaming-and-vr-forum/
169169
[2]: https://developer.arm.com/documentation/102849/latest/

source/arm_gpuinfo.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747

4848
#include <iostream>
4949
#include <sys/utsname.h>
50+
#include <cstring>
5051

5152
#if defined(__ANDROID__)
5253
#include <sys/system_properties.h>

source/libgpuinfo.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ static uint32_t get_num_eng_g510(
187187
}
188188
}
189189

190-
const std::array<product_entry, 32> PRODUCT_VERSIONS {{
190+
const std::array<product_entry, 35> PRODUCT_VERSIONS {{
191191
// ID, ID Mask, Min cores, Name, Arch, FMA/Eng, Texels, Pixels, Engines
192192
product_entry { 0x6956, MASK_OLD, 1, "Mali-T600", "Midgard", get_num<4>, get_num<1>, get_num<1>, get_num<2> },
193193
product_entry { 0x0620, MASK_OLD, 1, "Mali-T620", "Midgard", get_num<4>, get_num<1>, get_num<1>, get_num<2> },
@@ -217,10 +217,13 @@ const std::array<product_entry, 32> PRODUCT_VERSIONS {{
217217
product_entry { 0xb002, MASK_NEW, 7, "Mali-G715", "Valhall", get_num<64>, get_num<8>, get_num<4>, get_num<2> },
218218
product_entry { 0xb002, MASK_NEW, 1, "Mali-G615", "Valhall", get_num<64>, get_num<8>, get_num<4>, get_num<2> },
219219
product_entry { 0xb003, MASK_NEW, 1, "Mali-G615", "Valhall", get_num<64>, get_num<8>, get_num<4>, get_num<2> },
220-
product_entry { 0xc000, MASK_NEW, 10, "Immortalis-G720", "Arm GPU Gen5", get_num<64>, get_num<8>, get_num<4>, get_num<2> },
221-
product_entry { 0xc000, MASK_NEW, 6, "Mali-G720", "Arm GPU Gen5", get_num<64>, get_num<8>, get_num<4>, get_num<2> },
222-
product_entry { 0xc000, MASK_NEW, 1, "Mali-G620", "Arm GPU Gen5", get_num<64>, get_num<8>, get_num<4>, get_num<2> },
223-
product_entry { 0xc001, MASK_NEW, 1, "Mali-G620", "Arm GPU Gen5", get_num<64>, get_num<8>, get_num<4>, get_num<2> },
220+
product_entry { 0xc000, MASK_NEW, 10, "Immortalis-G720", "Arm 5th Gen", get_num<64>, get_num<8>, get_num<4>, get_num<2> },
221+
product_entry { 0xc000, MASK_NEW, 6, "Mali-G720", "Arm 5th Gen", get_num<64>, get_num<8>, get_num<4>, get_num<2> },
222+
product_entry { 0xc000, MASK_NEW, 1, "Mali-G620", "Arm 5th Gen", get_num<64>, get_num<8>, get_num<4>, get_num<2> },
223+
product_entry { 0xc001, MASK_NEW, 1, "Mali-G620", "Arm 5th Gen", get_num<64>, get_num<8>, get_num<4>, get_num<2> },
224+
product_entry { 0xd000, MASK_NEW, 10, "Immortalis-G925", "Arm 5th Gen", get_num<64>, get_num<8>, get_num<4>, get_num<2> },
225+
product_entry { 0xd000, MASK_NEW, 6, "Mali-G725", "Arm 5th Gen", get_num<64>, get_num<8>, get_num<4>, get_num<2> },
226+
product_entry { 0xd001, MASK_NEW, 1, "Mali-G625", "Arm 5th Gen", get_num<64>, get_num<8>, get_num<4>, get_num<2> },
224227
}};
225228

226229
uint32_t get_gpu_id(

0 commit comments

Comments
 (0)