panvk: Fix per-instance attribute handling
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 29 Sep 2021 11:21:21 +0000 (13:21 +0200)
committerJason Ekstrand <jason.ekstrand@collabora.com>
Wed, 16 Mar 2022 14:57:51 +0000 (09:57 -0500)
commita08b6953865eef1ae6355bb99546e23e6354b917
tree0cbfcaf97a7333da0792a3dcc0d3a0fb370367a1
parent417cf3d35e06e559c81c31a1a48dee809417946c
panvk: Fix per-instance attribute handling

We were assuming per-vertex attributes so far. Let's extend the logic
to support per-instance attributes with or without custom instance
divisors.  Now that we've got it all hooked up, we can enable
VK_EXT_vertex_attribute_divisor.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15295>
src/panfrost/vulkan/panvk_private.h
src/panfrost/vulkan/panvk_vX_cmd_buffer.c
src/panfrost/vulkan/panvk_vX_cs.c
src/panfrost/vulkan/panvk_vX_cs.h
src/panfrost/vulkan/panvk_vX_pipeline.c