vkd3d: Handle base offset in GetCopyableFootprints().

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 2019-01-18 10:25:46 +01:00 committed by Alexandre Julliard
parent e37cb78a22
commit aff7ff4fcf

View File

@ -2367,9 +2367,6 @@ static void STDMETHODCALLTYPE d3d12_device_GetCopyableFootprints(ID3D12Device *i
return; return;
} }
if (base_offset)
FIXME("Ignoring base offset %#"PRIx64".\n", base_offset);
offset = 0; offset = 0;
total = 0; total = 0;
for (i = 0; i < sub_resource_count; ++i) for (i = 0; i < sub_resource_count; ++i)
@ -2385,7 +2382,7 @@ static void STDMETHODCALLTYPE d3d12_device_GetCopyableFootprints(ID3D12Device *i
if (layouts) if (layouts)
{ {
layouts[i].Offset = offset; layouts[i].Offset = base_offset + offset;
layouts[i].Footprint.Format = desc->Format; layouts[i].Footprint.Format = desc->Format;
layouts[i].Footprint.Width = width; layouts[i].Footprint.Width = width;
layouts[i].Footprint.Height = height; layouts[i].Footprint.Height = height;