dzn: Split the write desc helpers in two halves
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 14 Apr 2022 12:34:19 +0000 (14:34 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 21 Apr 2022 10:43:30 +0000 (10:43 +0000)
commit4da5524c9b43b488f7572a3516a8fa045a456cd4
treeb64c8ce4c67171c412249cb35d791b25495a7099
parent31dc341f3aa10d0e6f5a2164d6697ab26c920b99
dzn: Split the write desc helpers in two halves

Split the write desc helpers in two halves, one taking a descriptor
offset directly, and the other one taking a descriptor set pointer.

This will allow us to pre-calculate descriptor offsets when creating
a descriptor_update template and speed up a bit the write step in that
case.

Reviewed-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15691>
src/microsoft/vulkan/dzn_descriptor_set.c