File: README

package info (click to toggle)
intel-gpu-tools 2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 63,360 kB
  • sloc: xml: 781,458; ansic: 360,567; python: 8,336; yacc: 2,781; perl: 1,196; sh: 1,177; lex: 487; asm: 227; lisp: 35; makefile: 30
file content (27 lines) | stat: -rw-r--r-- 1,029 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
This directory is for shaders used in media_fill, gpgpu_fill, rendercopy
and media_spin libraries.

Till Gen8 shaders were generated using intel-gen4asm script (implementation in
assembler/ directory). From Gen8 it is possible to use Intel Graphics Assembler
to generate binary from asm instructions.
https://github.com/intel/intel-graphics-compiler
    1. Clone IGC project
    2. Go to igc/visa/iga
    3. Build iga
        cmake . && make

For maintaining compatibility with our tests there is a bin to hex converter
written in python:
    $>converter.py input_file > output_file
e.g.$>python converter.py gen9_iga_output > gen9_hex_array

Commands used to generate the shader on gen7
$> m4 gpgpu_fill.gxa > gpgpu_fill.gxm
$> intel-gen4asm -g 7 -o <output> gpgpu_fill.gxm

Commands used to generate the shader on gen8
$> m4 media_fill.gxa > media_fill.gxm
$> intel-gen4asm -g 8 -o <output> media_fill.gxm

Gen11+ shader is generated using IGA (Intel Graphics Assembler).
Binary can no longer be generated using intel-gen4asm.