Nikolay Sivov
d08673bad1
vkd3d-shader/d3dbc: Use the actual instruction length in d3dbc_write_instruction().
...
The current calculation doesn't take indirect addressing into account.
This issue is easy to spot in disassembly, when we don't skip correctly
to the next instruction. On Windows the disassembler does not depend on
this it seems and skips naturally after processing all parameters that
may or may not use indirect addressing.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com >
2025-06-16 17:35:37 +02:00
Nikolay Sivov
7281f4ed39
vkd3d-shader/fx: Add support for tx -> text output.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com >
2025-06-16 16:19:47 +02:00
Nikolay Sivov
586b2b5a79
vkd3d-shader/fx: Add the "noise" opcode name.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com >
2025-06-16 16:07:35 +02:00
Nikolay Sivov
e28af05957
vkd3d-shader/fx: Output indirect register access in arguments.
...
This uses the notation from Wine's d3dx9 effects runtime implementation.
Indirect addressing in fx_4_0 looks pretty much broken - it compiles
to something that produces non-sensical text disassembly and fails
runtime effect creation.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com >
2025-06-16 16:06:41 +02:00
Nikolay Sivov
3f6013ea27
vkd3d-shader/fx: Output value expressions for fx_2_0.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com >
2025-06-16 16:04:52 +02:00
Nikolay Sivov
ddb433d552
vkd3d-shader/fx: Explicitly check all known state assignment types for fx_2_0.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com >
2025-06-16 16:04:52 +02:00
Nikolay Sivov
590ea03255
vkd3d-shader/fx: Remove the unused fx_4_fxlc_argument type.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com >
2025-06-16 16:04:34 +02:00
Giovanni Mascellani
bf92190924
vkd3d-shader/ir: Rename VKD3D_SHADER_ERROR_VSIR_INVALID_HANDLER to VKD3D_SHADER_ERROR_VSIR_INVALID_OPCODE.
...
Following the way it is currently called in the code.
2025-06-16 16:03:07 +02:00
Henri Verbeet
eb988e95e1
vkd3d-shader/spirv: Use vsir_opcode_get_name() in spirv_compiler_emit_alu_instruction().
2025-06-16 16:01:14 +02:00
Henri Verbeet
f46c8ea03c
vkd3d-shader/spirv: Use vsir_opcode_get_name() in spirv_compiler_emit_ext_glsl_instruction().
2025-06-16 16:01:14 +02:00
Henri Verbeet
81279b763b
vkd3d-shader/spirv: Use vsir_opcode_get_name() in spirv_compiler_emit_bitfield_instruction().
2025-06-16 16:01:14 +02:00
Henri Verbeet
0778fb93df
vkd3d-shader/spirv: Use vsir_opcode_get_name() in spirv_compiler_emit_comparison_instruction().
2025-06-16 16:01:14 +02:00
Henri Verbeet
616fea0c2b
vkd3d-shader/spirv: Use vsir_opcode_get_name() in spirv_compiler_emit_deriv_instruction().
2025-06-16 16:01:14 +02:00
Henri Verbeet
8eeefc2906
vkd3d-shader/spirv: Use vsir_opcode_get_name() in spirv_compiler_emit_sample().
2025-06-11 20:28:38 +02:00
Henri Verbeet
d92ef93611
vkd3d-shader/spirv: Use vsir_opcode_get_name() in spirv_compiler_emit_atomic_instruction().
2025-06-11 20:28:38 +02:00
Henri Verbeet
6aeb168d63
vkd3d-shader/spirv: Use vsir_opcode_get_name() in spirv_compiler_handle_instruction().
2025-06-11 20:28:38 +02:00
Henri Verbeet
dfb3494600
vkd3d-shader/msl: Use vsir_opcode_get_name() in msl_unhandled().
2025-06-11 20:28:38 +02:00
Henri Verbeet
a5ff884605
vkd3d-shader/ir: Use vsir_opcode_get_name() in the validator.
2025-06-11 20:28:38 +02:00
Henri Verbeet
9c2643b9f7
vkd3d-shader/msl: Implement VKD3DSIH_LD2DMS.
2025-06-11 20:27:54 +02:00
Henri Verbeet
5899d8f54b
vkd3d-shader/msl: Implement VKD3DSIH_XOR.
2025-06-11 20:27:54 +02:00
Henri Verbeet
36a999e09f
vkd3d-shader/msl: Implement VKD3DSIH_ULT.
2025-06-11 20:27:54 +02:00
Henri Verbeet
6a159a5565
vkd3d-shader/msl: Implement VKD3DSIH_INEG.
2025-06-11 20:27:54 +02:00
Nikolay Sivov
1913f5e6f9
vkd3d-shader/fx: Parse array selector expressions for fx_2_0.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com >
2025-06-11 20:09:05 +02:00
Nikolay Sivov
90032acbcf
vkd3d-shader/fx: Rename the constant argument helper to be version-neutral.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com >
2025-06-11 20:08:59 +02:00
Nikolay Sivov
d403705de9
vkd3d-shader/fx: Add a helper to print literals.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com >
2025-06-11 20:07:38 +02:00