Module: Mesa Branch: master Commit: 56705cd36bf48d5050ac9ec10d91fd097a577f42 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=56705cd36bf48d5050ac9ec10d91fd097a577f42
Author: Kenneth Graunke <[email protected]> Date: Thu Sep 20 14:27:29 2012 -0700 mesa: Don't flatten IF statements by default. MaxIfDepth of 0 means "flatten all the time", not "never flatten". This is only desirable on hardware that can't support control flow; software rasterization and most hardware drivers want this. This alters behavior for swrast as well as i915. Tested on i915. NOTE: This is a candidate for stable release branches. Reviewed-by: Ian Romanick <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]> --- src/mesa/main/shaderapi.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 6ee41f2..d40a353 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -105,6 +105,7 @@ _mesa_init_shader_state(struct gl_context *ctx) memset(&options, 0, sizeof(options)); options.MaxUnrollIterations = 32; + options.MaxIfDepth = UINT_MAX; /* Default pragma settings */ options.DefaultPragmas.Optimize = GL_TRUE; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
