[v0.11] Print available more information for iGPU

This commit is contained in:
Dr-Noob
2021-11-27 11:22:16 +01:00
parent 8db60b614d
commit b00050e739
7 changed files with 49 additions and 29 deletions

View File

@@ -11,12 +11,6 @@
// Any clock multiplier
#define CM_ANY -1
// Data not available
#define NA -1
// Unknown manufacturing process
#define UNK -1
// MICROARCH values
enum {
UARCH_UNKNOWN,
@@ -332,27 +326,6 @@ char* get_str_cc(struct uarch* arch) {
return cc;
}
char* get_str_process(struct uarch* arch) {
char* str = (char *) emalloc(sizeof(char) * (strlen(STRING_UNKNOWN)+1));
int32_t process = arch->process;
if(process == UNK) {
snprintf(str, strlen(STRING_UNKNOWN)+1, STRING_UNKNOWN);
}
else if(process > 100) {
sprintf(str, "%.2fum", (double)process/100);
}
else if(process > 0){
sprintf(str, "%dnm", process);
}
else {
snprintf(str, strlen(STRING_UNKNOWN)+1, STRING_UNKNOWN);
printBug("Found invalid process: '%d'", process);
}
return str;
}
char* get_str_chip(struct uarch* arch) {
return arch->chip_str;
}