wined3d: Recognize SM4 umul opcode.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2017-03-10 09:10:55 +01:00 committed by Alexandre Julliard
parent 72deec5295
commit 5f4e49dea6
5 changed files with 6 additions and 0 deletions

View File

@ -5246,6 +5246,7 @@ static const SHADER_HANDLER shader_arb_instruction_handler_table[WINED3DSIH_TABL
/* WINED3DSIH_ULT */ NULL,
/* WINED3DSIH_UMAX */ NULL,
/* WINED3DSIH_UMIN */ NULL,
/* WINED3DSIH_UMUL */ NULL,
/* WINED3DSIH_USHR */ NULL,
/* WINED3DSIH_UTOF */ NULL,
/* WINED3DSIH_XOR */ NULL,

View File

@ -9829,6 +9829,7 @@ static const SHADER_HANDLER shader_glsl_instruction_handler_table[WINED3DSIH_TAB
/* WINED3DSIH_ULT */ shader_glsl_relop,
/* WINED3DSIH_UMAX */ shader_glsl_map2gl,
/* WINED3DSIH_UMIN */ shader_glsl_map2gl,
/* WINED3DSIH_UMUL */ NULL,
/* WINED3DSIH_USHR */ shader_glsl_binop,
/* WINED3DSIH_UTOF */ shader_glsl_to_float,
/* WINED3DSIH_XOR */ shader_glsl_binop,

View File

@ -266,6 +266,7 @@ static const char * const shader_opcode_names[] =
/* WINED3DSIH_ULT */ "ult",
/* WINED3DSIH_UMAX */ "umax",
/* WINED3DSIH_UMIN */ "umin",
/* WINED3DSIH_UMUL */ "umul",
/* WINED3DSIH_USHR */ "ushr",
/* WINED3DSIH_UTOF */ "utof",
/* WINED3DSIH_XOR */ "xor",

View File

@ -191,6 +191,7 @@ enum wined3d_sm4_opcode
WINED3D_SM4_OP_UDIV = 0x4e,
WINED3D_SM4_OP_ULT = 0x4f,
WINED3D_SM4_OP_UGE = 0x50,
WINED3D_SM4_OP_UMUL = 0x51,
WINED3D_SM4_OP_UMAX = 0x53,
WINED3D_SM4_OP_UMIN = 0x54,
WINED3D_SM4_OP_USHR = 0x55,
@ -896,6 +897,7 @@ static const struct wined3d_sm4_opcode_info opcode_table[] =
{WINED3D_SM4_OP_UDIV, WINED3DSIH_UDIV, "uu", "uu"},
{WINED3D_SM4_OP_ULT, WINED3DSIH_ULT, "u", "uu"},
{WINED3D_SM4_OP_UGE, WINED3DSIH_UGE, "u", "uu"},
{WINED3D_SM4_OP_UMUL, WINED3DSIH_UMUL, "uu", "uu"},
{WINED3D_SM4_OP_UMAX, WINED3DSIH_UMAX, "u", "uu"},
{WINED3D_SM4_OP_UMIN, WINED3DSIH_UMIN, "u", "uu"},
{WINED3D_SM4_OP_USHR, WINED3DSIH_USHR, "u", "uu"},

View File

@ -883,6 +883,7 @@ enum WINED3D_SHADER_INSTRUCTION_HANDLER
WINED3DSIH_ULT,
WINED3DSIH_UMAX,
WINED3DSIH_UMIN,
WINED3DSIH_UMUL,
WINED3DSIH_USHR,
WINED3DSIH_UTOF,
WINED3DSIH_XOR,