panfrost: Fix NULL derefs in pan_cmdstream.c
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 19 Feb 2021 14:57:26 +0000 (09:57 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Feb 2021 19:17:49 +0000 (19:17 +0000)
commita124c47b9f90c3f18032928c24a06d157a0334c1
treeb7c775aba5085efc9afcdccc5d1023eca7b6cbc3
parent4f17852474299a71f173ac1ce4769db83971945a
panfrost: Fix NULL derefs in pan_cmdstream.c

Auditing nr_cbufs. Note we have to augment the blending logic a bit to
use the same 'no blend' case for missing RTs as we do for depth-only
passes.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9164>
src/gallium/drivers/panfrost/pan_cmdstream.c