[v0.11] Working in master GPU handler for supporting diverse GPU vendors

This commit is contained in:
Dr-Noob
2021-11-26 08:22:30 +01:00
parent 149e5ad62c
commit 461e0d2ede
7 changed files with 54 additions and 14 deletions

View File

@@ -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;
}

View File

@@ -3,6 +3,7 @@
#include "../common/gpu.hpp"
struct gpu_info* get_gpu_info_intel(int gpu_idx);
struct gpu_info* get_gpu_info_intel();
bool print_gpu_intel(struct gpu_info* gpu);
#endif