d3d11/tests: Initialize buffer data in test_copy_subresource_region().

This test fails randomly on Windows 10 with AMD GPU.

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 2016-11-09 12:35:21 +01:00 committed by Alexandre Julliard
parent adfdfe79b2
commit 9e2ac90614
1 changed files with 2 additions and 1 deletions

View File

@ -7157,7 +7157,8 @@ static void test_copy_subresource_region(void)
ID3D11DeviceContext_PSSetSamplers(context, 0, 1, &sampler_state);
ID3D11DeviceContext_PSSetShader(context, ps, NULL, 0);
dst_buffer = create_buffer(device, D3D11_BIND_CONSTANT_BUFFER, sizeof(float_colors), NULL);
memset(float_colors, 0, sizeof(float_colors));
dst_buffer = create_buffer(device, D3D11_BIND_CONSTANT_BUFFER, sizeof(float_colors), float_colors);
ID3D11DeviceContext_PSSetConstantBuffers(context, 0, 1, &dst_buffer);
src_buffer = create_buffer(device, 0, 256 * sizeof(*float_colors), NULL);