=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Ignore unhandled shader data types.

Alexandre Julliard julliard at winehq.org
Tue May 9 17:21:01 CDT 2017


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

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Tue May  9 12:51:42 2017 +0200

wined3d: Ignore unhandled shader data types.

This opcode may contain various types of additional data, e.g. shader
messages produced by the HLSL printf() function. It can generally be
safely ignored.

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/shader_sm4.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/shader_sm4.c b/dlls/wined3d/shader_sm4.c
index 4e0fb83..601a639 100644
--- a/dlls/wined3d/shader_sm4.c
+++ b/dlls/wined3d/shader_sm4.c
@@ -498,8 +498,8 @@ static void shader_sm4_read_shader_data(struct wined3d_shader_instruction *ins,
     type = (opcode_token & WINED3D_SM4_SHADER_DATA_TYPE_MASK) >> WINED3D_SM4_SHADER_DATA_TYPE_SHIFT;
     if (type != WINED3D_SM4_SHADER_DATA_IMMEDIATE_CONSTANT_BUFFER)
     {
-        FIXME("Unhandled shader data type %#x.\n", type);
-        ins->handler_idx = WINED3DSIH_TABLE_SIZE;
+        FIXME("Ignoring shader data type %#x.\n", type);
+        ins->handler_idx = WINED3DSIH_NOP;
         return;
     }
 




More information about the wine-cvs mailing list