panfrost: Fix crash with GALLIUM_HUD
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 20 May 2022 20:30:46 +0000 (16:30 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 26 May 2022 14:01:42 +0000 (14:01 +0000)
commit9773ed1dc74b98019640d909cdc2b5d6cffae85a
tree0e663119f3dd7737cfb031644305cd026a5a3dd2
parentef76b83633dc34eefed11f295cb3185c3991fecd
panfrost: Fix crash with GALLIUM_HUD

Due to the order of binding shaders, GALLIUM_HUD triggered a NULL pointer
dereference in the new shader variants code.

Fixes: 0fcddd4d2c4 ("pan/bi: Rework varying linking on Valhall")
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16707>
src/gallium/drivers/panfrost/pan_context.c