Module: wine Branch: master Commit: 92a2ebc680a60677c4736d97cae9574912f9f9a6 URL: https://gitlab.winehq.org/wine/wine/-/commit/92a2ebc680a60677c4736d97cae9574...
Author: Matteo Bruni mbruni@codeweavers.com Date: Wed Apr 12 09:16:27 2023 +0200
d3dcompiler/tests: Add a couple tests for minimum size in D3DStripShader().
---
dlls/d3dcompiler_43/tests/blob.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/dlls/d3dcompiler_43/tests/blob.c b/dlls/d3dcompiler_43/tests/blob.c index 8d919743364..f5984802e6d 100644 --- a/dlls/d3dcompiler_43/tests/blob.c +++ b/dlls/d3dcompiler_43/tests/blob.c @@ -371,9 +371,15 @@ static void test_get_blob_part(void) hr = D3DStripShader(NULL, test_blob_part[6], 0, &blob); ok(hr == D3DERR_INVALIDCALL, "Got unexpected hr %#lx.\n", hr);
- hr = D3DStripShader(test_blob_part, 2, 0, &blob); + hr = D3DStripShader(test_blob_part, 7 * sizeof(DWORD), 0, &blob); ok(hr == D3DERR_INVALIDCALL, "Got unexpected hr %#lx.\n", hr);
+ hr = D3DStripShader(test_blob_part, 8 * sizeof(DWORD), 0, &blob); +#if D3D_COMPILER_VERSION < 46 + todo_wine +#endif + ok(hr == expected, "Got unexpected hr %#lx.\n", hr); + hr = D3DStripShader(test_blob_part, test_blob_part[6], 0, NULL); ok(hr == E_FAIL, "Got unexpected hr %#lx.\n", hr);