vkd3d/libs
Francisco Casas e6e82ad3f6 vkd3d-shader/hlsl: Add missing src1 and src2 constants to sincos on SM2.
The sincos instruction expects two specific constants on 2.0 and 2.1 profiles.

Consider the following shader:

    uniform float u;
    float4 main() : sv_target
    {
        return sin(u);
    }

On native, with ps_2_0, this compiles as:

    ps_2_0
    def c3, 0.159154937, 0.5, 6.28318548, -3.14159274
    def c1, -1.55009923e-006, -2.17013894e-005, 0.00260416674, 0.00026041668
    def c2, -0.020833334, -0.125, 1, 0.5
    mov r0.xy, c3
    mad r0.x, c0.x, r0.x, r0.y
    frc r0.x, r0.x
    mad r0.x, r0.x, c3.z, c3.w
    sincos r1.y, r0.x, c1, c2
    mov r0, r1.y
    mov oC0, r0

We are not emitting the src1 and src2 constant arguments before this
patch.
2024-07-31 22:22:38 +02:00
..
vkd3d vkd3d: Replace assert() with VKD3D_ASSERT() in vkd3d_private.h. 2024-07-29 19:12:13 +02:00
vkd3d-common vkd3d-common: Remove an assertion in vkd3d_dbg_printf(). 2024-07-30 16:32:59 +02:00
vkd3d-shader vkd3d-shader/hlsl: Add missing src1 and src2 constants to sincos on SM2. 2024-07-31 22:22:38 +02:00
vkd3d-utils Release 1.12. 2024-05-29 22:05:28 +02:00
.gitignore libs/vkd3d: Trace build version. 2018-06-27 22:43:49 +02:00