glsl: Serialize three additional hash tables with program metadata
authorCarl Worth <cworth@cworth.org>
Thu, 13 Nov 2014 07:57:15 +0000 (23:57 -0800)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 17 Feb 2017 00:18:42 +0000 (11:18 +1100)
commita01973a78450573ab5bc66bbabd2bcd50a783a8e
tree4fb3871ab44a8659afc0fd15325c98584b929d2e
parente5bb4a0b0f4743fa0a0567991dca751ef49a7200
glsl: Serialize three additional hash tables with program metadata

The three additional tables are AttributeBindings, FragDataBindings,
and FragDataIndexBindings.

The first table (AttributeBindings) was identified as missing by
trying to test the shader cache with a program that called
glGetAttribLocation.

Many thanks to Tapani Pälli <tapani.palli@intel.com>, as it was review
of related work that he had done previously that pointed me to the
necessity to also save and restore FragDataBindings and
FragDataIndexBindings.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/compiler/glsl/shader_cache.cpp