diff options
| author | Katarzyna Dec <katarzyna.dec@intel.com> | 2018-10-03 15:48:40 +0200 |
|---|---|---|
| committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2018-10-04 10:34:20 +0300 |
| commit | bba38422e7f903094562f1b78cc3579683c0a667 (patch) | |
| tree | 7fd83bb1e48a22c69a19d8c170e841f9d786bd62 /lib/i915/shaders/README | |
| parent | 1bc6ea2488c8f1c460565f9795938e09f613d8d4 (diff) | |
lib/i915: Move shaders directory
In shaders/ directory we got Intel specific information. As igt
is a project for more vendors, let's move this directory to
lib/i915.
v2: Changed shaders directory path in library files comments.
Signed-off-by: Katarzyna Dec <katarzyna.dec@intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Cc: Petri Latvala <petri.latvala@intel.com>
Cc: Kalamarz Lukasz <lukasz.kalamarz@intel.com>
Cc: Antonio Argenziano <antonio.argenziano@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/i915/shaders/README')
| -rw-r--r-- | lib/i915/shaders/README | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/i915/shaders/README b/lib/i915/shaders/README new file mode 100644 index 00000000..06b9883c --- /dev/null +++ b/lib/i915/shaders/README @@ -0,0 +1,25 @@ +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 + |
