mesa: move variable declaration to where its used
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 26 Jan 2017 13:18:41 +0000 (13:18 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 27 Jan 2017 17:56:57 +0000 (17:56 +0000)
commit6a5850b04a86c2287112047c6cad500136d18df5
tree816cd09e48698796922088d80b9d9ec6ba14f8dc
parent01874d52783f043497b223934d73e8cb48ca0627
mesa: move variable declaration to where its used

The variable replacement was unused when building w/o
ENABLE_SHADER_CACHE. Since we can mix variable declarations and code,
move it to where its used.

Fixes: 9f8dc3bf03e "utils: build sha1/disk cache only with
Android/Autoconf"
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/main/shaderapi.c