Shaun Ren
8af3173955
vkd3d-shader/hlsl: Support input primitive arrays in geometry shaders.
2025-03-18 15:40:11 +01:00
Giovanni Mascellani
2377db33db
vkd3d-shader: Represent descriptor information in the vsir program.
2025-03-18 15:38:01 +01:00
Giovanni Mascellani
4308fa3f68
vkd3d-shader/spirv: Do not steal the instruction array from the vsir program.
...
There is no need, and it only complicates tracking ownership.
2025-03-18 15:37:57 +01:00
Giovanni Mascellani
fc520e7b4c
vkd3d-shader/spirv: Do not store duplicate references to the signatures.
...
They are already available through the program.
2025-03-18 15:34:16 +01:00
Giovanni Mascellani
5ce03258b5
vkd3d-shader/spirv: Immediately store a reference to the program in the SPIR-V generator.
...
So it doesn't have to be passed around uselessly.
2025-03-18 15:34:04 +01:00
Giovanni Mascellani
549659dab6
vkd3d-shader/spirv: Run the vsir passes before creating the SPIR-V generator.
...
This makes it more similar to the MSL and GLSL generators. It also looks
like a cleaner design, the backend is supposed to get access to the vsir
program after it has gone through the pipeline.
2025-03-18 15:33:27 +01:00
Francisco Casas
ea99d2c2cd
vkd3d-shader/hlsl: Lower integer modulus for d3dbc target profiles.
2025-03-18 15:27:04 +01:00
Francisco Casas
828afe188c
vkd3d-shader/hlsl: Don't lower integer MOD and DIV on const passes for d3dbc target profiles.
...
These bitwise operations are not available in these profiles.
2025-03-18 15:27:03 +01:00
Elizabeth Figura
bc382c6835
vkd3d-shader/hlsl: Reuse shader model 1-3 constants.
2025-03-18 14:21:02 +01:00
Giovanni Mascellani
674614cc7a
vkd3d-shader/ir: Disallow IMMCONSTBUFFER registers in destination parameters.
2025-03-17 15:12:13 +01:00
Giovanni Mascellani
0761d73e9c
vkd3d-shader/ir: Disallow CONSTBUFFER registers in destination parameters.
2025-03-17 15:12:13 +01:00
Giovanni Mascellani
0c9c29fb34
vkd3d-shader/ir: Validate CONSTBUFFER registers.
2025-03-17 15:11:52 +01:00
Henri Verbeet
808931b108
vkd3d-shader/glsl: Implement VKD3DSIH_XOR.
2025-03-17 15:07:51 +01:00
Nikolay Sivov
ba79890398
vkd3d-shader/fx: Support dumping parameter and array selector assignments for fx_2_0.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com >
2025-03-17 15:05:14 +01:00
Nikolay Sivov
ff7591171b
vkd3d-shader/fx: Dump complex state value blobs for fx_2_0.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com >
2025-03-17 14:54:26 +01:00
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
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
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