intel/compiler: add ability to override shader's assembly
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Thu, 23 May 2019 16:05:23 +0000 (19:05 +0300)
committerMatt Turner <mattst88@gmail.com>
Mon, 5 Aug 2019 17:19:09 +0000 (17:19 +0000)
commit04a995158084acbd1917b4c7e0f8d381e1c9222d
tree5e719246b49db173196dc71853dea02bf95fa986
parent430823c96b1ab9c5e99fedbf06856a2a24d36d91
intel/compiler: add ability to override shader's assembly

When dumping shader's assembly with INTEL_DEBUG=vs,tcs,...
sha1 of the resulting assembly is also printed, having environment
variable INTEL_SHADER_ASM_READ_PATH present driver will try to
load a "%sha1%.bin" file from the path and substitute current
assembly with the one from the file.

Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/intel/compiler/brw_eu.c
src/intel/compiler/brw_eu.h
src/intel/compiler/brw_fs_generator.cpp
src/intel/compiler/brw_vec4_generator.cpp