diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2019-10-01 16:53:36 +0300 |
---|---|---|
committer | Alexandre Julliard <julliard@winehq.org> | 2019-10-01 20:16:08 +0300 |
commit | 3f1a1ffc4dacbdfb27a10c808f46d7bb4b9ffe59 (patch) | |
tree | 0b178af07411ae86cbd26f6fafe58e860a528751 | |
parent | 19b673923bd75b642c4eea5eac6f37460202bc66 (diff) |
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>
-rw-r--r-- | tests/d3d12.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/d3d12.c b/tests/d3d12.c index c7477799..7d381234 100644 --- a/tests/d3d12.c +++ b/tests/d3d12.c @@ -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); |