Mesa (master): i965: Stop lowering integer division to multiply and reciprocal.

Kenneth Graunke kwg at kemper.freedesktop.org
Sun Oct 2 17:02:37 PDT 2011


Module: Mesa
Branch: master
Commit: 1165b64f561a7bdd3f603d9e30a2340774ba31ee
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1165b64f561a7bdd3f603d9e30a2340774ba31ee

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Wed Sep 28 17:37:57 2011 -0700

i965: Stop lowering integer division to multiply and reciprocal.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Tested-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>

---

 src/mesa/drivers/dri/i965/brw_shader.cpp |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp
index c938c75..974905d 100644
--- a/src/mesa/drivers/dri/i965/brw_shader.cpp
+++ b/src/mesa/drivers/dri/i965/brw_shader.cpp
@@ -100,7 +100,6 @@ brw_link_shader(struct gl_context *ctx, struct gl_shader_program *prog)
       lower_instructions(shader->ir,
 			 MOD_TO_FRACT |
 			 DIV_TO_MUL_RCP |
-			 INT_DIV_TO_MUL_RCP |
 			 SUB_TO_ADD_NEG |
 			 EXP_TO_EXP2 |
 			 LOG_TO_LOG2);



More information about the mesa-commit mailing list