=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Implement SM5 deriv_rty_coarse instruction.

Alexandre Julliard julliard at winehq.org
Mon Jul 25 10:02:29 CDT 2016


Module: wine
Branch: master
Commit: 9ace07c209b4b93e93ee02137338127b776c115a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9ace07c209b4b93e93ee02137338127b776c115a

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Fri Jul 22 12:28:19 2016 +0200

wined3d: Implement SM5 deriv_rty_coarse instruction.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/glsl_shader.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c
index 99523fa..ba3bf35 100644
--- a/dlls/wined3d/glsl_shader.c
+++ b/dlls/wined3d/glsl_shader.c
@@ -3579,6 +3579,7 @@ static void shader_glsl_derivative(const struct wined3d_shader_instruction *ins)
     switch (ins->handler_idx)
     {
         case WINED3DSIH_DSX_COARSE: instruction = "dFdxCoarse"; break;
+        case WINED3DSIH_DSY_COARSE: instruction = "ycorrection.y * dFdyCoarse"; break;
         default: ERR("Unhandled opcode %#x.\n", ins->handler_idx); return;
     }
 
@@ -8707,7 +8708,7 @@ static const SHADER_HANDLER shader_glsl_instruction_handler_table[WINED3DSIH_TAB
     /* WINED3DSIH_DSX_COARSE                       */ shader_glsl_derivative,
     /* WINED3DSIH_DSX_FINE                         */ NULL,
     /* WINED3DSIH_DSY                              */ shader_glsl_map2gl,
-    /* WINED3DSIH_DSY_COARSE                       */ NULL,
+    /* WINED3DSIH_DSY_COARSE                       */ shader_glsl_derivative,
     /* WINED3DSIH_DSY_FINE                         */ NULL,
     /* WINED3DSIH_ELSE                             */ shader_glsl_else,
     /* WINED3DSIH_EMIT                             */ shader_glsl_emit,




More information about the wine-cvs mailing list