From 9ccaacf60d7bc81abce72e813a959d55e326ab00 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20D=C3=B6singer?= Date: Thu, 27 Mar 2014 11:46:13 +0100 Subject: [PATCH] wined3d: Translate LOGP to LG2 in the ARB shader backend. --- dlls/wined3d/arb_program_shader.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c index 5a763323134..14e11dadf5f 100644 --- a/dlls/wined3d/arb_program_shader.c +++ b/dlls/wined3d/arb_program_shader.c @@ -2518,12 +2518,12 @@ static void shader_hw_scalar_op(const struct wined3d_shader_instruction *ins) case WINED3DSIH_EXP: instruction = "EX2"; break; case WINED3DSIH_EXPP: instruction = "EXP"; break; case WINED3DSIH_LOG: - src0_copy.modifiers = abs_modifier(src0_copy.modifiers, &need_abs); - instruction = "LG2"; - break; case WINED3DSIH_LOGP: + /* The precision requirements suggest that LOGP matches ARBvp's LOG + * instruction, but notice that the output of those instructions is + * different. */ src0_copy.modifiers = abs_modifier(src0_copy.modifiers, &need_abs); - instruction = "LOG"; + instruction = "LG2"; break; default: instruction = ""; FIXME("Unhandled opcode %#x\n", ins->handler_idx); -- 2.11.4.GIT