From: Chris Forbes Date: Thu, 14 Aug 2014 09:03:53 +0000 (+1200) Subject: glsl: Mark program as using dFdy if coarse/fine variant is used X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eba0c54f6229868339ec80f799a6b7b9fb6a05ec;p=mesa.git glsl: Mark program as using dFdy if coarse/fine variant is used Signed-off-by: Chris Forbes Reviewed-by: Matt Turner --- 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; }