mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
tests: Add test for round_ne instruction.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
92f3d33e15
commit
ae1f96cc1f
@ -5540,6 +5540,24 @@ static void test_shader_instructions(void)
|
||||
0x00000000, 0x00000000, 0x05000036, 0x00102082, 0x00000000, 0x00004001, 0x00000000, 0x0100003e,
|
||||
};
|
||||
static const D3D12_SHADER_BYTECODE ps_round = {ps_round_code, sizeof(ps_round_code)};
|
||||
static const DWORD ps_round_ne_code[] =
|
||||
{
|
||||
#if 0
|
||||
float4 src0;
|
||||
|
||||
void main(out float4 dst : SV_Target)
|
||||
{
|
||||
dst = round(src0);
|
||||
}
|
||||
#endif
|
||||
0x43425844, 0xa2be1ad3, 0xf1389007, 0xc8221829, 0xcbef8ed0, 0x00000001, 0x000000bc, 0x00000003,
|
||||
0x0000002c, 0x0000003c, 0x00000070, 0x4e475349, 0x00000008, 0x00000000, 0x00000008, 0x4e47534f,
|
||||
0x0000002c, 0x00000001, 0x00000008, 0x00000020, 0x00000000, 0x00000000, 0x00000003, 0x00000000,
|
||||
0x0000000f, 0x545f5653, 0x65677261, 0xabab0074, 0x58454853, 0x00000044, 0x00000050, 0x00000011,
|
||||
0x0100086a, 0x04000059, 0x00208e46, 0x00000000, 0x00000001, 0x03000065, 0x001020f2, 0x00000000,
|
||||
0x06000040, 0x001020f2, 0x00000000, 0x00208e46, 0x00000000, 0x00000000, 0x0100003e,
|
||||
};
|
||||
static const D3D12_SHADER_BYTECODE ps_round_ne = {ps_round_ne_code, sizeof(ps_round_ne_code)};
|
||||
static const DWORD ps_frc_code[] =
|
||||
{
|
||||
#if 0
|
||||
@ -6427,6 +6445,16 @@ static void test_shader_instructions(void)
|
||||
{&ps_round, {{ INFINITY}}, {{ INFINITY, INFINITY, INFINITY}}},
|
||||
{&ps_round, {{-INFINITY}}, {{-INFINITY, -INFINITY, -INFINITY}}},
|
||||
|
||||
{&ps_round_ne, {{ 0.0f, -0.0f, 0.5f, -0.5f}}, {{ 0.0f, -0.0f, 0.0f, -0.0f}}},
|
||||
{&ps_round_ne, {{ 2.0f, 3.0f, 4.0f, 5.0f}}, {{ 2.0f, 3.0f, 4.0f, 5.0f}}},
|
||||
{&ps_round_ne, {{ 2.4f, 3.4f, 4.4f, 5.4f}}, {{ 2.0f, 3.0f, 4.0f, 5.0f}}},
|
||||
{&ps_round_ne, {{ 2.5f, 3.5f, 4.5f, 5.5f}}, {{ 2.0f, 4.0f, 4.0f, 6.0f}}},
|
||||
{&ps_round_ne, {{ 2.6f, 3.6f, 4.6f, 5.6f}}, {{ 3.0f, 4.0f, 5.0f, 6.0f}}},
|
||||
{&ps_round_ne, {{-2.5f, -3.5f, -4.5f, -5.5f}}, {{-2.0f, -4.0f, -4.0f, -6.0f}}},
|
||||
{&ps_round_ne, {{-2.4f, -3.4f, -4.4f, -5.4f}}, {{-2.0f, -3.0f, -4.0f, -5.0f}}},
|
||||
{&ps_round_ne, {{ INFINITY}}, {{ INFINITY}}},
|
||||
{&ps_round_ne, {{-INFINITY}}, {{-INFINITY}}},
|
||||
|
||||
{&ps_frc, {{ 0.0f}}, {{0.0f, 0.0f}}},
|
||||
{&ps_frc, {{-0.0f}}, {{0.0f, 0.0f}}},
|
||||
{&ps_frc, {{ 1.0f}}, {{0.0f, 0.0f}}},
|
||||
|
Loading…
x
Reference in New Issue
Block a user