mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/asm: Output 'bias' flag for 'texld'.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
parent
ccbe36fb8d
commit
a289393fe7
Notes:
Henri Verbeet
2024-06-11 17:09:30 +02:00
Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/876
@ -1857,8 +1857,13 @@ static void shader_dump_instruction_flags(struct vkd3d_d3d_asm_compiler *compile
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case VKD3DSIH_TEX:
|
case VKD3DSIH_TEX:
|
||||||
if (vkd3d_shader_ver_ge(&compiler->shader_version, 2, 0) && (ins->flags & VKD3DSI_TEXLD_PROJECT))
|
if (vkd3d_shader_ver_ge(&compiler->shader_version, 2, 0))
|
||||||
vkd3d_string_buffer_printf(buffer, "p");
|
{
|
||||||
|
if (ins->flags & VKD3DSI_TEXLD_PROJECT)
|
||||||
|
vkd3d_string_buffer_printf(buffer, "p");
|
||||||
|
else if (ins->flags & VKD3DSI_TEXLD_BIAS)
|
||||||
|
vkd3d_string_buffer_printf(buffer, "b");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VKD3DSIH_WAVE_OP_ADD:
|
case VKD3DSIH_WAVE_OP_ADD:
|
||||||
|
@ -809,6 +809,7 @@ enum vkd3d_tessellator_domain
|
|||||||
|
|
||||||
#define VKD3DSI_NONE 0x0
|
#define VKD3DSI_NONE 0x0
|
||||||
#define VKD3DSI_TEXLD_PROJECT 0x1
|
#define VKD3DSI_TEXLD_PROJECT 0x1
|
||||||
|
#define VKD3DSI_TEXLD_BIAS 0x2
|
||||||
#define VKD3DSI_INDEXED_DYNAMIC 0x4
|
#define VKD3DSI_INDEXED_DYNAMIC 0x4
|
||||||
#define VKD3DSI_RESINFO_RCP_FLOAT 0x1
|
#define VKD3DSI_RESINFO_RCP_FLOAT 0x1
|
||||||
#define VKD3DSI_RESINFO_UINT 0x2
|
#define VKD3DSI_RESINFO_UINT 0x2
|
||||||
|
Loading…
Reference in New Issue
Block a user