vkd3d-shader: Implement DTOU instruction.

Signed-off-by: Conor McCarthy <cmccarthy@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Conor McCarthy
2021-08-12 12:55:14 +10:00
committed by Alexandre Julliard
parent c61b573d9c
commit 88c08df03b
6 changed files with 12 additions and 6 deletions

View File

@@ -10022,12 +10022,12 @@ static void test_shader_instructions(void)
{&ps_dge, {.d = {{1.5, 1.0}}}, {{0xffffffff}}, true},
{&ps_dlt, {.d = {{0.0, 1.0}}}, {{0xffffffff}}, true},
{&ps_dlt, {.d = {{1.0, 1.0}}}, {{0x00000000}}, true},
{&ps_dtou, {.d = {{ -NAN}}}, {{ 0, 0 }}, true, true},
{&ps_dtou, {.d = {{ NAN}}}, {{ 0, 0 }}, true, true},
{&ps_dtou, {.d = {{-INFINITY}}}, {{ 0, ~0u}}, true, true},
{&ps_dtou, {.d = {{ INFINITY}}}, {{~0u, 0 }}, true, true},
{&ps_dtou, {.d = {{ -1.0}}}, {{ 0, 1 }}, true, true},
{&ps_dtou, {.d = {{ 1.0}}}, {{ 1, 0 }}, true, true},
{&ps_dtou, {.d = {{ -NAN}}}, {{ 0, 0 }}, true},
{&ps_dtou, {.d = {{ NAN}}}, {{ 0, 0 }}, true},
{&ps_dtou, {.d = {{-INFINITY}}}, {{ 0, ~0u}}, true},
{&ps_dtou, {.d = {{ INFINITY}}}, {{~0u, 0 }}, true},
{&ps_dtou, {.d = {{ -1.0}}}, {{ 0, 1 }}, true},
{&ps_dtou, {.d = {{ 1.0}}}, {{ 1, 0 }}, true},
{&ps_dtoi, {.d = {{ 1.0}}}, {.i = {1, -1}}, true},
{&ps_dtof, {.d = {{ 1.5}}}, {.f = {1.5f, -1.5f}}, true},
{&ps_utod, {.u = {{3, 0xffffffff}}}, {.d = {3.0, 4294967295.0}}, true, true},