libs/vkd3d: Implement d3d12_device_GetAdapterLuid().

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>
This commit is contained in:
Józef Kucia
2018-01-23 13:30:16 +01:00
committed by Alexandre Julliard
parent c9c6caae98
commit 4cd36fc553
5 changed files with 43 additions and 10 deletions

View File

@ -299,6 +299,28 @@ static void test_physical_device(void)
ok(!refcount, "Instance has %u references left.\n", refcount);
}
static void test_adapter_luid(void)
{
struct vkd3d_device_create_info create_info;
ID3D12Device *device;
ULONG refcount;
HRESULT hr;
LUID luid;
create_info = device_default_create_info;
create_info.adapter_luid.HighPart = 0xdeadc0de;
create_info.adapter_luid.LowPart = 0xdeadbeef;
hr = vkd3d_create_device(&create_info, &IID_ID3D12Device, (void **)&device);
ok(hr == S_OK, "Failed to create device, hr %#x.\n", hr);
luid = ID3D12Device_GetAdapterLuid(device);
ok(luid.HighPart == 0xdeadc0de && luid.LowPart == 0xdeadbeef,
"Got unexpected LUID %08x:%08x.\n", luid.HighPart, luid.LowPart);
refcount = ID3D12Device_Release(device);
ok(!refcount, "Device has %u references left.\n", refcount);
}
static void test_vkd3d_queue(void)
{
ID3D12CommandQueue *direct_queue, *compute_queue, *copy_queue;
@ -362,5 +384,6 @@ START_TEST(vkd3d_api)
run_test(test_create_device);
run_test(test_required_device_extensions);
run_test(test_physical_device);
run_test(test_adapter_luid);
run_test(test_vkd3d_queue);
}