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 <>
Reviewed-by: Sagar Ghuge <>
Reviewed-by: Matt Turner <>
13 jobs for !7 with feature/shader-asm-override in 16 minutes and 56 seconds (queued for 26 minutes and 17 seconds)
merge request