panfrost: Decode render target swizzle/channels
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 24 Feb 2019 06:22:23 +0000 (06:22 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Mon, 25 Feb 2019 04:49:50 +0000 (04:49 +0000)
commitf943047e48698c7d3a482835f335d0d69a02014c
treefb3de8d8ae932f1189737c1b86b1121bb4a8809b
parentc6be9969d25e60544a42a4cfd6062dd2a7e1ac1d
panfrost: Decode render target swizzle/channels

On MRT-capable systems, the framebuffer format is encoded as a 64-bit
word in the render target descriptor. Previously, the two 32-bit
words were exposed as opaque hex values. This commit identifies a 12-bit
Mali swizzle and a 2-bit channel counter, removing some of the magic. It
also adds decoding support for the AFBC and MSAA enable bits, which were
already known but otherwise ignored in pandecode.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/panfrost/include/panfrost-job.h
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pandecode/decode.c