0001 ASM sources for auto generated shaders
0002 ======================================
0003
0004 The i915/gt/hsw_clear_kernel.c and i915/gt/ivb_clear_kernel.c files contain
0005 pre-compiled batch chunks that will clear any residual render cache during
0006 context switch.
0007
0008 They are generated from their respective platform ASM files present on
0009 i915/gt/shaders/clear_kernel directory.
0010
0011 The generated .c files should never be modified directly. Instead, any modification
0012 needs to be done on the on their respective ASM files and build instructions below
0013 needes to be followed.
0014
0015 Building
0016 ========
0017
0018 Environment
0019 -----------
0020
0021 IGT GPU tool scripts and the Mesa's i965 instruction assembler tool are used
0022 on building.
0023
0024 Please make sure your Mesa tool is compiled with "-Dtools=intel" and
0025 "-Ddri-drivers=i965", and run this script from IGT source root directory"
0026
0027 The instructions bellow assume:
0028 * IGT gpu tools source code is located on your home directory (~) as ~/igt
0029 * Mesa source code is located on your home directory (~) as ~/mesa
0030 and built under the ~/mesa/build directory
0031 * Linux kernel source code is under your home directory (~) as ~/linux
0032
0033 Instructions
0034 ------------
0035
0036 ~ $ cp ~/linux/drivers/gpu/drm/i915/gt/shaders/clear_kernel/ivb.asm \
0037 ~/igt/lib/i915/shaders/clear_kernel/ivb.asm
0038 ~ $ cd ~/igt
0039 igt $ ./scripts/generate_clear_kernel.sh -g ivb \
0040 -m ~/mesa/build/src/intel/tools/i965_asm
0041
0042 ~ $ cp ~/linux/drivers/gpu/drm/i915/gt/shaders/clear_kernel/hsw.asm \
0043 ~/igt/lib/i915/shaders/clear_kernel/hsw.asm
0044 ~ $ cd ~/igt
0045 igt $ ./scripts/generate_clear_kernel.sh -g hsw \
0046 -m ~/mesa/build/src/intel/tools/i965_asm