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

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jan 28 10:06:46 CST 2016


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

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Wed Jan 27 23:43:43 2016 +0100

wined3d: Implement SM4 round_pi 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 697f5e9..a51032f 100644
--- a/dlls/wined3d/glsl_shader.c
+++ b/dlls/wined3d/glsl_shader.c
@@ -3260,6 +3260,7 @@ static void shader_glsl_map2gl(const struct wined3d_shader_instruction *ins)
         case WINED3DSIH_MAX: instruction = "max"; break;
         case WINED3DSIH_MIN: instruction = "min"; break;
         case WINED3DSIH_ROUND_NI: instruction = "floor"; break;
+        case WINED3DSIH_ROUND_PI: instruction = "ceil"; break;
         case WINED3DSIH_SQRT: instruction = "sqrt"; break;
         default: instruction = "";
             FIXME("Opcode %s not yet handled in GLSL.\n", debug_d3dshaderinstructionhandler(ins->handler_idx));
@@ -8074,7 +8075,7 @@ static const SHADER_HANDLER shader_glsl_instruction_handler_table[WINED3DSIH_TAB
     /* WINED3DSIH_RESINFO               */ shader_glsl_resinfo,
     /* WINED3DSIH_RET                   */ shader_glsl_ret,
     /* WINED3DSIH_ROUND_NI              */ shader_glsl_map2gl,
-    /* WINED3DSIH_ROUND_PI              */ NULL,
+    /* WINED3DSIH_ROUND_PI              */ shader_glsl_map2gl,
     /* WINED3DSIH_ROUND_Z               */ NULL,
     /* WINED3DSIH_RSQ                   */ shader_glsl_scalar_op,
     /* WINED3DSIH_SAMPLE                */ shader_glsl_sample,




More information about the wine-cvs mailing list