OSDN Git Service

i965/link: Serialize program to nir after linking for shader cache
authorJordan Justen <jordan.l.justen@intel.com>
Fri, 13 Oct 2017 20:07:50 +0000 (13:07 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Wed, 1 Nov 2017 06:36:54 +0000 (23:36 -0700)
commit0610a624a1286cec1b9a0a19be63f46aae518377
tree8ae26f0f7e20ff706b7b5bcf3fe323b90c5bfdac
parent6b815e405dc87d13233bf2ddbf44a3ba0b2bd3ac
i965/link: Serialize program to nir after linking for shader cache

If the shader cache is enabled, after linking the program, we
serialize the program to nir. This will be saved out by the glsl
shader cache support.

Later, if the same program is found in the cache, we can use the nir
for a fallback in the unlikely case that the gen binary program is not
found in the cache.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_link.cpp