Commit ab4232c4 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Implement SM5 deriv_rtx_fine instruction.

parent 9ace07c2
...@@ -3579,6 +3579,7 @@ static void shader_glsl_derivative(const struct wined3d_shader_instruction *ins) ...@@ -3579,6 +3579,7 @@ static void shader_glsl_derivative(const struct wined3d_shader_instruction *ins)
switch (ins->handler_idx) switch (ins->handler_idx)
{ {
case WINED3DSIH_DSX_COARSE: instruction = "dFdxCoarse"; break; case WINED3DSIH_DSX_COARSE: instruction = "dFdxCoarse"; break;
case WINED3DSIH_DSX_FINE: instruction = "dFdxFine"; break;
case WINED3DSIH_DSY_COARSE: instruction = "ycorrection.y * dFdyCoarse"; break; case WINED3DSIH_DSY_COARSE: instruction = "ycorrection.y * dFdyCoarse"; break;
default: ERR("Unhandled opcode %#x.\n", ins->handler_idx); return; default: ERR("Unhandled opcode %#x.\n", ins->handler_idx); return;
} }
...@@ -8706,7 +8707,7 @@ static const SHADER_HANDLER shader_glsl_instruction_handler_table[WINED3DSIH_TAB ...@@ -8706,7 +8707,7 @@ static const SHADER_HANDLER shader_glsl_instruction_handler_table[WINED3DSIH_TAB
/* WINED3DSIH_DST */ shader_glsl_dst, /* WINED3DSIH_DST */ shader_glsl_dst,
/* WINED3DSIH_DSX */ shader_glsl_map2gl, /* WINED3DSIH_DSX */ shader_glsl_map2gl,
/* WINED3DSIH_DSX_COARSE */ shader_glsl_derivative, /* WINED3DSIH_DSX_COARSE */ shader_glsl_derivative,
/* WINED3DSIH_DSX_FINE */ NULL, /* WINED3DSIH_DSX_FINE */ shader_glsl_derivative,
/* WINED3DSIH_DSY */ shader_glsl_map2gl, /* WINED3DSIH_DSY */ shader_glsl_map2gl,
/* WINED3DSIH_DSY_COARSE */ shader_glsl_derivative, /* WINED3DSIH_DSY_COARSE */ shader_glsl_derivative,
/* WINED3DSIH_DSY_FINE */ NULL, /* WINED3DSIH_DSY_FINE */ NULL,
......
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