aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris Forbes <[email protected]>2014-08-14 21:03:53 +1200
committerChris Forbes <[email protected]>2014-08-15 18:03:53 +1200
commiteba0c54f6229868339ec80f799a6b7b9fb6a05ec (patch)
treecdb82c50108b0a5dbdaaa1db628c030ed2fb07c1 /src
parentf08d7b8fe1e6689beb750d7654af4db228aef392 (diff)
glsl: Mark program as using dFdy if coarse/fine variant is used
Signed-off-by: Chris Forbes <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/glsl/ir_set_program_inouts.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/glsl/ir_set_program_inouts.cpp b/src/glsl/ir_set_program_inouts.cpp
index 5163eb215df..97ead750aee 100644
--- a/src/glsl/ir_set_program_inouts.cpp
+++ b/src/glsl/ir_set_program_inouts.cpp
@@ -306,7 +306,9 @@ ir_visitor_status
ir_set_program_inouts_visitor::visit_enter(ir_expression *ir)
{
if (this->shader_stage == MESA_SHADER_FRAGMENT &&
- ir->operation == ir_unop_dFdy) {
+ (ir->operation == ir_unop_dFdy ||
+ ir->operation == ir_unop_dFdy_coarse ||
+ ir->operation == ir_unop_dFdy_fine)) {
gl_fragment_program *fprog = (gl_fragment_program *) prog;
fprog->UsesDFdy = true;
}