panfrost: Don't allocate empty varying buffer
authorAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 20 May 2021 18:10:25 +0000 (14:10 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 1 Jun 2021 19:10:28 +0000 (19:10 +0000)
commite95abff4de47d7ce58cc8384a2bfc8b59d73df78
treeab7b8ceed9e71cbc88f6af308e8069ec67d54086
parentc34b760b9f99ecbf1218e7b612a32ce43c7283bf
panfrost: Don't allocate empty varying buffer

If the FS doesn't actually read any varyings, there's no point.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11074>
src/gallium/drivers/panfrost/pan_cmdstream.c