d3d10core/tests: Add test for NULL resource parameters for _CopySubresourceRegion().

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2020-09-18 13:03:30 +03:00 committed by Alexandre Julliard
parent 434a6444c3
commit 1799afe9c9
1 changed files with 9 additions and 0 deletions

View File

@ -9819,6 +9819,15 @@ static void test_copy_subresource_region(void)
ID3D10Device_ClearRenderTargetView(device, test_context.backbuffer_rtv, red);
if (!is_warp_device(device))
{
/* Broken on Win2008 Warp */
ID3D10Device_CopySubresourceRegion(device, (ID3D10Resource *)dst_texture, 0,
1, 1, 0, NULL, 0, &box);
ID3D10Device_CopySubresourceRegion(device, NULL, 0,
1, 1, 0, (ID3D10Resource *)src_texture, 0, &box);
}
set_box(&box, 0, 0, 0, 2, 2, 1);
ID3D10Device_CopySubresourceRegion(device, (ID3D10Resource *)dst_texture, 0,
1, 1, 0, (ID3D10Resource *)src_texture, 0, &box);