lavapipe: sort bindings before creating descriptor set
authorDave Airlie <airlied@redhat.com>
Tue, 2 Mar 2021 20:50:00 +0000 (06:50 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 2 Mar 2021 22:06:02 +0000 (08:06 +1000)
commitabc724e440ea1809c7c53cee42a99b68afbb1b11
tree701614ad51fcb22211a32d34712f0a13ffd40d8c
parent0a939e788f47734a8a1e7771a3acdf1ea507afde
lavapipe: sort bindings before creating descriptor set

This ensures the dynamic offsets are correct

Fixes: b38879f8c5f5 ("vallium: initial import of the vulkan frontend")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9359>
src/gallium/frontends/lavapipe/lvp_descriptor_set.c