git: d746bc4a8a38 - 2025Q2 - emulators/virtualbox-ose-70: Add patch with enable "HW accelerated graphics output"

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Tue, 13 May 2025 18:40:47 UTC
The branch 2025Q2 has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d746bc4a8a38023bc1f48ce83cfc16c097cef5cc

commit d746bc4a8a38023bc1f48ce83cfc16c097cef5cc
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-05-11 20:38:02 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-05-13 18:38:21 +0000

    emulators/virtualbox-ose-70: Add patch with enable "HW accelerated graphics output"
    
    MFH:    2025Q2
    (cherry picked from commit f679dc920551d19ff7de07e052b132e9192214af)
---
 ...src_VBox_Devices_Graphics_DevVGA-SVGA3d-ogl.cpp | 28 ++++++++++++++++++----
 1 file changed, 23 insertions(+), 5 deletions(-)

diff --git a/emulators/virtualbox-ose-70/files/patch-src_VBox_Devices_Graphics_DevVGA-SVGA3d-ogl.cpp b/emulators/virtualbox-ose-70/files/patch-src_VBox_Devices_Graphics_DevVGA-SVGA3d-ogl.cpp
index 96058e78ff1f..caf9d72e8e19 100644
--- a/emulators/virtualbox-ose-70/files/patch-src_VBox_Devices_Graphics_DevVGA-SVGA3d-ogl.cpp
+++ b/emulators/virtualbox-ose-70/files/patch-src_VBox_Devices_Graphics_DevVGA-SVGA3d-ogl.cpp
@@ -1,6 +1,6 @@
---- src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp.orig	2021-01-07 15:39:17 UTC
+--- src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp.orig	2025-04-11 12:09:20 UTC
 +++ src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp
-@@ -1189,7 +1189,7 @@ int vmsvga3dTerminate(PVGASTATECC pThisCC)
+@@ -1198,7 +1198,7 @@ static DECLCALLBACK(int) vmsvga3dBackTerminate(PVGASTA
      RTSemEventDestroy(pState->WndRequestSem);
  #elif defined(RT_OS_DARWIN)
  
@@ -9,7 +9,7 @@
      /* signal to the thread that it is supposed to exit */
      pState->bTerminate = true;
      /* wait for it to terminate */
-@@ -3194,7 +3194,7 @@ int vmsvga3dGenerateMipmaps(PVGASTATECC pThisCC, uint3
+@@ -3216,7 +3216,7 @@ static DECLCALLBACK(int) vmsvga3dBackGenerateMipmaps(P
  }
  
  
@@ -18,7 +18,7 @@
  /**
   * X11 event handling thread.
   *
-@@ -3224,7 +3224,7 @@ DECLCALLBACK(int) vmsvga3dXEventThread(RTTHREAD hThrea
+@@ -3246,7 +3246,7 @@ DECLCALLBACK(int) vmsvga3dXEventThread(RTTHREAD hThrea
      }
      return VINF_SUCCESS;
  }
@@ -27,7 +27,25 @@
  
  
  /**
-@@ -4052,7 +4052,7 @@ static int vmsvga3dContextDestroyOgl(PVGASTATECC pThis
+@@ -3484,7 +3484,7 @@ int vmsvga3dContextDefineOgl(PVGASTATECC pThisCC, uint
+     return VINF_SUCCESS;
+ }
+ 
+-#if defined(RT_OS_LINUX)
++#if defined(RT_OS_FREEBSD) || defined(RT_OS_LINUX)
+ /*
+  * HW accelerated graphics output.
+  */
+@@ -3976,7 +3976,7 @@ static DECLCALLBACK(int) vmsvga3dBackSurfaceBlitToScre
+     return VINF_SUCCESS;
+ }
+ 
+-#else /* !RT_OS_LINUX */
++#else /* !RT_OS_FREEBSD && !RT_OS_LINUX */
+ 
+ static DECLCALLBACK(int) vmsvga3dBackDefineScreen(PVGASTATE pThis, PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen)
+ {
+@@ -4096,7 +4096,7 @@ static int vmsvga3dContextDestroyOgl(PVGASTATECC pThis
      AssertRC(rc);
  #elif defined(RT_OS_DARWIN)
      vmsvga3dCocoaDestroyViewAndContext(pContext->cocoaView, pContext->cocoaContext);