Debian Codegraph @

media_driver/agnostic/gen11_icllp/vp/kernel_free/README.md

raw
1 # Media Driver Open Source Kernel
2
3 ## Step1: Building IGA (Intel Graphics Assembler)
4
5 1. Download or clone IGC (Intel Graphics Compiler)
6
7 https://github.com/intel/intel-graphics-compiler.git
8
9 2. Chdir into 'intel-graphics-compiler' (or any other workspace folder of choice)
10
11 It should read the following folder strucutre:
12
13 workspace
14 |- visa
15 |- IGC
16 |- inc
17 |- 3d
18 |- skuwa
19
20 3. Chdir into IGA sub-component
21 ```
22 cd visa/iga
23 ```
24 4. Create build directory
25 ```
26 mkdir build
27 ```
28 5. Change into build directory
29 ```
30 cd build
31 ```
32 6. Run cmake
33 ```
34 cmake ../
35 ```
36 7. Run make to build IGA project
37 ```
38 make
39 ```
40 8. Get the output executable "iga64" in IGAExe folder
41
42
43 ## Step2: Building the other post processing tools
44
45 1. Download or clone Tool
46
47 https://github.com/intel/media-driver
48
49 2. Chdir into "Tools/MediaDriverTools/GenKrnBin"
50
51 3. Create build directory
52 ```
53 mkdir build
54 ```
55 5. Change into build directory
56 ```
57 cd build
58 ```
59 6. Run cmake
60 ```
61 cmake ../
62 ```
63 7. Run make to build GenKrnBin project
64 ```
65 make
66 ```
67 8. Get the output executable "GenKrnBin" in build folder
68
69 9. Chdir into "Tools/MediaDriverTools/KernelBinToSource"
70
71 10. Create build directory
72 ```
73 mkdir build
74 ```
75 11. Change into build directory
76
77 cd build
78
79 12. Run cmake
80 ```
81 cmake ../
82 ```
83 13. Run make to build KernelBinToSource project
84 ```
85 make
86 ```
87 14. Get the output executable "KernelBinToSource" in build folder
88
89 15. Chdir into "Tools/MediaDriverTools/KrnToHex_IGA"
90
91 16. Create build directory
92 ```
93 mkdir build
94 ```
95 17. Change into build directory
96 ```
97 cd build
98 ```
99 18. Run cmake
100 ```
101 cmake ../
102 ```
103 19. Run make to build KrnToHex_IGA project
104 ```
105 make
106 ```
107 20. Get the output executable "KrnToHex_IGA" in build folder
108
109
110 ## Step3: Building the kernel asm code to igvpkrn_g11_icllp.c and igvpkrn_g11_icllp.h
111
112 1. Download or clone Driver source code
113
114 https://github.com/intel/media-driver
115
116 2. Chdir into "./agnostic/gen11_icllp/vp/kernel"
117
118 3. Create compile directory
119 ```
120 mkdir compile
121 ```
122 4. Copy tool biniary (GenKrnBin, KernelBinToSource and KrnToHex_IGA) from step2 to compile folder
123
124 3. Create IGA directory
125 ```
126 mkdir IGA
127 ```
128 5. Copy tool biniary (iga64) from step1 to IGA folder
129
130 6. Chdir into "./agnostic/gen11_icllp/vp/kernel"
131
132 7. run build.py script to generate igvpkrn_g11_icllp.c and igvpkrn_g11_icllp.h