vkd3d/libs/vkd3d-shader
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
..
checksum.c vkd3d-shader: Replace assert() with VKD3D_ASSERT() in checksum.c. 2024-07-30 16:32:59 +02:00
d3d_asm.c vkd3d-shader: Replace assert() with VKD3D_ASSERT() in d3d_asm.c. 2024-07-30 16:32:59 +02:00
d3dbc.c vkd3d-shader/hlsl: Add missing src1 and src2 constants to sincos on SM2. 2024-07-31 22:22:38 +02:00
dxbc.c vkd3d-shader: Replace assert() with VKD3D_ASSERT() in dxbc.c. 2024-07-30 16:32:59 +02:00
dxil.c vkd3d: Introduce debug severity MESSAGE. 2024-07-29 13:17:19 +02:00
fx.c vkd3d-shader/fx: Correct one of the object counters in the fx_2_0 header. 2024-07-24 16:04:21 +02:00
glsl.c vkd3d-shader/glsl: Implement support for VKD3DSPR_TEMP registers. 2024-07-30 16:31:59 +02:00
hlsl_codegen.c vkd3d-shader/hlsl: Add missing src1 and src2 constants to sincos on SM2. 2024-07-31 22:22:38 +02:00
hlsl_constant_ops.c vkd3d-shader/hlsl: Move the "base_type" member to the class-specific union. 2024-05-06 22:12:41 +02:00
hlsl.c vkd3d-shader/hlsl: Implement sin/cos for SM1. 2024-07-16 18:55:22 +02:00
hlsl.h vkd3d-shader/hlsl: Add missing src1 and src2 constants to sincos on SM2. 2024-07-31 22:22:38 +02:00
hlsl.l vkd3d-shader/hlsl: Add support for ConstantBuffer<> type. 2024-07-08 18:12:03 +02:00
hlsl.y vkd3d-shader/hlsl: Implement the asint() intrinsic. 2024-07-24 16:06:03 +02:00
ir.c vkd3d-shader/ir: Remove VKD3DSIH_DCL_SAMPLER instructions. 2024-07-30 16:31:44 +02:00
libvkd3d-shader.pc.in build: Build libvkd3d-shader as public library. 2018-11-02 11:19:00 +01:00
preproc.h build: Make the default symbol visibility "hidden". 2021-08-09 21:43:22 +02:00
preproc.l vkd3d-shader/preproc: Treat CR as whitespace. 2024-05-23 23:11:58 +02:00
preproc.y vkd3d-shader/hlsl: Handle over/underflow when parsing integer literals. 2022-05-12 19:33:56 +02:00
spirv.c vkd3d-shader/ir: Remove VKD3DSIH_DCL_SAMPLER instructions. 2024-07-30 16:31:44 +02:00
tpf.c vkd3d-shader: Introduce struct vkd3d_shader_parameter_info and struct vkd3d_shader_parameter1. 2024-07-11 16:48:09 +02:00
vkd3d_shader_main.c vkd3d-shader/ir: Rename the "handler_idx" field of struct vkd3d_shader_instruction to "opcode". 2024-05-30 19:57:01 +02:00
vkd3d_shader_private.h vkd3d-shader: Factor out a vsir_program_get_parameter() helper. 2024-07-23 21:10:00 +02:00
vkd3d_shader.map vkd3d-shader: Implement scanning combined resource/sampler information. 2023-11-13 23:19:23 +01:00