d3dx11/tests: Fix tests broken by using the HLSL compiler from vkd3d-shader.

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Matteo Bruni 2022-03-28 14:12:16 +02:00 committed by Alexandre Julliard
parent 8a7651fd36
commit f26fa04656
1 changed files with 24 additions and 4 deletions

View File

@ -577,7 +577,12 @@ static void test_D3DX11CompileFromFile(void)
"main", "ps_2_0", 0, 0, NULL, &blob, &errors, &result);
todo_wine ok(hr == S_OK && hr == result, "Got unexpected hr %#lx, result %#lx.\n", hr, result);
todo_wine ok(!!blob, "Got unexpected blob.\n");
ok(!errors, "Got unexpected errors.\n");
todo_wine ok(!errors, "Got unexpected errors.\n");
if (errors)
{
ID3D10Blob_Release(errors);
errors = NULL;
}
if (blob)
{
ID3D10Blob_Release(blob);
@ -590,7 +595,12 @@ static void test_D3DX11CompileFromFile(void)
hr = D3DX11CompileFromFileW(filename, NULL, NULL, "main", "ps_2_0", 0, 0, NULL, &blob, &errors, &result);
todo_wine ok(hr == S_OK && hr == result, "Got unexpected hr %#lx, result %#lx.\n", hr, result);
todo_wine ok(!!blob, "Got unexpected blob.\n");
ok(!errors, "Got unexpected errors.\n");
todo_wine ok(!errors, "Got unexpected errors.\n");
if (errors)
{
ID3D10Blob_Release(errors);
errors = NULL;
}
if (blob)
{
ID3D10Blob_Release(blob);
@ -602,7 +612,12 @@ static void test_D3DX11CompileFromFile(void)
hr = D3DX11CompileFromFileA(filename_a, NULL, NULL, "main", "ps_2_0", 0, 0, NULL, &blob, &errors, &result);
todo_wine ok(hr == S_OK && hr == result, "Got unexpected hr %#lx, result %#lx.\n", hr, result);
todo_wine ok(!!blob, "Got unexpected blob.\n");
ok(!errors, "Got unexpected errors.\n");
todo_wine ok(!errors, "Got unexpected errors.\n");
if (errors)
{
ID3D10Blob_Release(errors);
errors = NULL;
}
if (blob)
{
ID3D10Blob_Release(blob);
@ -615,7 +630,12 @@ static void test_D3DX11CompileFromFile(void)
hr = D3DX11CompileFromFileW(L"source.ps", NULL, NULL, "main", "ps_2_0", 0, 0, NULL, &blob, &errors, &result);
todo_wine ok(hr == S_OK && hr == result, "Got unexpected hr %#lx, result %#lx.\n", hr, result);
todo_wine ok(!!blob, "Got unexpected blob.\n");
ok(!errors, "Got unexpected errors.\n");
todo_wine ok(!errors, "Got unexpected errors.\n");
if (errors)
{
ID3D10Blob_Release(errors);
errors = NULL;
}
if (blob)
{
ID3D10Blob_Release(blob);