[PATCH 2/5] wined3d: Recognize the SM4 deriv_rtx opcode.

Henri Verbeet hverbeet at codeweavers.com
Thu Nov 17 13:11:38 CST 2011


---
 dlls/wined3d/shader_sm4.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/shader_sm4.c b/dlls/wined3d/shader_sm4.c
index f6c3ec1..25c5148 100644
--- a/dlls/wined3d/shader_sm4.c
+++ b/dlls/wined3d/shader_sm4.c
@@ -57,6 +57,7 @@ enum wined3d_sm4_opcode
     WINED3D_SM4_OP_BREAK        = 0x02,
     WINED3D_SM4_OP_BREAKC       = 0x03,
     WINED3D_SM4_OP_CUT          = 0x09,
+    WINED3D_SM4_OP_DERIV_RTX    = 0x0b,
     WINED3D_SM4_OP_DIV          = 0x0e,
     WINED3D_SM4_OP_DP3          = 0x10,
     WINED3D_SM4_OP_DP4          = 0x11,
@@ -138,6 +139,7 @@ static const struct wined3d_sm4_opcode_info opcode_table[] =
     {WINED3D_SM4_OP_BREAK,      WINED3DSIH_BREAK,       0,  0},
     {WINED3D_SM4_OP_BREAKC,     WINED3DSIH_BREAKP,      0,  1},
     {WINED3D_SM4_OP_CUT,        WINED3DSIH_CUT,         0,  0},
+    {WINED3D_SM4_OP_DERIV_RTX,  WINED3DSIH_DSX,         1,  1},
     {WINED3D_SM4_OP_DIV,        WINED3DSIH_DIV,         1,  2},
     {WINED3D_SM4_OP_DP3,        WINED3DSIH_DP3,         1,  2},
     {WINED3D_SM4_OP_DP4,        WINED3DSIH_DP4,         1,  2},
-- 
1.7.3.4




More information about the wine-patches mailing list