From d024eb6fabecab0e270af2c30d0c2eb192ad5312 Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Tue, 31 May 2022 13:33:14 -0700 Subject: [PATCH] glsl: Remove stale lower_instructions comments. Should have been in 3a42e92a4f2f ("glsl: Drop the dead MOD_TO_FLOOR path.") Reviewed-by: Alyssa Rosenzweig Reviewed-by: Timothy Arceri Reviewed-by: Erik Faye-Lund Part-of: --- src/compiler/glsl/lower_instructions.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/compiler/glsl/lower_instructions.cpp b/src/compiler/glsl/lower_instructions.cpp index 4c935431a96..46f60b92e70 100644 --- a/src/compiler/glsl/lower_instructions.cpp +++ b/src/compiler/glsl/lower_instructions.cpp @@ -72,13 +72,6 @@ * do have base 2 versions, so this pass converts exp and log to exp2 * and log2 operations. * - * Many GPUs don't have a MOD instruction (945 and 965 included), and - * if we have to break it down like this anyway, it gives an - * opportunity to do things like constant fold the (1.0 / op1) easily. - * - * Note: before we used to implement this as op1 * fract(op / op1) but this - * implementation had significant precision errors. - * * LDEXP_TO_ARITH: * ------------- * Converts ir_binop_ldexp to arithmetic and bit operations for float sources.