i965: add cache fallback support using serialized nir
authorJordan Justen <jordan.l.justen@intel.com>
Thu, 19 Oct 2017 02:25:48 +0000 (19:25 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Wed, 1 Nov 2017 06:36:54 +0000 (23:36 -0700)
commitc3a8ae105ca4c6abdd967bd569b9605967cfcf25
tree550864eabd93d8c66388f4de39394b1470561731
parenta4078b819f648fb8e2b6dde8f6017f46a38c54f2
i965: add cache fallback support using serialized nir

If the i965 gen program cannot be loaded from the cache, then we
fallback to using a serialized nir program.

This is based on "i965: add cache fallback support" by Timothy Arceri
<timothy.arceri@collabora.com>. Tim's version was written to fallback
to compiling from source, and therefore had to be much more complex.
After Connor and Jason implemented nir serialization, I was able to
rewrite and greatly simplify this patch.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Acked-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_disk_cache.c