vkd3d-shader/dxil: Get rid of sm6_parser_require_space().

It's not obvious what this last remaining use of
sm6_parser_require_space() is preallocating space for, and that's as
good of a reason as any to get rid of it.
This commit is contained in:
Francisco Casas
2025-09-30 09:26:08 -03:00
committed by Henri Verbeet
parent 03a58d74b9
commit da4d5ef339
Notes: Henri Verbeet 2025-10-03 00:55:08 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1761
3 changed files with 1 additions and 27 deletions

View File

@@ -477,7 +477,7 @@ void *shader_param_allocator_get(struct vkd3d_shader_param_allocator *allocator,
return params;
}
bool shader_instruction_array_reserve(struct vkd3d_shader_instruction_array *array, size_t reserve)
static bool shader_instruction_array_reserve(struct vkd3d_shader_instruction_array *array, size_t reserve)
{
if (!vkd3d_array_reserve((void **)&array->elements, &array->capacity, reserve, sizeof(*array->elements)))
{