Commit Graph

6148 Commits

Author SHA1 Message Date
Henri Verbeet
b7b62c9f03 vkd3d-shader/spirv: Pass a vsir_data_type to spirv_compiler_emit_store_scalar(). 2025-10-06 15:21:03 +02:00
Henri Verbeet
384f07a140 vkd3d-shader/spirv: Pass a vsir_data_type to spirv_compiler_emit_vector_shuffle(). 2025-10-06 15:21:03 +02:00
Henri Verbeet
beb0b7bcfc vkd3d-shader/spirv: Pass a vsir_data_type to spirv_compiler_emit_swizzle(). 2025-10-06 15:21:03 +02:00
Henri Verbeet
94990717f9 vkd3d-shader/spirv: Pass a vsir_data_type to spirv_compiler_emit_array_variable(). 2025-10-06 15:21:03 +02:00
Henri Verbeet
8923847ed0 vkd3d-shader/spirv: Use vsir_data_type in struct vkd3d_shader_output_info. 2025-10-06 15:21:03 +02:00
Shaun Ren
d5770cd347 vkd3d-shader/hlsl: Add support for the centroid interpolation mode in SM1. 2025-10-06 15:18:50 +02:00
Shaun Ren
44582a930c vkd3d-shader/hlsl: Handle the "_centroid" modifier suffix in semantic names. 2025-10-06 15:18:48 +02:00
Shaun Ren
cc53965ea9 vkd3d-shader/hlsl: Reject SM1 programs with interpolation modifiers. 2025-10-06 14:39:47 +02:00
Elizabeth Figura
322c91e3f8 vkd3d-shader/ir: Introduce a vsir DCE pass. 2025-10-06 14:38:32 +02:00
Elizabeth Figura
c7529028eb vkd3d-shader/hlsl: Use unique IDs for descriptors before 5.1. 2025-10-06 14:22:58 +02:00
Elizabeth Figura
62b7c5b5e6 vkd3d-shader/hlsl: Use the semantic.resource_type field for texture DCL instructions.
ins->resource_type is intended for VKD3D_SM5_MODIFIER_RESOURCE_TYPE, which is
not used for DCL instructions. At the same time, the validator checks
semantic.resource_type, and would break on HLSL shaders.
2025-10-06 14:22:58 +02:00
Giovanni Mascellani
e524c36916 vkd3d-shader/msl: Implement VKD3DSPR_THREADGROUPID. 2025-10-03 00:44:45 +02:00
Giovanni Mascellani
f15e5ac228 vkd3d-shader/msl: Implement VKD3DSPR_LOCALTHREADID. 2025-10-03 00:44:45 +02:00
Giovanni Mascellani
3293d72f03 vkd3d-shader/msl: Implement VKD3DSPR_LOCALTHREADINDEX. 2025-10-03 00:44:45 +02:00
Giovanni Mascellani
3c117e2331 vkd3d-shader/ir: Execute PHI SSA to TEMP materialization in each function. 2025-10-03 00:22:05 +02:00
Conor McCarthy
2d508a2fa6 vkd3d-shader: Set the program block count to the maximum for any function.
The block count is intended to be used for allocation of block info.
2025-10-03 00:22:03 +02:00
Henri Verbeet
0f9a2bdf34 vkd3d-shader/spirv: Use vsir_data_type in struct vkd3d_shader_image. 2025-10-03 00:14:03 +02:00
Henri Verbeet
0f504be1e8 vkd3d-shader/spirv: Use vsir_data_type in struct vkd3d_symbol_resource_data. 2025-10-03 00:14:03 +02:00
Henri Verbeet
9623ca4a6f vkd3d-shader/spirv: Use vsir_data_type in struct vkd3d_shader_register_info. 2025-10-03 00:14:03 +02:00
Henri Verbeet
a38b86fb3a vkd3d-shader/spirv: Use vsir_data_type in struct vkd3d_symbol_register_data. 2025-10-03 00:14:03 +02:00
Henri Verbeet
b4301a6562 vkd3d-shader/spirv: Use vsir_data_type in struct vkd3d_spirv_builtin. 2025-10-03 00:14:03 +02:00
Francisco Casas
da4d5ef339 vkd3d-shader/dxil: Get rid of sm6_parser_require_space().
It's not obvious what this last remaining use of
sm6_parser_require_space() is preallocating space for, and that's as
good of a reason as any to get rid of it.
2025-10-03 00:10:06 +02:00
Francisco Casas
03a58d74b9 vkd3d-shader/dxil: Don't preallocate instructions in sm6_function_emit_blocks(). 2025-10-02 23:53:32 +02:00
Francisco Casas
626ad24ffe vkd3d-shader/dxil: Don't preallocate instructions in sm6_parser_globals_init(). 2025-10-02 23:53:27 +02:00
Francisco Casas
f30141f086 vkd3d-shader/dxil: Propagate parser errors in sm6_parser_init(). 2025-10-02 23:52:19 +02:00