vulkan,lavapipe: Simplify command recording code-gen
authorJason Ekstrand <jason.ekstrand@collabora.com>
Mon, 7 Feb 2022 23:52:25 +0000 (17:52 -0600)
committerMarge Bot <emma+marge@anholt.net>
Tue, 8 Feb 2022 19:50:57 +0000 (19:50 +0000)
commit4c61c8a0b85e767703328cf819807d92b7570691
treee75331325354e4c151e5f2558fe7e6aeda831f6f
parentcb781fc350108584116280fc597c695d2f476c68
vulkan,lavapipe: Simplify command recording code-gen

The Entrypoint class already has utilities for gettingt he parameter
list as either declarations or as comma-separated argument names for a
call.  Use that instead of hand-rolling it.  The only modification we
need to make is to add the ability to start the list somewhere other
than at the beginning.

Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14919>
src/vulkan/util/vk_commands_gen.py
src/vulkan/util/vk_entrypoints.py