mesa: Don't flatten IF statements by default.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 20 Sep 2012 21:27:29 +0000 (14:27 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 16 Oct 2012 19:01:39 +0000 (12:01 -0700)
commit56705cd36bf48d5050ac9ec10d91fd097a577f42
tree6929fbd4621b1c0c1b4e607ab76cb68f6d3e6b6b
parentb2e0293213dcff24e26a4968a19262bfe7a781b9
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 <ian.d.romanick@intel.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/shaderapi.c