vkd3d-shader: Make the paramater allocator slab size at least MAX_REG_OUTPUT.

The allocator is used for DXIL input/output parameter arrays.
This commit is contained in:
Conor McCarthy 2023-08-17 23:38:42 +10:00 committed by Alexandre Julliard
parent 257a351f37
commit b765f3c770
Notes: Alexandre Julliard 2023-09-25 22:27:19 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/320

View File

@ -1773,7 +1773,7 @@ static struct vkd3d_shader_param_node *shader_param_allocator_node_create(
static void shader_param_allocator_init(struct vkd3d_shader_param_allocator *allocator,
unsigned int count, unsigned int stride)
{
allocator->count = max(count, 4);
allocator->count = max(count, MAX_REG_OUTPUT);
allocator->stride = stride;
allocator->head = NULL;
allocator->current = NULL;