tu: Don't preload variable-count descriptors
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 26 Jul 2022 10:20:16 +0000 (12:20 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 14 Sep 2022 12:46:01 +0000 (12:46 +0000)
commit15f3274ea6150ee1b778b9e891269692496cab19
tree442a57832f48b86f014b82120de8cc51ac00e803
parent05266333a0e977368a3ddc596bac0129640ee450
tu: Don't preload variable-count descriptors

We don't know how many descriptors will actually be valid, which could
lead to preloading descriptors out-of-bounds of the descriptor size.
This was leading to GPU hangs on some tests once we enabled inline
uniforms.

Fixes: d9fcf5de55a ("turnip: Enable nonuniform descriptor indexing")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17960>
src/freedreno/vulkan/tu_pipeline.c