Nikolay Sivov
fb16ae2325
vkd3d-shader/fx: Add support for dumping fx_2_0 shader blobs.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com >
2025-03-17 14:48:12 +01:00
Nikolay Sivov
36e1a0ceae
vkd3d-shader/fx: Add support for parsing fx_2_0 sampler states.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com >
2025-03-17 14:46:36 +01:00
Nikolay Sivov
3e86484091
vkd3d-shader/fx: Read fx_2_0 assignment data outside of its dumping helper.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com >
2025-03-17 14:46:36 +01:00
Nikolay Sivov
fb5d53bf57
vkd3d-shader/fx: Add a helper to escape printed strings.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com >
2025-03-17 14:46:18 +01:00
Giovanni Mascellani
fc4316f664
tests/shader_runner: Avoid creating devices for backends that won't execute.
...
My main motivation to this is avoiding generating a lot of useless
log lines from other executors when I'm interested in just one of
them, but I can imagine this also somewhat improving efficiency.
2025-03-17 14:01:22 +01:00
Giovanni Mascellani
0b273ea88c
tests: Store the compiler string in the shader runner capabilities.
...
Just like the executor.
2025-03-17 13:50:19 +01:00
Shaun Ren
a4f58be00c
vkd3d-shader/hlsl: Remove the unused hlsl_array_type_to_string() declaration.
...
Accidentally introduced in 870c68dd27
.
2025-03-13 14:02:26 +01:00
Elizabeth Figura
c9a5f586b7
vkd3d-shader/hlsl: Zero-initialize "nonconst_i" and "ret_swizzle" in copy_propagation_replace_with_deref().
...
GCC without LTO is unable to determine that these are never used
uninitialized.
2025-03-13 13:59:05 +01:00
Francisco Casas
09b9f8ff9f
vkd3d-shader/hlsl: Fix invalidation of the wrong components in copy-propagation.
...
Fixes: 1bba18aa75
.
2025-03-12 22:14:25 +01:00
Francisco Casas
bff9068a7f
tests: Add a hard test for copy-propagation invalidation.
...
This test is currently miscompiling on SM4 because
copy_propagation_invalidate_variable_from_deref_recurse() is not always
invalidating the right components.
2025-03-12 22:14:15 +01:00
Elizabeth Figura
a87b1efbd2
vkd3d-shader/hlsl: Don't invalidate OOB constant derefs.
2025-03-12 22:09:57 +01:00
Elizabeth Figura
193e40c271
vkd3d-shader/hlsl: Stop checking for failure from intrinsic_float_convert_arg().
2025-03-12 22:02:39 +01:00
Elizabeth Figura
7b5b5dbb8d
vkd3d-shader/hlsl: Do not abort when performing an invalid implicit cast.
2025-03-12 22:02:39 +01:00
Elizabeth Figura
2ee19c4d34
vkd3d-shader/hlsl: Do not abort when performing an invalid explicit cast.
2025-03-12 22:02:39 +01:00
Elizabeth Figura
25f476c7ad
vkd3d-shader/hlsl: Return an error expression from add_cast() on allocation failure.
2025-03-12 22:02:39 +01:00
Elizabeth Figura
0642531c2a
vkd3d-shader/hlsl: Introduce hlsl_block_add_swizzle().
2025-03-12 22:02:31 +01:00
Elizabeth Figura
f8c53fae37
vkd3d-shader/hlsl: Introduce hlsl_block_add_resource_load().
2025-03-12 22:02:21 +01:00
Henri Verbeet
b9ebf87114
vkd3d-shader/hlsl: Do not collect expressions across different operations in hlsl_normalize_binary_exprs().
2025-03-12 21:34:17 +01:00
Henri Verbeet
b4296e1a2d
tests/hlsl: Add another constant folding test.
2025-03-12 21:34:02 +01:00
Shaun Ren
dd1072a99b
tests/hlsl: Add geometry shader syntax tests.
2025-03-12 21:21:35 +01:00
Shaun Ren
ae5261b98b
vkd3d-shader/hlsl: Forbid output parameters in geometry shaders.
...
Outputs in geometry shaders must be written to streams.
2025-03-12 21:15:15 +01:00
Shaun Ren
4137ea5ab7
vkd3d-shader/hlsl: Validate stream output parameters in geometry shaders.
2025-03-12 21:13:59 +01:00
Shaun Ren
b650e7a503
vkd3d-shader/hlsl: Validate stream output object declarations.
...
Valid stream output objects must be single-element containing a
PointStream/LineStream/TriangleStream object.
Moreover, stream output objects cannot be declared globally.
2025-03-12 21:12:56 +01:00
Shaun Ren
870c68dd27
vkd3d-shader/hlsl: Validate and record input primitive types in geometry shaders.
2025-03-12 21:11:46 +01:00
Shaun Ren
57bb28e841
vkd3d-shader/hlsl: Parse primitive type modifiers in geometry shaders.
2025-03-12 20:42:59 +01:00