• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

gpgpu/23-Nov-2023-6254

media/23-Nov-2023-175140

ps/23-Nov-2023-118100

READMED23-Nov-2023909 2620

converter.pyD23-Nov-2023767 2721

README

1This directory is for shaders used in media_fill, gpgpu_fill, rendercopy
2and media_spin libraries.
3
4Till Gen8 shaders were generated using intel-gen4asm script (implementation in
5assembler/ directory). From Gen8 it is possible to use Intel Graphics Assembler
6to generate binary from asm instructions.
7https://github.com/intel/intel-graphics-compiler
8    1. Clone IGC project
9    2. Go to igc/visa/iga
10    3. Build iga
11        cmake . && make
12
13For maintaining compatibility with our tests there is a bin to hex converter
14written in python:
15    $>converter.py input_file > output_file
16e.g.$>python converter.py gen9_iga_output > gen9_hex_array
17
18Commands used to generate the shader on gen7
19$> m4 gpgpu_fill.gxa > gpgpu_fill.gxm
20$> intel-gen4asm -g 7 -o <output> gpgpu_fill.gxm
21
22Commands used to generate the shader on gen8
23$> m4 media_fill.gxa > media_fill.gxm
24$> intel-gen4asm -g 8 -o <output> media_fill.gxm
25
26