=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: wined3d: Handle RCP in shader_hw_scalar_op.
Alexandre Julliard
julliard at winehq.org
Thu Mar 27 14:40:06 CDT 2014
Module: wine
Branch: master
Commit: c2541a588781e8e7d2b494e55285fd3809dba916
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c2541a588781e8e7d2b494e55285fd3809dba916
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Thu Mar 27 11:46:12 2014 +0100
wined3d: Handle RCP in shader_hw_scalar_op.
---
dlls/wined3d/arb_program_shader.c | 22 +---------------------
1 file changed, 1 insertion(+), 21 deletions(-)
diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c
index 0a669df..5a76332 100644
--- a/dlls/wined3d/arb_program_shader.c
+++ b/dlls/wined3d/arb_program_shader.c
@@ -2477,26 +2477,6 @@ static void shader_hw_mnxn(const struct wined3d_shader_instruction *ins)
}
}
-static void shader_hw_rcp(const struct wined3d_shader_instruction *ins)
-{
- struct wined3d_shader_buffer *buffer = ins->ctx->buffer;
-
- char dst[50];
- char src[50];
-
- shader_arb_get_dst_param(ins, &ins->dst[0], dst); /* Destination */
- shader_arb_get_src_param(ins, &ins->src[0], 0, src);
- if (ins->src[0].swizzle == WINED3DSP_NOSWIZZLE)
- {
- /* Dx sdk says .x is used if no swizzle is given, but our test shows that
- * .w is used
- */
- strcat(src, ".w");
- }
-
- shader_addline(buffer, "RCP%s %s, %s;\n", shader_arb_get_modifier(ins), dst, src);
-}
-
static DWORD abs_modifier(DWORD mod, BOOL *need_abs)
{
*need_abs = FALSE;
@@ -5251,7 +5231,7 @@ static const SHADER_HANDLER shader_arb_instruction_handler_table[WINED3DSIH_TABL
/* WINED3DSIH_NRM */ shader_hw_nrm,
/* WINED3DSIH_PHASE */ shader_hw_nop,
/* WINED3DSIH_POW */ shader_hw_pow,
- /* WINED3DSIH_RCP */ shader_hw_rcp,
+ /* WINED3DSIH_RCP */ shader_hw_scalar_op,
/* WINED3DSIH_REP */ shader_hw_rep,
/* WINED3DSIH_RET */ shader_hw_ret,
/* WINED3DSIH_ROUND_NI */ NULL,
More information about the wine-cvs
mailing list