i965: Move brw->precompile checks out a level.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 24 Nov 2014 07:08:10 +0000 (23:08 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 24 Nov 2014 23:30:09 +0000 (15:30 -0800)
commitd54925df9c9c024c06b7d54334d5e7a1035bcaf8
tree4810b9ee6067b95a453b89d12d9c44da280c8b99
parent880424b8ad33f075a5ba0edef2cfd88072cfb387
i965: Move brw->precompile checks out a level.

brw_shader_precompile should just do a precompile; it makes more sense
for the caller to decide whether we should do one.  Simpler.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_shader.cpp