Commit 3ab205ef authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Ignore flags for conditional SM 1-3 instructions explicitly.

This is to make sure that a regression is not introduced when the SM4+ _nz/_z modifiers are implemented for these instructions. Signed-off-by: 's avatarJózef Kucia <jkucia@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 73d0328b
......@@ -708,6 +708,19 @@ static void shader_sm1_read_comment(const DWORD **ptr)
}
}
static void shader_sm1_validate_instruction(struct wined3d_shader_instruction *ins)
{
if (ins->handler_idx == WINED3DSIH_BREAKP || ins->handler_idx == WINED3DSIH_IF)
{
if (ins->flags)
{
FIXME("Ignoring unexpected instruction flags %#x for %s.\n",
ins->flags, debug_d3dshaderinstructionhandler(ins->handler_idx));
ins->flags = 0;
}
}
}
static void shader_sm1_read_instruction(void *data, const DWORD **ptr, struct wined3d_shader_instruction *ins)
{
const struct wined3d_sm1_opcode_info *opcode_info;
......@@ -775,6 +788,8 @@ static void shader_sm1_read_instruction(void *data, const DWORD **ptr, struct wi
shader_sm1_read_src_param(priv, &p, &priv->src_param[i], &priv->src_rel_addr[i]);
}
}
shader_sm1_validate_instruction(ins);
}
static BOOL shader_sm1_is_end(void *data, const DWORD **ptr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment