mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/sm4: Set "dst_count" to 0 when we clear "dst" in shader_sm4_read_instruction().
VKD3D_SM4_OP_DCL_RESOURCE currently has 1 for "dst_count", but NULL for "dst". This is largely harmless because we never attempt to access the destination register of VKD3DSIH_DCL instructions, but nevertheless not quite proper.
This commit is contained in:
parent
9ea84ae8c9
commit
65b7154a22
Notes:
Alexandre Julliard
2023-03-13 22:21:43 +01:00
Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/122
@ -1539,6 +1539,7 @@ static void shader_sm4_read_instruction(struct vkd3d_shader_parser *parser, stru
|
||||
if (opcode_info->read_opcode_func)
|
||||
{
|
||||
ins->dst = NULL;
|
||||
ins->dst_count = 0;
|
||||
opcode_info->read_opcode_func(ins, opcode, opcode_token, p, len, sm4);
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user