Re: [Mesa-dev] [PATCH 1/2] glsl/serialize: Save shader program metadata sha1

2018-03-12 Thread Timothy Arceri
Reviewed-by: Timothy Arceri On 12/03/18 11:25, Jordan Justen wrote: When the shader cache is used, this can be generated. In fact, the shader cache uses this sha1 to lookup the serialized GL shader program. If a GL shader program is restored with ProgramBinary, the

[Mesa-dev] [PATCH 1/2] glsl/serialize: Save shader program metadata sha1

2018-03-11 Thread Jordan Justen
When the shader cache is used, this can be generated. In fact, the shader cache uses this sha1 to lookup the serialized GL shader program. If a GL shader program is restored with ProgramBinary, the shaders are not available, and therefore the correct sha1 cannot be generated. If this is restored,