panfrost; Disable AFBC for depth buffers
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Wed, 13 Mar 2019 01:31:30 +0000 (01:31 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 14 Mar 2019 22:47:12 +0000 (22:47 +0000)
commitc6a725888f82d51fc70d7e1a2508afdb1b215064
tree8eadc5ea8ea0e120dbee53673bd7869c02901fd4
parent54e45d1d736954bd9f11d6825c7b242e16f8283b
panfrost; Disable AFBC for depth buffers

For inexplicable reasons, the depth buffer is faster if kept as linear,
whereas the colour buffers are faster if AFBC. Given both code paths are
available, we'll choose the faster one of each (which also helps with
testing coverage).

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_resource.c