disk_cache: Fix issue reading GLSL metadata
authorJordan Justen <jordan.l.justen@intel.com>
Sat, 14 Oct 2017 05:04:52 +0000 (22:04 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Wed, 1 Nov 2017 06:36:54 +0000 (23:36 -0700)
commite5b141634cff3aa1f68699f39a2c3794261a32b1
treef343c683cdc6d55847d17bc301babb5d55b3baf2
parente6ecd7d73fdbbca45ed398185eee2823e381d472
disk_cache: Fix issue reading GLSL metadata

This would cause the read of the metadata content to fail, which would
prevent the linking from being skipped.

Seen on Rocket League with i965 shader cache.

Fixes: b86ecea3446e "util/disk_cache: write cache item metadata to disk"
Cc: Timothy Arceri <tarceri@itsqueeze.com>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/util/disk_cache.c