mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d-shader/ir: Split TEX into two separate vsir opcodes.
The two have the same d3dbc opcode, but have different names and different semantics.
This commit is contained in:
committed by
Henri Verbeet
parent
b25362e036
commit
847c008b49
Notes:
Henri Verbeet
2025-06-02 21:01:34 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1524
@@ -298,7 +298,7 @@ static const char * const shader_opcode_names[] =
|
||||
[VKD3DSIH_SWITCH_MONOLITHIC ] = "switch",
|
||||
[VKD3DSIH_SYNC ] = "sync",
|
||||
[VKD3DSIH_TAN ] = "tan",
|
||||
[VKD3DSIH_TEX ] = "texld",
|
||||
[VKD3DSIH_TEX ] = "tex",
|
||||
[VKD3DSIH_TEXBEM ] = "texbem",
|
||||
[VKD3DSIH_TEXBEML ] = "texbeml",
|
||||
[VKD3DSIH_TEXCOORD ] = "texcoord",
|
||||
@@ -307,6 +307,7 @@ static const char * const shader_opcode_names[] =
|
||||
[VKD3DSIH_TEXDP3 ] = "texdp3",
|
||||
[VKD3DSIH_TEXDP3TEX ] = "texdp3tex",
|
||||
[VKD3DSIH_TEXKILL ] = "texkill",
|
||||
[VKD3DSIH_TEXLD ] = "texld",
|
||||
[VKD3DSIH_TEXLDD ] = "texldd",
|
||||
[VKD3DSIH_TEXLDL ] = "texldl",
|
||||
[VKD3DSIH_TEXM3x2DEPTH ] = "texm3x2depth",
|
||||
@@ -1707,7 +1708,7 @@ static void shader_dump_instruction_flags(struct vkd3d_d3d_asm_compiler *compile
|
||||
shader_dump_sync_flags(compiler, ins->flags);
|
||||
break;
|
||||
|
||||
case VKD3DSIH_TEX:
|
||||
case VKD3DSIH_TEXLD:
|
||||
if (vkd3d_shader_ver_ge(&compiler->shader_version, 2, 0))
|
||||
{
|
||||
if (ins->flags & VKD3DSI_TEXLD_PROJECT)
|
||||
|
||||
Reference in New Issue
Block a user