From 344f8d1ed40d82d35fd64bd16e22eee9786e0e17 Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Tue, 16 Nov 2021 20:06:10 +0100 Subject: [PATCH] tests: Fix various alignment warnings on 32bit clang. Signed-off-by: Georg Lehmann --- tests/d3d12_query.c | 2 +- tests/d3d12_resource.c | 2 +- tests/d3d12_test_utils.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/d3d12_query.c b/tests/d3d12_query.c index e21ff58c..6c09f8b1 100644 --- a/tests/d3d12_query.c +++ b/tests/d3d12_query.c @@ -77,7 +77,7 @@ void test_create_query_heap(void) void test_query_timestamp(void) { - uint64_t timestamps[4], timestamp_frequency, timestamp_diff, time_diff; + UINT64 timestamps[4], timestamp_frequency, timestamp_diff, time_diff; ID3D12GraphicsCommandList *command_list; D3D12_QUERY_HEAP_DESC heap_desc; struct test_context_desc desc; diff --git a/tests/d3d12_resource.c b/tests/d3d12_resource.c index 2595d095..445422c6 100644 --- a/tests/d3d12_resource.c +++ b/tests/d3d12_resource.c @@ -1356,8 +1356,8 @@ void test_get_copyable_footprints_planar(void) void test_get_copyable_footprints(void) { D3D12_PLACED_SUBRESOURCE_FOOTPRINT layouts[10]; - uint64_t row_sizes[10], total_size; D3D12_RESOURCE_DESC resource_desc; + UINT64 row_sizes[10], total_size; unsigned int sub_resource_count; unsigned int i, j, k, l; ID3D12Device *device; diff --git a/tests/d3d12_test_utils.c b/tests/d3d12_test_utils.c index ca18d2a5..560f425c 100644 --- a/tests/d3d12_test_utils.c +++ b/tests/d3d12_test_utils.c @@ -209,8 +209,8 @@ void upload_texture_data_(unsigned int line, ID3D12Resource *texture, { D3D12_TEXTURE_COPY_LOCATION dst_location, src_location; D3D12_PLACED_SUBRESOURCE_FOOTPRINT *layouts; - uint64_t *row_sizes, required_size; D3D12_RESOURCE_DESC resource_desc; + UINT64 *row_sizes, required_size; ID3D12Resource *upload_buffer; D3D12_MEMCPY_DEST dst_data; ID3D12Device *device;