panfrost: Determine framebuffer format bits late
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 7 Mar 2019 04:42:49 +0000 (04:42 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Tue, 12 Mar 2019 02:37:41 +0000 (02:37 +0000)
commitf9dc1ebc0d5cc475b8729f2dc4f6dac8c83e52a1
tree5ad2ebdffa88df7403a9959a9799e702c7e5f6b0
parent7ba18cdfa9a6e54f802bbab96058398dcc6803f7
panfrost: Determine framebuffer format bits late

Again, these formats are only properly known at the time of fragment job
emit. Rather than hardcoding the format, at least for MFBD we begin to
construct the format bits on-demand. This cleans up the code,
futureproofs for ES3 framebuffer formats, and should fix bugs regarding
FBO colour swizzles.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Tomeu Vizoso <tomeu.visozo@collabora.com>
src/gallium/drivers/panfrost/pan_context.c