[v0.11] Working in master GPU handler for supporting diverse GPU vendors
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include "intel.hpp"
|
||||
#include "uarch.hpp"
|
||||
#include "../common/pci.hpp"
|
||||
@@ -8,3 +10,11 @@ struct gpu_info* get_gpu_info_intel() {
|
||||
|
||||
return gpu;
|
||||
}
|
||||
|
||||
bool print_gpu_intel(struct gpu_info* gpu) {
|
||||
if(gpu->vendor != GPU_VENDOR_INTEL) return false;
|
||||
|
||||
printf("%s\n", gpu->name);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user