[MPlayer-cvslog] r38211 - trunk/libvo/vo_gl.c

reimar subversion at mplayerhq.hu
Tue Dec 29 15:00:23 EET 2020


Author: reimar
Date: Tue Dec 29 15:00:23 2020
New Revision: 38211

Log:
vo_gl: Enable PBO upload on Apple Silicon.

It is much faster than regular texture uploads,
even if an extra memcpy is needed.

Modified:
   trunk/libvo/vo_gl.c

Modified: trunk/libvo/vo_gl.c
==============================================================================
--- trunk/libvo/vo_gl.c	Tue Dec 29 13:01:21 2020	(r38210)
+++ trunk/libvo/vo_gl.c	Tue Dec 29 15:00:23 2020	(r38211)
@@ -540,8 +540,10 @@ static void autodetectGlExtensions(void)
   if (force_pbo     == -1) {
     force_pbo = 0;
     // memcpy is just too slow at least on PPC.
-    if (ARCH_X86 && extensions && strstr(extensions, "_pixel_buffer_object"))
-      force_pbo = is_ati;
+    // PBO is vastly faster on Apple Silicon, assume that is the
+    // same for all AArch64 SOCs
+    if ((ARCH_X86 || ARCH_AARCH64) && extensions && strstr(extensions, "_pixel_buffer_object"))
+      force_pbo = is_ati || ARCH_AARCH64;
   }
   if (use_rectangle == -1) {
     use_rectangle = 0;


More information about the MPlayer-cvslog mailing list