[Mesa-dev] [PATCH 10/10] i965: Make VS programs obey the shader_precompile driconf option.

Kenneth Graunke kenneth at whitecape.org
Sun Aug 26 12:50:14 PDT 2012


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>
---
 src/mesa/drivers/dri/i965/brw_shader.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
1.7.11.4



More information about the mesa-dev mailing list