Module: wine Branch: master Commit: a639324b3d4eb9630c6f2ee214930094f0735bb4 URL: https://gitlab.winehq.org/wine/wine/-/commit/a639324b3d4eb9630c6f2ee21493009...
Author: Matteo Bruni mbruni@codeweavers.com Date: Thu Apr 6 23:19:16 2023 +0200
d3dcompiler/tests: Add a couple tests for minimum size in D3DGetBlobPart().
---
dlls/d3dcompiler_43/tests/blob.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
diff --git a/dlls/d3dcompiler_43/tests/blob.c b/dlls/d3dcompiler_43/tests/blob.c index 90e4ef3d7da..8d919743364 100644 --- a/dlls/d3dcompiler_43/tests/blob.c +++ b/dlls/d3dcompiler_43/tests/blob.c @@ -150,6 +150,17 @@ static void test_get_blob_part(void) ok(hr == D3DERR_INVALIDCALL, "Got unexpected hr %#lx.\n", hr); ok(blob2 == blob, "D3DGetBlobPart failed got %p, expected %p\n", blob, blob2);
+ hr = D3DGetBlobPart(test_blob_part, 7 * sizeof(DWORD), D3D_BLOB_INPUT_SIGNATURE_BLOB, 0, &blob); + ok(hr == D3DERR_INVALIDCALL, "Got unexpected hr %#lx.\n", hr); + ok(blob2 == blob, "D3DGetBlobPart failed got %p, expected %p\n", blob, blob2); + + hr = D3DGetBlobPart(test_blob_part, 8 * sizeof(DWORD), D3D_BLOB_INPUT_SIGNATURE_BLOB, 0, &blob); +#if D3D_COMPILER_VERSION < 46 + todo_wine +#endif + ok(hr == expected, "Got unexpected hr %#lx.\n", hr); + ok(blob2 == blob, "D3DGetBlobPart failed got %p, expected %p\n", blob, blob2); + hr = D3DGetBlobPart(test_blob_part, test_blob_part[6], D3D_BLOB_INPUT_SIGNATURE_BLOB, 0, NULL); ok(hr == D3DERR_INVALIDCALL, "Got unexpected hr %#lx.\n", hr);