panfrost: Explicitly handle nr_cbufs=0 case
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 17 Aug 2020 23:41:48 +0000 (19:41 -0400)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 20 Aug 2020 16:15:01 +0000 (18:15 +0200)
commit8249e2b9a23dfa45e8e235a188fb183d609eac96
treeb9c7e89f24cca8f9be743f755f6ea4520eba14b5
parentdc7fbe114bac338e7075efdb325053ef41dad91c
panfrost: Explicitly handle nr_cbufs=0 case

Avoids some indirection around colour buffer count.

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/6373>
src/gallium/drivers/panfrost/pan_cmdstream.c