minor simplification for consistency
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23322>
LVP_FROM_HANDLE(lvp_descriptor_update_template, templ, descriptorUpdateTemplate);
size_t info_size = 0;
struct vk_cmd_queue_entry *cmd = vk_zalloc(cmd_buffer->vk.cmd_queue.alloc,
- sizeof(*cmd), 8,
+ vk_cmd_queue_type_sizes[VK_CMD_PUSH_DESCRIPTOR_SET_WITH_TEMPLATE_KHR], 8,
VK_SYSTEM_ALLOCATION_SCOPE_COMMAND);
if (!cmd)
return;
% endfor
)
{
- struct vk_cmd_queue_entry *cmd = vk_zalloc(queue->alloc,
- sizeof(struct vk_cmd_queue_entry_base)
-% if len(c.params) > 1:
- + sizeof(struct ${to_struct_name(c.name)})
-% endif
- , 8,
+ struct vk_cmd_queue_entry *cmd = vk_zalloc(queue->alloc, vk_cmd_queue_type_sizes[${to_enum_name(c.name)}], 8,
VK_SYSTEM_ALLOCATION_SCOPE_OBJECT);
if (!cmd) return VK_ERROR_OUT_OF_HOST_MEMORY;