mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d: Get rid of asserts from d3d12_device_CopyDescriptors().
Do not require that source range sizes match destination range sizes. It works on Windows even though D3D12 validation layers throw errors about size mismatches. 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:
parent
6851bc6667
commit
3e8d0e7a6a
@ -1997,17 +1997,14 @@ static void STDMETHODCALLTYPE d3d12_device_CopyDescriptors(ID3D12Device *iface,
|
||||
dst_range_size = dst_descriptor_range_sizes ? dst_descriptor_range_sizes[dst_range_idx] : 1;
|
||||
}
|
||||
|
||||
assert(dst_range_idx < dst_descriptor_range_count);
|
||||
assert(dst_idx < dst_range_size);
|
||||
if (dst_range_idx >= dst_descriptor_range_count)
|
||||
break;
|
||||
|
||||
d3d12_desc_copy(dst++, src++, device);
|
||||
|
||||
++dst_idx;
|
||||
}
|
||||
}
|
||||
|
||||
assert(dst_idx == dst_range_size);
|
||||
assert(dst_range_idx == dst_descriptor_range_count - 1);
|
||||
}
|
||||
|
||||
static void STDMETHODCALLTYPE d3d12_device_CopyDescriptorsSimple(ID3D12Device *iface,
|
||||
|
Loading…
x
Reference in New Issue
Block a user