vulkan/cmd_queue: allocate cmds based on the size of the cmd
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 30 May 2023 15:04:53 +0000 (11:04 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 31 May 2023 03:13:22 +0000 (03:13 +0000)
commit5759ab668e5c23767fec3080251fb2740489c220
tree9bd062b6efbbdb5e9d11498590944859ba3c25be
parent96a404cf8278cba6f5dbb58e5dc39d850b6789f1
vulkan/cmd_queue: allocate cmds based on the size of the cmd

the base size of a vk_cmd_queue_entry is massive since there are a couple
union entries that have a trillion params. by allocating conditionally using
the union member size, memory can be reduced, which will affect some user-facing
api properties

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23322>
src/vulkan/util/vk_cmd_queue_gen.py