From: Samuel Iglesias Gonsálvez Date: Tue, 12 Apr 2016 11:55:21 +0000 (+0200) Subject: i965: don't lower mod() in glsl ir X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f70cacc4bd6ee713c02c6634d5c97379b96c9c2a;p=mesa.git i965: don't lower mod() in glsl ir NIR will lower it in nir_opt_algebraic. No change in shader-db. Signed-off-by: Samuel Iglesias Gonsálvez Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_link.cpp b/src/mesa/drivers/dri/i965/brw_link.cpp index bb7e1eb128c..ee62adaf931 100644 --- a/src/mesa/drivers/dri/i965/brw_link.cpp +++ b/src/mesa/drivers/dri/i965/brw_link.cpp @@ -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 |