Mesa (master): radeonsi: Handle TGSI DIV opcode.
Michel Dänzer
daenzer at kemper.freedesktop.org
Thu Aug 2 16:39:42 UTC 2012
Module: Mesa
Branch: master
Commit: 93b4f1f97ea961f09218c9cf7d928e499f267f58
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=93b4f1f97ea961f09218c9cf7d928e499f267f58
Author: Michel Dänzer <michel.daenzer at amd.com>
Date: Thu Aug 2 17:30:44 2012 +0200
radeonsi: Handle TGSI DIV opcode.
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
---
src/gallium/drivers/radeon/SIInstructions.td | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/radeon/SIInstructions.td b/src/gallium/drivers/radeon/SIInstructions.td
index 94748b6..31b9e5e 100644
--- a/src/gallium/drivers/radeon/SIInstructions.td
+++ b/src/gallium/drivers/radeon/SIInstructions.td
@@ -1088,6 +1088,11 @@ def : Pat <
/* XXX: We are using IEEE MUL, not the 0 * anything = 0 MUL, is this correct? */
def : POW_Common <V_LOG_F32_e32, V_EXP_F32_e32, V_MUL_F32_e32, VReg_32>;
+def : Pat <
+ (int_AMDGPU_div AllReg_32:$src0, AllReg_32:$src1),
+ (V_MUL_LEGACY_F32_e32 AllReg_32:$src0, (V_RCP_LEGACY_F32_e32 AllReg_32:$src1))
+>;
+
/********** ================== **********/
/********** VOP3 Patterns **********/
/********** ================== **********/
More information about the mesa-commit
mailing list