panfrost: Handle empty shaders
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 16 Dec 2019 21:45:28 +0000 (16:45 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 17 Dec 2019 17:42:57 +0000 (17:42 +0000)
commitbf5d8cfd282396f0ab02bfdcfe1af2be49f35fa2
tree2a4cbf0934cb3d4cab03c0225d0973d1ae55b363
parent35418f677051b75a9d8b37bafc806303bc3b44ad
panfrost: Handle empty shaders

I didn't realize this was in spec, but it fixes a crash in shaderdb.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3125>
src/gallium/drivers/panfrost/pan_assemble.c