glsl: Set UsesDFdy appropriately for GLSL shaders.
authorPaul Berry <stereotype441@gmail.com>
Wed, 20 Jun 2012 19:49:29 +0000 (12:49 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 19 Jul 2012 17:02:21 +0000 (10:02 -0700)
commitce1d2f08f9d08bd5d49b2072a94b3d85e3169fb5
tree3257de0c72c77ec5b3c6eeb485d3d480fb2f6bb2
parenta0f7b869592013b24a5bacf0ceb2bdb1e9146378
glsl: Set UsesDFdy appropriately for GLSL shaders.

This patch updates the ir_set_program_inouts_visitor so that it also
sets gl_fragment_program::UsesDFdy.

This is a bit of a hack (since dFdy() isn't an input or an output),
but there's no other obvious visitor to squeeze this functionality
into, and it would be silly to create a brand new visitor just for
this purpose.

v2: use local 'fprog' var to avoid repeated casting.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ir_set_program_inouts.cpp