meta: Don't save and restore fog state when there is no fog state
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 31 Aug 2012 22:26:27 +0000 (15:26 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 3 Sep 2012 17:33:54 +0000 (10:33 -0700)
commit51b069e7aa81cdc8f38db71554ae3dd12ce0a6c4
treea05b5c6a5969d6dd2ef164b7e66c94c903b24d4e
parent0b90da3252c03d13144f6876cf0b5d633f8e5828
meta: Don't save and restore fog state when there is no fog state

I wonder if the better solution is to have _mesa_meta_GenerateMipmap not
use MESA_META_ALL for the GLSL path.  Even on compatibility profiles
there is no reason to save and restore fog on this path.

NOTE: This is a candidate for the 9.0 branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Tested-by: Lu Hua <huax.lu@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=54295
src/mesa/drivers/common/meta.c