glsl: add cache to ctx and add sha1 string fields
authorCarl Worth <cworth@cworth.org>
Thu, 14 Apr 2016 01:04:23 +0000 (11:04 +1000)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Mon, 30 Jan 2017 22:51:30 +0000 (09:51 +1100)
commitba1eb854bdb054714c5e98140c5697ed9b894c42
tree6c5afa6edff4b3344d4152a884fc941759b0704d
parentb8cb1a05cdf8a5dc7377d8a0c8d0ef5a655126cc
glsl: add cache to ctx and add sha1 string fields

We also add a flag for detecting shaders written to shader cache.

V2: dont leak cache

Signed-off-by: Timothy Arceri <timothy.arceri@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/context.c
src/mesa/main/mtypes.h