Hans-Kristian Arntzen : vkd3d: Add test case for undisclosed CPU VA in Map.

Alexandre Julliard julliard at winehq.org
Tue Oct 1 15:42:41 CDT 2019


Module: vkd3d
Branch: master
Commit: 3f1a1ffc4dacbdfb27a10c808f46d7bb4b9ffe59
URL:    https://source.winehq.org/git/vkd3d.git/?a=commit;h=3f1a1ffc4dacbdfb27a10c808f46d7bb4b9ffe59

Author: Hans-Kristian Arntzen <post at arntzen-software.no>
Date:   Tue Oct  1 15:53:36 2019 +0200

vkd3d: Add test case for undisclosed CPU VA in Map.

Signed-off-by: Hans-Kristian Arntzen <post at arntzen-software.no>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 tests/d3d12.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/d3d12.c b/tests/d3d12.c
index c747779..7d38123 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);




More information about the wine-cvs mailing list