OSDN Git Service

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, 3 Feb 2017 11:08:56 +0000 (11:08 +0000)
commit1e03b5e5660b4deea16121e5da35d0d1a5aa755e
tree628830c329129959effc294a25f9b39574e1208b
parent58952675f6d4e6c5f11d9d481e9ab09391be12bc
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>
(cherry picked from commit 6a5850b04a86c2287112047c6cad500136d18df5)
src/mesa/main/shaderapi.c