Henri Verbeet : wined3d: Implement WINED3DSIH_XOR in the GLSL shader backend.

Alexandre Julliard julliard at winehq.org
Thu Oct 11 15:25:15 CDT 2012


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Oct 10 22:22:16 2012 +0200

wined3d: Implement WINED3DSIH_XOR in the GLSL shader backend.

---

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

diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c
index 0c5ceb6..52298fa 100644
--- a/dlls/wined3d/glsl_shader.c
+++ b/dlls/wined3d/glsl_shader.c
@@ -2205,6 +2205,7 @@ static void shader_glsl_binop(const struct wined3d_shader_instruction *ins)
         case WINED3DSIH_IADD: op = '+'; break;
         case WINED3DSIH_MUL: op = '*'; break;
         case WINED3DSIH_SUB: op = '-'; break;
+        case WINED3DSIH_XOR: op = '^'; break;
         default:
             op = ' ';
             FIXME("Opcode %#x not yet handled in GLSL\n", ins->handler_idx);
@@ -5299,7 +5300,7 @@ static const SHADER_HANDLER shader_glsl_instruction_handler_table[WINED3DSIH_TAB
     /* WINED3DSIH_UDIV                  */ NULL,
     /* WINED3DSIH_USHR                  */ NULL,
     /* WINED3DSIH_UTOF                  */ NULL,
-    /* WINED3DSIH_XOR                   */ NULL,
+    /* WINED3DSIH_XOR                   */ shader_glsl_binop,
 };
 
 static void shader_glsl_handle_instruction(const struct wined3d_shader_instruction *ins) {




More information about the wine-cvs mailing list