st/glsl_to_tgsi: make use of driver_cache_blob with the disk cache
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 27 Nov 2017 05:25:11 +0000 (16:25 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 27 Nov 2017 22:01:44 +0000 (09:01 +1100)
commit3e789026cae21e56d07e21773bd6b34f32e31b4d
treef14929958d6288ef254d5123820b9ec89eaf99cb
parent4cb27047c8576ccfffa83be04a8b93e5aaa7f4ec
st/glsl_to_tgsi: make use of driver_cache_blob with the disk cache

driver_cache_blob was introduced with the i965 disk cache, it allows
us to simplify the cache a little and possibly offers some minor
speed improvements since we load the GLSL metadata and TGSI from
disk in one pass.

Using driver_cache_blob should also make it straight forward to
implement binary support for ARB_get_program_binary in gallium.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/compiler/glsl/shader_cache.cpp
src/mesa/main/mtypes.h
src/mesa/state_tracker/st_program.h
src/mesa/state_tracker/st_shader_cache.c