panfrost/midgard: Add a condense_writemask() helper
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 24 Jan 2020 08:22:48 +0000 (09:22 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 27 Jan 2020 15:24:54 +0000 (15:24 +0000)
commitaa973fc14e140753d3c5b47eda79e451c1dc61ed
tree07af1ad1d4b580a24d6e0a284b9dad001c28bf53
parent2dc63d39d31d56ce44154372c1d1771c73d22a68
panfrost/midgard: Add a condense_writemask() helper

This way we can convert an 8-bit writemask (Midgard specific
representation) into the more common 1-bit/component representation.

8-bit mode is not supported yet, as we're not sure how the writemask is
encoded for this mode.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3536>
src/panfrost/midgard/helpers.h