Commit 9ccaacf6 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Translate LOGP to LG2 in the ARB shader backend.

parent c2541a58
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment