mesa: Don't flatten IF statements by default.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 20 Sep 2012 21:27:29 +0000 (14:27 -0700)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Sun, 20 Jan 2013 14:08:26 +0000 (15:08 +0100)
commitb63f8f7906e4bc8a074cee8dbdbcb1c66e90448f
treeb9e1a15d6f45f17e2410ebb2f634c48907a13da7
parent1b9436fb1a27871dcd9f15ad48935b670374be6e
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>
(cherry picked from commit 56705cd36bf48d5050ac9ec10d91fd097a577f42)
src/mesa/main/shaderapi.c