venus/pipeline: Refactor vn_fix_graphics_pipeline_create_info
authorChad Versace <chadversary@chromium.org>
Thu, 28 Jul 2022 17:16:15 +0000 (10:16 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 10 Aug 2022 18:17:52 +0000 (18:17 +0000)
commit063a13d67e8ac6169fef884dab7a05251664716a
treeb64fd7827a7e5c02dc7851adb4d259dede564409
parent0369fdbe94efcbcc6a21c5b692e06d90c24d9e7f
venus/pipeline: Refactor vn_fix_graphics_pipeline_create_info

- Instead of deferring all fixes until we inspect all pCreateInfos, fix
  each pCreateInfo immediately after we inspect it.
- Do not allocate vn_graphics_pipeline_create_info_fix.
- Add a struct to hold the temporary allocation of fixed pCreateInfos.
  Later commits will place more vk structs here.

Signed-off-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16681>
src/virtio/vulkan/vn_pipeline.c