vkd3d-shader/hlsl: Implement acos and asin trig intrinsics.

Tests have already been implemented in 92044d5e; this commit also reduces
the scope of some of the todos (because now they're implemented!).

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55154
This commit is contained in:
Petrichor Park
2024-02-11 11:06:01 -06:00
committed by Alexandre Julliard
parent d4223a03c8
commit 69294c290b
Notes: Alexandre Julliard 2024-02-21 23:33:43 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/364
2 changed files with 69 additions and 12 deletions

View File

@@ -3,7 +3,7 @@
% implementations. DXIL defines intrinsics for inverse trig, to be implemented
% by the backend.
[pixel shader todo]
[pixel shader todo(sm<4)]
uniform float4 a;
float4 main() : sv_target
@@ -13,26 +13,26 @@ float4 main() : sv_target
[test]
uniform 0 float4 -1.0 0.0 0.0 0.0
todo(sm<6) draw quad
todo(sm<4) draw quad
probe all rgba (3.14159274, 0.0, 0.0, 0.0) 128
uniform 0 float4 -0.5 0.0 0.0 0.0
todo(sm<6) draw quad
todo(sm<4) draw quad
probe all rgba (2.094441441, 0.0, 0.0, 0.0) 256
uniform 0 float4 0.0 0.0 0.0 0.0
todo(sm<6) draw quad
todo(sm<4) draw quad
probe all rgba (1.57072878, 0.0, 0.0, 0.0) 1024
uniform 0 float4 0.5 0.0 0.0 0.0
todo(sm<6) draw quad
todo(sm<4) draw quad
probe all rgba (1.04715133, 0.0, 0.0, 0.0) 512
uniform 0 float4 1.0 0.0 0.0 0.0
todo(sm<6) draw quad
todo(sm<4) draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0) 128
[pixel shader todo]
[pixel shader todo(sm<4)]
uniform float4 a;
float4 main() : sv_target
@@ -44,7 +44,7 @@ float4 main() : sv_target
[test]
uniform 0 float4 -1.0 0.0 0.0 0.0
todo(sm<6) draw quad
todo(sm<4) draw quad
probe all rgba (-31416.0, 0.0, 0.0, 0.0)
[require]
@@ -52,15 +52,15 @@ shader model < 6.0
[test]
uniform 0 float4 -0.5 0.0 0.0 0.0
todo draw quad
todo(sm<4) draw quad
probe all rgba (-10473.0, 0.0, 0.0, 0.0)
uniform 0 float4 0.0 0.0 0.0 0.0
todo draw quad
todo(sm<4) draw quad
probe all rgba (1.0, 0.0, 0.0, 0.0)
uniform 0 float4 0.5 0.0 0.0 0.0
todo draw quad
todo(sm<4) draw quad
probe all rgba (10473.0, 0.0, 0.0, 0.0)
[require]
@@ -88,7 +88,7 @@ probe all rgba (10472.0, 0.0, 0.0, 0.0) 4096
[test]
uniform 0 float4 1.0 0.0 0.0 0.0
todo(sm<6) draw quad
todo(sm<4) draw quad
probe all rgba (31416.0, 0.0, 0.0, 0.0)