mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d: Add test case for undisclosed CPU VA in Map.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
19b673923b
commit
3f1a1ffc4d
@ -6708,6 +6708,11 @@ static void test_map_resource(void)
|
||||
ID3D12Resource_Unmap(resource, 1, NULL);
|
||||
ID3D12Resource_Unmap(resource, 0, NULL);
|
||||
|
||||
/* Passing NULL to Map should map, but not disclose the CPU VA to caller. */
|
||||
hr = ID3D12Resource_Map(resource, 0, NULL, NULL);
|
||||
ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
|
||||
ID3D12Resource_Unmap(resource, 0, NULL);
|
||||
|
||||
ID3D12Resource_Release(resource);
|
||||
|
||||
refcount = ID3D12Device_Release(device);
|
||||
|
Loading…
x
Reference in New Issue
Block a user