vkd3d: Validate box in d3d12_command_list_CopyTextureRegion().

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
2019-03-18 10:03:02 +01:00
committed by Alexandre Julliard
parent c960e10ea5
commit e9574e1f39
4 changed files with 29 additions and 0 deletions

View File

@@ -20933,6 +20933,11 @@ static void test_copy_texture_buffer(void)
ID3D12GraphicsCommandList_CopyTextureRegion(command_list,
&dst_location, 32, 0, 0, &src_location, &box);
/* empty box */
set_box(&box, 128, 0, 0, 32, 32, 1);
ID3D12GraphicsCommandList_CopyTextureRegion(command_list,
&dst_location, 0, 0, 0, &src_location, &box);
for (i = 0; i < ARRAY_SIZE(dst_buffers); ++i)
{
transition_resource_state(command_list, dst_buffers[i],