Mesa (master): i965: Make VS programs obey the shader_precompile driconf option.
Kenneth Graunke
kwg at kemper.freedesktop.org
Mon Aug 27 21:24:59 UTC 2012
Module: Mesa
Branch: master
Commit: 77d675926a5a5b6cfafe11d1b692e0ba93fdac85
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=77d675926a5a5b6cfafe11d1b692e0ba93fdac85
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Sun Aug 26 12:17:29 2012 -0700
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 <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
---
src/mesa/drivers/dri/i965/brw_shader.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp
index 77e9392..1b509c0 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;
More information about the mesa-commit
mailing list