glsl: don't skip GLSL IR opts on first-time compiles
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 17 Jan 2019 06:16:28 +0000 (17:16 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 18 Jan 2019 21:24:43 +0000 (08:24 +1100)
commitc9d7b0f18425f7c5acabb7cec6b877d5ee112543
tree2e4f1db8fc520dae6909248243a34e167d4ac2dc
parentcd56d79b59f367ef0c52d76fc5d37ecc87d0e84b
glsl: don't skip GLSL IR opts on first-time compiles

This basically reverts c2bc0aa7b188.

By running the opts we reduce  memory using in Team Fortress 2
from 1.5GB -> 1.3GB from start-up to game menu.

This will likely increase Deus Ex start up times as per commit
c2bc0aa7b188. However currently 32bit games like Team Fortress 2
can run out of memory on low memory systems, so that seems more
important.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/compiler/glsl/glsl_parser_extras.cpp
src/compiler/glsl/shader_cache.cpp
src/mesa/main/mtypes.h