i965: don't lower mod() in glsl ir
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 12 Apr 2016 11:55:21 +0000 (13:55 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Fri, 22 Apr 2016 11:44:28 +0000 (13:44 +0200)
NIR will lower it in nir_opt_algebraic.

No change in shader-db.

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_link.cpp

index bb7e1eb128cbc490a8373737d8ed8afae4b8dc05..ee62adaf93150bf34af9283c96ae8d4b24b123ea 100644 (file)
@@ -105,7 +105,6 @@ process_glsl_ir(gl_shader_stage stage,
    brw_lower_packing_builtins(brw, shader->Stage, shader->ir);
    do_mat_op_to_vec(shader->ir);
    lower_instructions(shader->ir,
-                      MOD_TO_FLOOR |
                       DIV_TO_MUL_RCP |
                       SUB_TO_ADD_NEG |
                       EXP_TO_EXP2 |