Commit Graph

7965 Commits

Author SHA1 Message Date
Giovanni Mascellani
decc155cca vkd3d-shader/ir: Split updating DCL_TEMPS instructions to a dedicated pass.
So that it can be used in other contexts as well. And so that
register allocation can be run also when there is no need to update
or create DCL_TEMPS instructions.
2025-07-21 12:31:08 +02:00
Giovanni Mascellani
079e989b8e vkd3d-shader/ir: Update the program TEMP count when allocating TEMP registers. 2025-07-21 12:26:10 +02:00
Giovanni Mascellani
f5cd0b4a15 vkd3d-shader/ir: Check that THREADGROUPID registers have dimension VEC4. 2025-07-21 12:23:34 +02:00
Giovanni Mascellani
59253a5e7f vkd3d-shader/ir: Check that LOCALTHREADID registers have dimension VEC4. 2025-07-21 12:23:34 +02:00
Giovanni Mascellani
834f762cb5 vkd3d-shader/ir: Check that DEPTHOUTLE registers have dimension SCALAR.
Also fix the DXIL parser to emit them accordingly.
2025-07-21 12:23:34 +02:00
Giovanni Mascellani
18ef9a4f9f vkd3d-shader/ir: Check that DEPTHOUTGE registers have dimension SCALAR.
Also fix the DXIL parser to emit them accordingly.
2025-07-21 12:23:34 +02:00
Giovanni Mascellani
9f453fbb66 vkd3d-shader/ir: Check that DEPTHOUT registers have dimension SCALAR.
Also fix the DXIL parser to emit them accordingly.
2025-07-21 12:23:32 +02:00
Giovanni Mascellani
3d23ef6bf8 vkd3d-shader/ir: Check that COVERAGE registers have dimension VEC4.
Also fix the HLSL compiler and DXIL parser to emit them accordingly.
2025-07-21 12:21:23 +02:00
Giovanni Mascellani
ee0447b973 vkd3d-shader/ir: Check that LOCALTHREADINDEX registers have dimension VEC4.
Also fix the HLSL compiler and DXIL parser to emit them accordingly.
2025-07-21 12:18:49 +02:00
Giovanni Mascellani
61c46f95da vkd3d-shader/ir: Validate MUL operations. 2025-07-21 12:16:16 +02:00
Giovanni Mascellani
87545dc4fd vkd3d-shader/ir: Validate MIN operations. 2025-07-21 12:16:16 +02:00
Giovanni Mascellani
366c899a00 vkd3d-shader/ir: Validate MAX operations. 2025-07-21 12:16:16 +02:00
Giovanni Mascellani
5dd226ffeb vkd3d-shader/ir: Validate MAD operations. 2025-07-21 12:16:16 +02:00
Giovanni Mascellani
2237e251fa vkd3d-shader/ir: Validate LTU operations. 2025-07-21 12:16:16 +02:00
Giovanni Mascellani
34cb8c63f4 vkd3d-shader/ir: Validate LTO operations. 2025-07-21 12:16:14 +02:00
Giovanni Mascellani
a8e8a9ee64 vkd3d-shader/ir: Validate LOG operations. 2025-07-21 12:14:22 +02:00
Henri Verbeet
db149cd8cf vkd3d-shader/ir: Rename VKD3D_DATA_DOUBLE to VSIR_DATA_F64. 2025-07-21 12:10:43 +02:00
Henri Verbeet
c5c1c03430 vkd3d-shader/ir: Rename VKD3D_DATA_FLOAT to VSIR_DATA_F32. 2025-07-21 12:10:43 +02:00
Henri Verbeet
d1dcbc26e5 vkd3d-shader/ir: Rename VKD3D_DATA_HALF to VSIR_DATA_F16. 2025-07-21 12:10:43 +02:00
Henri Verbeet
0126beb3b2 vkd3d-shader/ir: Rename enum vkd3d_data_type to vsir_data_type. 2025-07-21 12:10:43 +02:00
Henri Verbeet
53dd048ad5 demos/teapot: Add a flat shading toggle. 2025-07-21 12:09:44 +02:00
Giovanni Mascellani
8d4222764c vkd3d-shader/ir: Use the iterator in vsir_program_lower_texldp(). 2025-07-21 12:07:08 +02:00
Giovanni Mascellani
5407c8b975 vkd3d-shader/ir: Use the iterator in vsir_program_lower_sm4_sincos(). 2025-07-21 12:07:08 +02:00
Giovanni Mascellani
55b8002bf6 vkd3d-shader/ir: Use the iterator in vsir_program_lower_sm1_sincos(). 2025-07-21 12:06:46 +02:00
Giovanni Mascellani
c1f7720075 vkd3d-shader/ir: Use the iterator in vsir_program_lower_udiv(). 2025-07-21 12:02:57 +02:00