glsl: Restore the IsES flag on the shader when reading from cache.
authorEric Anholt <eric@anholt.net>
Tue, 17 Mar 2020 19:45:46 +0000 (12:45 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 23 Mar 2020 03:49:37 +0000 (20:49 -0700)
commit050ec8ff5344b730c521d07d55aa146eb36185ad
tree69b90689692e04137ba74743d389fd22e8701c46
parent9e3efa429442ef4529843b9e7267d0d117ffa15b
glsl: Restore the IsES flag on the shader when reading from cache.

I found that when trying to MESA_SHADER_CAPTURE_PATH a trace, I was
getting "GLSL >= 3.00" for the ES shaders I was trying to capture.
Keeping this metadata in the cached shader program lets us capture
correctly.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4219>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4219>
src/compiler/glsl/serialize.cpp