d3d11/tests: Add test for stream output buffer stride equal to 0.

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>
This commit is contained in:
Józef Kucia 2017-04-04 12:35:56 +02:00 committed by Alexandre Julliard
parent 65254782d9
commit b82a566273
1 changed files with 6 additions and 0 deletions

View File

@ -16520,6 +16520,9 @@ static void test_stream_output(void)
stride[1] = 1;
check_so_desc(device, gs_code, sizeof(gs_code), so_declaration, ARRAY_SIZE(so_declaration),
stride, 2, D3D11_SO_NO_RASTERIZED_STREAM);
stride[0] = 0;
check_invalid_so_desc(device, gs_code, sizeof(gs_code), so_declaration, ARRAY_SIZE(so_declaration),
stride, 1, D3D11_SO_NO_RASTERIZED_STREAM);
/* Rasterizer stream */
for (i = 0; i < D3D11_SO_STREAM_COUNT; ++i)
@ -16773,6 +16776,9 @@ static void test_fl10_stream_output_desc(void)
&stride[1], 1, 0);
check_invalid_so_desc(device, gs_code, sizeof(gs_code), so_declaration, ARRAY_SIZE(so_declaration),
stride, 2, 0);
stride[0] = 0;
check_invalid_so_desc(device, gs_code, sizeof(gs_code), so_declaration, ARRAY_SIZE(so_declaration),
stride, 1, 0);
/* Rasterizer stream */
check_invalid_so_desc(device, gs_code, sizeof(gs_code), so_declaration, ARRAY_SIZE(so_declaration),