mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
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:
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
@@ -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,
|
static void shader_param_allocator_init(struct vkd3d_shader_param_allocator *allocator,
|
||||||
unsigned int count, unsigned int stride)
|
unsigned int count, unsigned int stride)
|
||||||
{
|
{
|
||||||
allocator->count = max(count, 4);
|
allocator->count = max(count, MAX_REG_OUTPUT);
|
||||||
allocator->stride = stride;
|
allocator->stride = stride;
|
||||||
allocator->head = NULL;
|
allocator->head = NULL;
|
||||||
allocator->current = NULL;
|
allocator->current = NULL;
|
||||||
|
Reference in New Issue
Block a user