libs/vkd3d: Check if device memory is CPU accessible in d3d12_resource_Map().

This commit is contained in:
Józef Kucia
2016-10-24 13:20:09 +02:00
parent 3161f346b6
commit e19e428ed0
3 changed files with 27 additions and 3 deletions

View File

@@ -2716,7 +2716,7 @@ static void test_map_resource(void)
/* Resources on a DEFAULT heap cannot be mapped. */
hr = ID3D12Resource_Map(resource, 0, NULL, &data);
todo(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr);
ok(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr);
ID3D12Resource_Release(resource);