tests: Pad the constant buffer in test_update_compute_descriptor_tables() to 256 bytes.

The D3D12 debug layer signals an error otherwise.
This commit is contained in:
Giovanni Mascellani 2024-07-17 15:06:53 +02:00 committed by Henri Verbeet
parent a876e0b192
commit e4e7368c1c
Notes: Henri Verbeet 2024-07-17 16:00:27 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/947

View File

@ -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;