diff options
author | Chris Forbes <chrisf@ijw.co.nz> | 2014-08-14 21:03:53 +1200 |
---|---|---|
committer | Chris Forbes <chrisf@ijw.co.nz> | 2014-08-15 18:03:53 +1200 |
commit | eba0c54f6229868339ec80f799a6b7b9fb6a05ec (patch) | |
tree | cdb82c50108b0a5dbdaaa1db628c030ed2fb07c1 /src/glsl | |
parent | f08d7b8fe1e6689beb750d7654af4db228aef392 (diff) | |
download | mesa-eba0c54f6229868339ec80f799a6b7b9fb6a05ec.tar.gz mesa-eba0c54f6229868339ec80f799a6b7b9fb6a05ec.tar.bz2 mesa-eba0c54f6229868339ec80f799a6b7b9fb6a05ec.zip |
glsl: Mark program as using dFdy if coarse/fine variant is used
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/ir_set_program_inouts.cpp | 4 |
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; } |