mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
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:
committed by
Alexandre Julliard
parent
c960e10ea5
commit
e9574e1f39
@@ -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],
|
||||
|
Reference in New Issue
Block a user