mesa: Add UsesDFdy to struct gl_fragment_program.
authorPaul Berry <stereotype441@gmail.com>
Wed, 20 Jun 2012 19:31:46 +0000 (12:31 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 19 Jul 2012 17:02:01 +0000 (10:02 -0700)
commit5e310e9f8300a357d6bdaf098c72098518b564f3
treea5401bf29409a10e66a9548899ab2487446e67e3
parent658a63e5d9777e4cf67e0a72848944bc11533cf8
mesa: Add UsesDFdy to struct gl_fragment_program.

The i965 back-end needs to compile dFdy() differently for FBOs and
window system framebuffers, because Y coordinates are flipped between
the two (see commit 82d2596: i965: Compute dFdy() correctly for FBOs).
This boolean will allow it to avoid unnecessarily recompiling shaders
that don't use dFdy().

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/mtypes.h
src/mesa/program/program.c