wined3d: Use wined3d_uint32_compare() in compare_sig().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2022-01-26 15:43:39 +01:00 committed by Alexandre Julliard
parent b49062303e
commit ceb9994669
1 changed files with 10 additions and 10 deletions

View File

@ -3855,16 +3855,16 @@ static int compare_sig(const struct wined3d_shader_signature *sig1, const struct
if ((ret = strcmp(e1->semantic_name, e2->semantic_name)))
return ret;
if (e1->semantic_idx != e2->semantic_idx)
return e1->semantic_idx < e2->semantic_idx ? -1 : 1;
if (e1->sysval_semantic != e2->sysval_semantic)
return e1->sysval_semantic < e2->sysval_semantic ? -1 : 1;
if (e1->component_type != e2->component_type)
return e1->component_type < e2->component_type ? -1 : 1;
if (e1->register_idx != e2->register_idx)
return e1->register_idx < e2->register_idx ? -1 : 1;
if (e1->mask != e2->mask)
return e1->mask < e2->mask ? -1 : 1;
if ((ret = wined3d_uint32_compare(e1->semantic_idx, e2->semantic_idx)))
return ret;
if ((ret = wined3d_uint32_compare(e1->sysval_semantic, e2->sysval_semantic)))
return ret;
if ((ret = wined3d_uint32_compare(e1->component_type, e2->component_type)))
return ret;
if ((ret = wined3d_uint32_compare(e1->register_idx, e2->register_idx)))
return ret;
if ((ret = wined3d_uint32_compare(e1->mask, e2->mask)))
return ret;
}
return 0;
}