diff options
author | Kenneth Graunke <[email protected]> | 2012-09-20 14:27:29 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2012-10-16 12:01:39 -0700 |
commit | 56705cd36bf48d5050ac9ec10d91fd097a577f42 (patch) | |
tree | 6929fbd4621b1c0c1b4e607ab76cb68f6d3e6b6b /src/mesa | |
parent | b2e0293213dcff24e26a4968a19262bfe7a781b9 (diff) |
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]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | 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 6ee41f2b63e..d40a3537670 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; |