From 53db1da082b9e5a034407553fa14d00d972df5b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Mon, 24 Oct 2016 13:20:09 +0200 Subject: [PATCH] tests: Get rid of D3D12 debug layer warning. --- tests/d3d12.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/d3d12.c b/tests/d3d12.c index f5fa3e59..89604573 100644 --- a/tests/d3d12.c +++ b/tests/d3d12.c @@ -348,6 +348,7 @@ static void get_texture_readback_with_command_list(ID3D12Resource *texture, unsi D3D12_HEAP_PROPERTIES heap_properties; D3D12_RESOURCE_DESC resource_desc; ID3D12Resource *resource; + D3D12_RANGE read_range; unsigned int miplevel; ID3D12Device *device; DXGI_FORMAT format; @@ -411,7 +412,9 @@ static void get_texture_readback_with_command_list(ID3D12Resource *texture, unsi exec_command_list(queue, command_list); 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); ID3D12Device_Release(device);