Module: vkd3d Branch: master Commit: c726a1df0a3c13a514c3f05729710faf2ad62d51 URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=c726a1df0a3c13a514c3f057...
Author: Zhiyi Zhang zzhang@codeweavers.com Date: Wed Apr 3 16:39:10 2019 +0800
tests: Add more tests for mapping texture on custom heaps.
Signed-off-by: Zhiyi Zhang zzhang@codeweavers.com 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
---
tests/d3d12.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/tests/d3d12.c b/tests/d3d12.c index 00005c4..6abc1df 100644 --- a/tests/d3d12.c +++ b/tests/d3d12.c @@ -5969,6 +5969,11 @@ static void test_map_resource(void) ok(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr); ok(data == (void *)0xdeadbeef, "Pointer was modified %p.\n", data);
+ /* Texture on custom heaps can be mapped, but the address doesn't get disclosed to applications */ + hr = ID3D12Resource_Map(resource, 0, NULL, NULL); + todo ok(hr == S_OK, "Got unexpected hr %#x.\n", hr); + ID3D12Resource_Unmap(resource, 0, NULL); + ID3D12Resource_Release(resource); }