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:
Elizabeth Figura
2025-05-27 21:15:13 -05:00
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
6 changed files with 16 additions and 13 deletions

View File

@@ -9304,16 +9304,16 @@ static void sm1_generate_vsir_instr_resource_load(struct hlsl_ctx *ctx,
switch (load->load_type)
{
case HLSL_RESOURCE_SAMPLE:
opcode = VKD3DSIH_TEX;
opcode = VKD3DSIH_TEXLD;
break;
case HLSL_RESOURCE_SAMPLE_PROJ:
opcode = VKD3DSIH_TEX;
opcode = VKD3DSIH_TEXLD;
flags |= VKD3DSI_TEXLD_PROJECT;
break;
case HLSL_RESOURCE_SAMPLE_LOD_BIAS:
opcode = VKD3DSIH_TEX;
opcode = VKD3DSIH_TEXLD;
flags |= VKD3DSI_TEXLD_BIAS;
break;