panfrost: Disable tib read/write when colourmask = 0x0
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 20 May 2020 16:56:01 +0000 (12:56 -0400)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 21 May 2020 19:48:53 +0000 (15:48 -0400)
commit3e4e849e6a9633702e26ee16b4a594361e42013f
tree136fb66441c3a86f6a678251ba39b941180559d3
parentf69b6e91164fe672c1ae9e54b6f17387d81cd9e6
panfrost: Disable tib read/write when colourmask = 0x0

There might still be Z/S updates so we can't drop the whole shader but
we can shortcircuit the colour pipeline.

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