panfrost: Enable AFBC buffer sharing
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 9 Apr 2021 23:18:48 +0000 (19:18 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 12 Apr 2021 15:55:55 +0000 (15:55 +0000)
commite00d94f14f7f75d4974c1d48b4ec177f052723d3
tree8490ebd683f74002df2dfdca0f649fb5c84ec043
parent23b060bba787030542b681ab8f86916c319fd8fa
panfrost: Enable AFBC buffer sharing

This was hidden originally to workaround a bug in the RK3399 display
driver. The patch resolving this issue has been merged in the upstream
kernel, and in fact...

1. The issue was visible on 21.0 even with this workaround under certain
   configurations (sway with an external monitor).
2. Even on buggy kernels, due to other platform details this is an
   obscure bug to hit (not aware of any ways to trigger it OOTB with
   current userspaces other than sway with an external monitor)

So why bother? Let's just delete the hack and let AFBC be used freely.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Cc: mesa-stable
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10148>
src/gallium/drivers/panfrost/pan_screen.c
src/panfrost/lib/pan_util.h