mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Get rid of D3D12 debug layer warning.
This commit is contained in:
parent
f35b311aa1
commit
53db1da082
@ -348,6 +348,7 @@ static void get_texture_readback_with_command_list(ID3D12Resource *texture, unsi
|
|||||||
D3D12_HEAP_PROPERTIES heap_properties;
|
D3D12_HEAP_PROPERTIES heap_properties;
|
||||||
D3D12_RESOURCE_DESC resource_desc;
|
D3D12_RESOURCE_DESC resource_desc;
|
||||||
ID3D12Resource *resource;
|
ID3D12Resource *resource;
|
||||||
|
D3D12_RANGE read_range;
|
||||||
unsigned int miplevel;
|
unsigned int miplevel;
|
||||||
ID3D12Device *device;
|
ID3D12Device *device;
|
||||||
DXGI_FORMAT format;
|
DXGI_FORMAT format;
|
||||||
@ -411,7 +412,9 @@ static void get_texture_readback_with_command_list(ID3D12Resource *texture, unsi
|
|||||||
exec_command_list(queue, command_list);
|
exec_command_list(queue, command_list);
|
||||||
wait_queue_idle(device, queue);
|
wait_queue_idle(device, queue);
|
||||||
|
|
||||||
hr = ID3D12Resource_Map(resource, 0, NULL, &rb->data);
|
read_range.Begin = 0;
|
||||||
|
read_range.End = resource_desc.Width;
|
||||||
|
hr = ID3D12Resource_Map(resource, 0, &read_range, &rb->data);
|
||||||
ok(SUCCEEDED(hr), "Map failed, hr %#x.\n", hr);
|
ok(SUCCEEDED(hr), "Map failed, hr %#x.\n", hr);
|
||||||
|
|
||||||
ID3D12Device_Release(device);
|
ID3D12Device_Release(device);
|
||||||
|
Loading…
Reference in New Issue
Block a user