[v0.11] Working for future support of Intel iGPUs

This commit is contained in:
Dr-Noob
2021-11-25 19:03:52 +01:00
parent 3502f48f71
commit 149e5ad62c
12 changed files with 181 additions and 47 deletions

10
src/intel/intel.cpp Normal file
View File

@@ -0,0 +1,10 @@
#include "intel.hpp"
#include "uarch.hpp"
#include "../common/pci.hpp"
#include "../common/global.hpp"
struct gpu_info* get_gpu_info_intel() {
struct gpu_info* gpu = (struct gpu_info*) emalloc(sizeof(struct gpu_info));
return gpu;
}

8
src/intel/intel.hpp Normal file
View File

@@ -0,0 +1,8 @@
#ifndef __INTEL_GPU__
#define __INTEL_GPU__
#include "../common/gpu.hpp"
struct gpu_info* get_gpu_info_intel(int gpu_idx);
#endif

6
src/intel/uarch.hpp Normal file
View File

@@ -0,0 +1,6 @@
#ifndef __INTEL_UARCH__
#define __INTEL_UARCH__
#include "../common/gpu.hpp"
#endif