Commit Graph

8298 Commits

Author SHA1 Message Date
Henri Verbeet
390e31a2dd vkd3d-shader/spirv: Use spirv_get_type_id() in spirv_compiler_emit_query_sample_count(). 2025-09-23 09:40:26 +02:00
Henri Verbeet
a2e5ada610 vkd3d-shader/spirv: Use spirv_get_type_id() in spirv_compiler_emit_resinfo(). 2025-09-23 09:40:26 +02:00
Henri Verbeet
e641f8b95c vkd3d-shader/spirv: Use spirv_get_type_id() in spirv_compiler_emit_bufinfo(). 2025-09-23 09:40:26 +02:00
Henri Verbeet
47559027a5 vkd3d-shader/spirv: Use spirv_get_type_id() in spirv_compiler_emit_uav_counter_instruction(). 2025-09-23 09:40:26 +02:00
Henri Verbeet
52e6f98610 vkd3d-shader/spirv: Use spirv_get_type_id() in spirv_compiler_emit_store_tgsm(). 2025-09-23 09:40:26 +02:00
Henri Verbeet
cb8c851bec vkd3d-shader/hlsl: Remove a hlsl_type_is_integer() prototype.
One should be plenty.
2025-09-22 11:37:54 +02:00
Henri Verbeet
3e47752c95 vkd3d-shader/hlsl: Fold "x < 0" to false for unsigned x. 2025-09-22 11:36:39 +02:00
Henri Verbeet
609fb32f53 vkd3d-shader/spirv: Explicitly ignore HLSL compilation options. 2025-09-22 11:36:04 +02:00
Henri Verbeet
cdbe712bc3 vkd3d-shader/spirv: Use spirv_get_type_id() in spirv_compiler_emit_ld_tgsm(). 2025-09-22 11:35:09 +02:00
Henri Verbeet
eb124d3ac9 vkd3d-shader/spirv: Use spirv_get_type_id() in spirv_compiler_emit_lod(). 2025-09-22 11:35:09 +02:00
Henri Verbeet
24ec724d81 vkd3d-shader/spirv: Use spirv_get_type_id() in spirv_compiler_emit_float_comparison_instruction(). 2025-09-22 11:35:09 +02:00
Henri Verbeet
8c17fb2798 vkd3d-shader/spirv: Use spirv_get_type_id() in spirv_compiler_emit_comparison_instruction(). 2025-09-22 11:35:09 +02:00
Henri Verbeet
2c249b26eb vkd3d-shader/spirv: Use spirv_get_type_id() in spirv_compiler_emit_f32tof16(). 2025-09-22 11:35:09 +02:00
Elizabeth Figura
d4cb6bf52d vkd3d-shader/ir: Validate BEM. 2025-09-22 11:33:35 +02:00
Elizabeth Figura
162578f505 vkd3d-shader/ir: Validate TEXTURE registers. 2025-09-22 11:32:32 +02:00
Petrichor Park
e35604dbf0 vkd3d-shader/hlsl: Implement the firstbitlow() intrinsic. 2025-09-22 11:26:42 +02:00
Petrichor Park
e6d840170d vkd3d-shader/hlsl: Implement the firstbithigh() intrinsic. 2025-09-22 11:26:42 +02:00
Petrichor Park
e49beca0d5 vkd3d-shader/hlsl: Implement the countbits() intrinsic. 2025-09-22 11:26:42 +02:00
Petrichor Park
16cb69a324 tests/hlsl: Split the test for countbits()/firstbithigh()/firstbitlow().
And add some more.
2025-09-22 11:26:42 +02:00
Giovanni Mascellani
52b9aa416b vkd3d-shader/ir: Fix r0 allocation for PS 1.x shaders.
In order to allocate it properly we have to ensure it is the first
register to be processed. The current algorithm fails to do so, so
a more explicit approach is introduced.
2025-09-19 12:48:50 +02:00
Henri Verbeet
89b05594f5 vkd3d-shader/d3dbc: Don't call vsir_update_dcl_temps(). 2025-09-19 12:48:08 +02:00
Henri Verbeet
21b5a2be8c vkd3d-shader/ir: Return early for shader model < 4 in vsir_update_dcl_temps(). 2025-09-19 12:48:08 +02:00
Henri Verbeet
007792c33b vkd3d-shader/msl: Handle VSIR_DATA_BOOL operands. 2025-09-19 12:47:15 +02:00
Henri Verbeet
72071fcf08 vkd3d-shader/ir: Avoid memset() in vsir_instruction_init().
Primarily to avoid -Warray-bounds warnings from newer gcc, specifically
for the first vsir_instruction_init() call in vsir_update_dcl_temps().
This seems to be a false positive created by the interaction between
vsir_program_iterator_insert_after() and vsir_program_iterator_next()
error handling; it may be possible to avoid that by rearranging things,
but it doesn't seem worth it.
2025-09-19 12:46:54 +02:00
Henri Verbeet
269376229b vkd3d-shader/spirv: Use spirv_get_type_id() in spirv_compiler_emit_f16tof32(). 2025-09-19 12:45:51 +02:00