Module: vkd3d Branch: master Commit: e4e7368c1c1881213a1f12e5db62211b8ec7aab8 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/e4e7368c1c1881213a1f12e5db6221...
Author: Giovanni Mascellani gmascellani@codeweavers.com Date: Wed Jul 17 15:06:53 2024 +0200
tests: Pad the constant buffer in test_update_compute_descriptor_tables() to 256 bytes.
The D3D12 debug layer signals an error otherwise.
---
tests/d3d12.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/tests/d3d12.c b/tests/d3d12.c index f72f3632..8ff6e6ef 100644 --- a/tests/d3d12.c +++ b/tests/d3d12.c @@ -17720,6 +17720,8 @@ static void test_update_compute_descriptor_tables(void) { struct uvec4 srv_size[2]; struct uvec4 uav_size[2]; + /* Constant buffers need to be padded to 256 bytes. */ + char pad[D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT - 2 * sizeof(struct uvec4[2])]; };
D3D12_ROOT_SIGNATURE_DESC root_signature_desc;