vkd3d: Use at least D3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENT for textures.

It's the smallest alignment for textures supported by D3D12. Vulkan
implementations may return lower values.

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-11-16 13:28:24 +01:00
committed by Alexandre Julliard
parent 06c3d1779e
commit a5646b3aff
2 changed files with 5 additions and 0 deletions

View File

@@ -21218,6 +21218,8 @@ static void test_suballocate_small_textures(void)
check_alignment(info.SizeInBytes, info.Alignment);
}
ok(info.Alignment >= D3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENT, "Got alignment %"PRIu64".\n", info.Alignment);
heap_desc.SizeInBytes = ARRAY_SIZE(textures) * info.SizeInBytes;
memset(&heap_desc.Properties, 0, sizeof(heap_desc.Properties));
heap_desc.Properties.Type = D3D12_HEAP_TYPE_DEFAULT;