pan/midgard: Check for null consts
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 3 Feb 2020 19:32:22 +0000 (14:32 -0500)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Tue, 4 Feb 2020 07:24:33 +0000 (08:24 +0100)
commit0f3eb7989b38239d08d729a488ad6b737ec61ad8
treef5f325b44dc5ce35f13eccc5cb4e36a754a902d6
parent8ec4028d4057da19708b4f4bce88ee16f96f322a
pan/midgard: Check for null consts

Valid shaders shouldn't hit this, but Coverity doesn't know that.

CID 1458029:    (FORWARD_NULL)
Passing null pointer "consts" to "print_scalar_field", which dereferences it.

Tomeu: Fix name of variable

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