mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 12:40:09 +01:00
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>
This commit is contained in:
parent
23b060bba7
commit
e00d94f14f
2 changed files with 1 additions and 5 deletions
|
|
@ -59,7 +59,6 @@ static const struct debug_named_value panfrost_debug_options[] = {
|
|||
{"msgs", PAN_DBG_MSGS, "Print debug messages"},
|
||||
{"trace", PAN_DBG_TRACE, "Trace the command stream"},
|
||||
{"deqp", PAN_DBG_DEQP, "Hacks for dEQP"},
|
||||
{"afbc", PAN_DBG_AFBC, "Enable AFBC buffer sharing"},
|
||||
{"sync", PAN_DBG_SYNC, "Wait for each job's completion and check for any GPU fault"},
|
||||
{"precompile", PAN_DBG_PRECOMPILE, "Precompile shaders for shader-db"},
|
||||
{"fp16", PAN_DBG_FP16, "Enable 16-bit support"},
|
||||
|
|
@ -559,9 +558,6 @@ panfrost_walk_dmabuf_modifiers(struct pipe_screen *screen,
|
|||
/* Don't advertise AFBC before T760 */
|
||||
afbc &= !(dev->quirks & MIDGARD_NO_AFBC);
|
||||
|
||||
/* XXX: AFBC scanout is broken on mainline RK3399 with older kernels */
|
||||
afbc &= (dev->debug & PAN_DBG_AFBC);
|
||||
|
||||
unsigned count = 0;
|
||||
|
||||
for (unsigned i = 0; i < PAN_MODIFIER_COUNT; ++i) {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
#define PAN_DBG_MSGS 0x0001
|
||||
#define PAN_DBG_TRACE 0x0002
|
||||
#define PAN_DBG_DEQP 0x0004
|
||||
#define PAN_DBG_AFBC 0x0008
|
||||
/* 0x8 unused */
|
||||
#define PAN_DBG_SYNC 0x0010
|
||||
#define PAN_DBG_PRECOMPILE 0x0020
|
||||
#define PAN_DBG_NOFP16 0x0040
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue