From: Kenneth Graunke Date: Sun, 26 Aug 2012 19:17:29 +0000 (-0700) Subject: i965: Make VS programs obey the shader_precompile driconf option. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=77d675926a5a5b6cfafe11d1b692e0ba93fdac85;p=mesa.git i965: Make VS programs obey the shader_precompile driconf option. Now that it's on by default, we may as well make it obey the flag, for consistency's sake if nothing else. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp index 77e93920713..1b509c05a80 100644 --- a/src/mesa/drivers/dri/i965/brw_shader.cpp +++ b/src/mesa/drivers/dri/i965/brw_shader.cpp @@ -70,7 +70,7 @@ brw_shader_precompile(struct gl_context *ctx, struct gl_shader_program *prog) if (brw->precompile && !brw_fs_precompile(ctx, prog)) return false; - if (!brw_vs_precompile(ctx, prog)) + if (brw->precompile && !brw_vs_precompile(ctx, prog)) return false; return true;