Module: wine Branch: master Commit: dcd7d336e41453fb84251fc15c4f05efae2f362b URL: http://source.winehq.org/git/wine.git/?a=commit;h=dcd7d336e41453fb84251fc15c...
Author: Józef Kucia jkucia@codeweavers.com Date: Fri Feb 3 14:08:45 2017 +0100
d3d10core/tests: Extend queries tests.
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
---
dlls/d3d10core/tests/device.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
diff --git a/dlls/d3d10core/tests/device.c b/dlls/d3d10core/tests/device.c index 7d75487..173d59a 100644 --- a/dlls/d3d10core/tests/device.c +++ b/dlls/d3d10core/tests/device.c @@ -3890,8 +3890,19 @@ static void test_timestamp_query(void) data_size = ID3D10Query_GetDataSize(timestamp_disjoint_query); ok(data_size == sizeof(disjoint), "Got unexpected data size %u.\n", data_size);
+ hr = ID3D10Query_GetData(timestamp_disjoint_query, NULL, 0, 0); + todo_wine ok(hr == DXGI_ERROR_INVALID_CALL, "Got unexpected hr %#x.\n", hr); + hr = ID3D10Query_GetData(timestamp_disjoint_query, &disjoint, sizeof(disjoint), 0); + todo_wine ok(hr == DXGI_ERROR_INVALID_CALL, "Got unexpected hr %#x.\n", hr); + /* Test a TIMESTAMP_DISJOINT query. */ ID3D10Query_Begin(timestamp_disjoint_query); + + hr = ID3D10Query_GetData(timestamp_disjoint_query, NULL, 0, 0); + todo_wine ok(hr == DXGI_ERROR_INVALID_CALL, "Got unexpected hr %#x.\n", hr); + hr = ID3D10Query_GetData(timestamp_disjoint_query, &disjoint, sizeof(disjoint), 0); + todo_wine ok(hr == DXGI_ERROR_INVALID_CALL, "Got unexpected hr %#x.\n", hr); + ID3D10Query_End(timestamp_disjoint_query); for (i = 0; i < 500; ++i) {