iris: Expose the disk cache to the state tracker as well.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 21 May 2019 19:06:02 +0000 (12:06 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 21 May 2019 22:05:38 +0000 (15:05 -0700)
commitfb1d08dcfd53cad8d933592c4515a9dc123376e3
tree5d7f483f703143ed572f86f5b0926a3e822c874b
parent601c9bc13581a060c3ec437bd8c2a4a7cbdc4998
iris: Expose the disk cache to the state tracker as well.

This lets st/nir cache the NIR for shaders, based on the shader source
string hash, allowing us to skip initial compiles altogether, and also
letting us start from there should we need to recompile for NOS.

Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
src/gallium/drivers/iris/iris_screen.c