Commit Graph

983 Commits

Author SHA1 Message Date
Henri Verbeet
68dd93b7e8 vkd3d-shader/msl: Implement VSIR_OP_SIN. 2025-09-29 12:51:08 +02:00
Henri Verbeet
3794411d95 vkd3d-shader/msl: Implement VSIR_OP_COS. 2025-09-29 12:51:08 +02:00
Giovanni Mascellani
acccbc483e tests/hlsl: Allow a larger error tolerance on a trigonometry test.
Otherwise it fails on NVIDIA GPUs.
2025-09-29 12:49:31 +02:00
Giovanni Mascellani
1acd6188f3 tests/hlsl: Skip testing frexp(inf) for shader models < 4. 2025-09-29 12:48:33 +02:00
Giovanni Mascellani
05d6b045bd tests/hlsl: Explicitly specify the mantissa to be used for the frexp() test.
frexp() apparently returns the same mantissa, so we need to know
what it is.
2025-09-29 12:46:27 +02:00
Giovanni Mascellani
463df8e1ea tests/hlsl: Skip a shader model 6 floating-point comparison test on Windows NVIDIA. 2025-09-29 12:44:53 +02:00
Giovanni Mascellani
fdf196ce13 tests/hlsl: Fix the results for the 64-bit bit searching functions.
They've always been broken, likely nobody noticed because the
CI doesn't support DXC tests on Windows yet.
2025-09-29 12:41:04 +02:00
Giovanni Mascellani
87435aca8a tests/hlsl: Skip a d3d11 minimum precision array indexing test on NVIDIA. 2025-09-29 12:39:48 +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
Henri Verbeet
007792c33b vkd3d-shader/msl: Handle VSIR_DATA_BOOL operands. 2025-09-19 12:47:15 +02:00
Henri Verbeet
8eebc71c13 vkd3d-shader/ir: Require signed operands for IMAX instructions. 2025-09-18 11:30:19 +02:00
Henri Verbeet
31eb152917 vkd3d-shader/ir: Require signed operands for ISHR instructions. 2025-09-18 11:26:52 +02:00
Henri Verbeet
d09f1502ba tests/hlsl: Add a missing "}" to trigonometry.shader_test. 2025-09-17 12:34:56 +02:00
Elizabeth Figura
32e64cafa5 vkd3d-shader/d3dbc: Lower TEXCOORD instructions. 2025-09-17 11:37:49 +02:00
Elizabeth Figura
5706834b37 vkd3d-shader/d3dbc: Lower TEX instructions. 2025-09-17 11:28:48 +02:00
Henri Verbeet
89641d3d42 vkd3d-shader/ir: Require signed source operands for ITOF instructions. 2025-09-16 15:46:23 +02:00
Henri Verbeet
e569245e1f vkd3d-shader/hlsl: Implement constant folding of 'round' expressions. 2025-09-09 14:59:11 +02:00
Henri Verbeet
5a8a2bb15f tests/hlsl: Add a constant folding test for round(). 2025-09-09 14:59:11 +02:00
Henri Verbeet
23ee29a953 vkd3d-shader/hlsl: Implement constant folding of 'reinterpret' expressions.
As encountered in tests/hlsl/frexp.shader_test.
2025-09-09 14:59:11 +02:00
Henri Verbeet
e330ad2ac7 vkd3d-shader/hlsl: Implement constant folding of 'cos' expressions.
As encountered in tests/hlsl/trigonometry.shader_test.
2025-09-09 14:59:01 +02:00
Shaun Ren
d8ea8894ab vkd3d-shader/hlsl: Support SM1 non-floating point CMP expressions. 2025-09-04 13:58:57 +02:00
Shaun Ren
df5ccd3ff0 tests/hlsl: Test ternary operations with integral vector operands. 2025-09-04 13:57:48 +02:00