vkd3d-shader/spirv: Introduce orderedness to comparison instructions.

This commit is contained in:
Conor McCarthy
2023-06-03 00:31:59 +10:00
committed by Alexandre Julliard
parent d3b90cc877
commit 22960753e9
Notes: Alexandre Julliard 2023-11-10 21:38:32 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/441
5 changed files with 58 additions and 42 deletions

View File

@@ -3460,20 +3460,20 @@ static const struct sm6_cmp_info *sm6_map_cmp2_op(uint64_t code)
static const struct sm6_cmp_info cmp_op_table[] =
{
[FCMP_FALSE] = {VKD3DSIH_INVALID},
[FCMP_OEQ] = {VKD3DSIH_EQ},
[FCMP_OGT] = {VKD3DSIH_LT, true},
[FCMP_OGE] = {VKD3DSIH_GE},
[FCMP_OLT] = {VKD3DSIH_LT},
[FCMP_OLE] = {VKD3DSIH_GE, true},
[FCMP_ONE] = {VKD3DSIH_NE},
[FCMP_OEQ] = {VKD3DSIH_EQO},
[FCMP_OGT] = {VKD3DSIH_LTO, true},
[FCMP_OGE] = {VKD3DSIH_GEO},
[FCMP_OLT] = {VKD3DSIH_LTO},
[FCMP_OLE] = {VKD3DSIH_GEO, true},
[FCMP_ONE] = {VKD3DSIH_NEO},
[FCMP_ORD] = {VKD3DSIH_INVALID},
[FCMP_UNO] = {VKD3DSIH_INVALID},
[FCMP_UEQ] = {VKD3DSIH_EQ},
[FCMP_UGT] = {VKD3DSIH_LT, true},
[FCMP_UGE] = {VKD3DSIH_GE},
[FCMP_ULT] = {VKD3DSIH_LT},
[FCMP_ULE] = {VKD3DSIH_GE, true},
[FCMP_UNE] = {VKD3DSIH_NE},
[FCMP_UEQ] = {VKD3DSIH_EQU},
[FCMP_UGT] = {VKD3DSIH_LTU, true},
[FCMP_UGE] = {VKD3DSIH_GEU},
[FCMP_ULT] = {VKD3DSIH_LTU},
[FCMP_ULE] = {VKD3DSIH_GEU, true},
[FCMP_UNE] = {VKD3DSIH_NEU},
[FCMP_TRUE] = {VKD3DSIH_INVALID},
[ICMP_EQ] = {VKD3DSIH_IEQ},