radeonsi: add support for an on-disk shader cache
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 24 Jan 2017 16:08:22 +0000 (17:08 +0100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 3 Mar 2017 01:09:08 +0000 (12:09 +1100)
commit60848555289d2e757aff2f6c53d40c23d46c4489
tree2d6ce666dc5702bde62bb2536c38513693b2ab79
parent85a9b1b562b6a73b9494b3fad25172da3dc90fc2
radeonsi: add support for an on-disk shader cache

V2:
- when loading from disk cache also binary insert into memory cache.
- check that the binary loaded from disk is the correct size. If not
  delete the cache item and skip loading from cache.

V3:
- remove unrequired variable

Reviewed-by: Grigori Goronzy <greg@chown.ath.cx>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_state_shaders.c