panfrost: Set attribs and attrib_bufs to NULL when attrib_count = 0
authorBoris Brezillon <boris.brezillon@collabora.com>
Sat, 30 Jan 2021 10:36:38 +0000 (11:36 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 2 Feb 2021 08:04:15 +0000 (09:04 +0100)
commit3913089d2d87623e4be6169cf5f0902bd1a29e3f
treef2f15ee7537f8d684ce6b18ab3e396a50668e3cc
parent81a21ea9cd1134fd22ed07d83925976bd3625280
panfrost: Set attribs and attrib_bufs to NULL when attrib_count = 0

It's just easier to read pandecode traces when those pointers are set
to NULL for the attribute_count=0 case.

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