[PATCH 5/6] wined3d: Ignore unhandled shader data types.
Józef Kucia
jkucia at codeweavers.com
Tue May 9 05:51:42 CDT 2017
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>
---
Fixes bug 42923.
---
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;
}
--
2.10.2
More information about the wine-patches
mailing list