brintos

brintos / linux-shallow public Read only

0
0
Text · 1.6 KiB · e7e96d7 Raw
46 lines · plain
1ASM sources for auto generated shaders2======================================3 4The i915/gt/hsw_clear_kernel.c and i915/gt/ivb_clear_kernel.c files contain5pre-compiled batch chunks that will clear any residual render cache during6context switch.7 8They are generated from their respective platform ASM files present on9i915/gt/shaders/clear_kernel directory.10 11The generated .c files should never be modified directly. Instead, any modification12needs to be done on the on their respective ASM files and build instructions below13needes to be followed.14 15Building16========17 18Environment19-----------20 21IGT GPU tool scripts and the Mesa's i965 instruction assembler tool are used22on building.23 24Please make sure your Mesa tool is compiled with "-Dtools=intel" and25"-Ddri-drivers=i965", and run this script from IGT source root directory"26 27The instructions bellow assume:28    *  IGT gpu tools source code is located on your home directory (~) as ~/igt29    *  Mesa source code is located on your home directory (~) as ~/mesa30       and built under the ~/mesa/build directory31    *  Linux kernel source code is under your home directory (~) as ~/linux32 33Instructions34------------35 36~ $ cp ~/linux/drivers/gpu/drm/i915/gt/shaders/clear_kernel/ivb.asm \37       ~/igt/lib/i915/shaders/clear_kernel/ivb.asm38~ $ cd ~/igt39igt $ ./scripts/generate_clear_kernel.sh -g ivb \40      -m ~/mesa/build/src/intel/tools/i965_asm41 42~ $ cp ~/linux/drivers/gpu/drm/i915/gt/shaders/clear_kernel/hsw.asm \43    ~/igt/lib/i915/shaders/clear_kernel/hsw.asm44~ $ cd ~/igt45igt $ ./scripts/generate_clear_kernel.sh -g hsw \46      -m ~/mesa/build/src/intel/tools/i965_asm