Commit Graph

8098 Commits

Author SHA1 Message Date
Henri Verbeet
db704d2980 vkd3d-shader/spirv: Handle i64 component types. 2025-09-10 11:42:21 +02:00
Elizabeth Figura
446b59319b vkd3d-utils: Null-terminate the output of D3DPreprocess().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58596
2025-09-10 11:40:03 +02:00
Elizabeth Figura
f52dc8a89a vkd3d-utils: Null-terminate the output of D3DDisassemble(). 2025-09-10 11:40:03 +02:00
Elizabeth Figura
df1c94dd60 vkd3d-shader: Document the null terminator appended for textual formats.
vkd3d_string_buffer uses vsnprintf() and therefore null-terminates when
appending, so no code changes are necessary.
2025-09-10 11:39:43 +02:00
Elizabeth Figura
bb7c95f7d6 tests: Test special characters. 2025-09-10 11:09:04 +02:00
Elizabeth Figura
7fe82bcd85 tests: Test null-termination. 2025-09-10 11:05:01 +02:00
Henri Verbeet
d26f75f12c vkd3d-shader/spirv: Use spirv_get_type_id() in spirv_compiler_emit_load_invocation_id(). 2025-09-09 15:02:08 +02:00
Henri Verbeet
361404a1d1 vkd3d-shader/spirv: Use spirv_get_type_id() in frag_coord_fixup(). 2025-09-09 15:02:08 +02:00
Henri Verbeet
34dbf38e83 vkd3d-shader/spirv: Use spirv_get_type_id() in spirv_compiler_emit_draw_parameter_fixup(). 2025-09-09 15:02:08 +02:00
Henri Verbeet
f13c2932de vkd3d-shader/spirv: Use spirv_get_type_id() in spirv_compiler_emit_bool_to_double(). 2025-09-09 15:02:08 +02:00
Henri Verbeet
d98bbb2a9d vkd3d-shader/spirv: Use spirv_get_type_id() in spirv_compiler_emit_bool_to_float(). 2025-09-09 15:02:08 +02:00
Henri Verbeet
e569245e1f vkd3d-shader/hlsl: Implement constant folding of 'round' expressions. 2025-09-09 14:59:11 +02:00
Henri Verbeet
5a8a2bb15f tests/hlsl: Add a constant folding test for round(). 2025-09-09 14:59:11 +02:00
Henri Verbeet
23ee29a953 vkd3d-shader/hlsl: Implement constant folding of 'reinterpret' expressions.
As encountered in tests/hlsl/frexp.shader_test.
2025-09-09 14:59:11 +02:00
Henri Verbeet
e330ad2ac7 vkd3d-shader/hlsl: Implement constant folding of 'cos' expressions.
As encountered in tests/hlsl/trigonometry.shader_test.
2025-09-09 14:59:01 +02:00
Henri Verbeet
08e7806b7f vkd3d-shader/hlsl: Implement constant folding of 'sin' expressions.
As encountered in tests/hlsl/trigonometry.shader_test.
2025-09-09 14:51:15 +02:00
Henri Verbeet
d7a05d823c vkd3d-shader/hlsl: Implement constant folding of 'mad' expressions.
As encountered in tests/hlsl/trigonometry.shader_test.
2025-09-09 14:51:15 +02:00
Francisco Casas
7f4a186e6a vkd3d-shader/ir: Use iterators in struct vsir_cfg.
And therefore on the functions that use it, namely
vsir_program_structurize() and
vsir_program_materialize_undominated_ssas_to_temps() and their callees.
2025-09-09 14:51:15 +02:00
Francisco Casas
1aa6c767ea vkd3d-shader/ir: Merge the hull shader phase flattener into a single pass. 2025-09-09 14:50:34 +02:00
Francisco Casas
434d9dd117 vkd3d-shader/ir: Use iterators in flattener_flatten_phases(). 2025-09-09 14:24:06 +02:00
Henri Verbeet
bceb4d17ed vkd3d-shader/ir: Move the instruction array helpers to ir.c. 2025-09-09 14:17:51 +02:00
Francisco Casas
952e706883 vkd3d-shader/ir: Use iterators in control_point_normaliser_emit_hs_input(). 2025-09-09 12:40:06 +02:00
Francisco Casas
500d54d588 vkd3d-shader/ir: Avoid direct instruction array access in validation_error(). 2025-09-09 12:31:12 +02:00
Giovanni Mascellani
05b5a48c1d vkd3d-shader/msl: Reject UAV stores to multi-sampled resources.
Current versions of MSL don't support this, and it doesn't seem likely
that Direct3D source formats do either.
2025-09-09 12:10:44 +02:00
Giovanni Mascellani
26c51f53b7 vkd3d-shader/msl: Access resources as non-multisampled if the sample count is 1. 2025-09-09 12:08:36 +02:00