VirtualBox 2D acceleration

Daichi GOTO daichi at ongs.co.jp
Mon Oct 25 13:21:17 UTC 2010


I have confirmed that FreeBSD VirtualBox uses 3D acceleration 
feature. Working very well :)

test environment:
  host:
    FreeBSD 9.0-CURRENT amd64 Thu Sep 30 10:30:06 JST 2010
    VirtualBox 3.2.10

  guest:
    Ubuntu 10.10 amd64
      glears score:
        pre:  around 470 FPS
        post: around 2250 FPS
      notice:
        you need do following operation after guest addition 
        installation and reboot:
        # cd /opt/VBoxGuestAdditions-3.2.10/src/vboxguest-3.2.10/vboxvideo/
        # sudo make
        # sudo make install

    Windows XP SP3
      Google Earth:
        pre:  OpenGL mode only (Software emulation)
        post: Direct3D mode (H/W acceleration enabled) and
              rendering very well
      notice:
        You need install guest addition on Safe mode.

details: 
  http://journal.mycom.co.jp/articles/2010/10/22/virtualbox-3d-acceleration/index.html
  (japanese only, perhaps google translation helpfull for most of you)

On Sun, 3 Oct 2010 13:12:30 +0900
Daichi GOTO <daichi at freebsd.org> wrote:
> > > I did test to check 2D acceleration effect with this patch, and 2D 
> > > benchmarks shows about the same index. No effect appears.  I want to 
> > > know that this 2D acceleration feature works for what and thats effect 
> > > actually. Someone has any ideas?
> > 
> > Did you install the guest additions experimental drivers to support 3D? 
> 
> Yeah. I have tried to install guest addition twice to test with 3D support 
> and without 3D support. And both cases are the same result. No effect appears.
> 
> And FreeBSD VirtualBox looks like not to support 3D feature yet. 
> 
> > What graphics hardware do you use?  I have an Nvidia 8800 GTS.  I do not 
> 
> % dmesg | grep -i nvidia
> nvidia0: <GeForce 7300 GT> on vgapci0
> % 
> 
> > know how well this option works for other hardware.  Also, what type of 
> > acceleration are you using for your X driver (check 
> 
> % cat /var/log/Xorg.0.log | grep -i nvidia
> (--) PCI:*(0:1:0:0) 10de:0393:0000:0000 nVidia Corporation G73 [GeForce 7300 GT] rev 161, Mem @ 0xfa000000/16777216, 0xe0000000/268435456, 0xfb000000/16777216, I/O @ 0x0000ef00/128, BIOS @ 0x????????/65536
> (II) Module glx: vendor="NVIDIA Corporation"
> (II) NVIDIA GLX Module  195.36.15  Fri Mar 12 08:46:30 posix/SystemV/PST 2010
> (II) LoadModule: "nvidia"
> (II) Loading /usr/local/lib/xorg/modules/drivers/nvidia_drv.so
> (II) Module nvidia: vendor="NVIDIA Corporation"
> (II) NVIDIA dlloader X Driver  195.36.15  Fri Mar 12 08:49:20 posix/SystemV/PST 2010
> (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
> (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
> (==) NVIDIA(0): RGB weight 888
> (==) NVIDIA(0): Default visual is TrueColor
> (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
> (**) Oct 02 13:24:54 NVIDIA(0): Enabling RENDER acceleration
> (II) Oct 02 13:24:54 NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
> (II) Oct 02 13:24:54 NVIDIA(0):     enabled.
> (II) Oct 02 13:24:55 NVIDIA(0): NVIDIA GPU GeForce 7300 GT (G73) at PCI:1:0:0 (GPU-0)
> (--) Oct 02 13:24:55 NVIDIA(0): Memory: 262144 kBytes
> (--) Oct 02 13:24:55 NVIDIA(0): VideoBIOS: 05.73.22.51.00
> (II) Oct 02 13:24:55 NVIDIA(0): Detected PCI Express Link width: 16X
> (--) Oct 02 13:24:55 NVIDIA(0): Interlaced video modes are supported on this GPU
> (--) Oct 02 13:24:55 NVIDIA(0): Connected display device(s) on GeForce 7300 GT at PCI:1:0:0:
> (--) Oct 02 13:24:55 NVIDIA(0):     BenQ G2420HD (DFP-0)
> (--) Oct 02 13:24:55 NVIDIA(0): BenQ G2420HD (DFP-0): 330.0 MHz maximum pixel clock
> (--) Oct 02 13:24:55 NVIDIA(0): BenQ G2420HD (DFP-0): Internal Dual Link TMDS
> (II) Oct 02 13:24:55 NVIDIA(0): Assigned Display Device: DFP-0
> (II) Oct 02 13:24:55 NVIDIA(0): Validated modes:
> (II) Oct 02 13:24:55 NVIDIA(0):     "1920x1080"
> (II) Oct 02 13:24:55 NVIDIA(0): Virtual screen size determined to be 1920 x 1080
> (--) Oct 02 13:24:55 NVIDIA(0): DPI set to (92, 91); computed from "UseEdidDpi" X config
> (--) Oct 02 13:24:55 NVIDIA(0):     option
> (==) Oct 02 13:24:55 NVIDIA(0): Enabling 32-bit ARGB GLX visuals.
> (II) Oct 02 13:24:55 NVIDIA(0): Initialized GPU GART.
> (II) Oct 02 13:24:55 NVIDIA(0): Setting mode "1920x1080"
> (II) Oct 02 13:24:56 NVIDIA(0): Initialized OpenGL Acceleration
> (==) NVIDIA(0): Disabling shared memory pixmaps
> (II) Oct 02 13:24:56 NVIDIA(0): Initialized X Rendering Acceleration
> (==) NVIDIA(0): Backing store disabled
> (==) NVIDIA(0): Silken mouse enabled
> (**) NVIDIA(0): DPMS enabled
> % 
> 
> > /var/log/Xorg.0.log).  EXA may be required over XAA.  At least, some 
> > type of acceleration is needed.
> 
> How did you setup your xorg.conf? or nvidia-settings??
> 
> I don't know how to setup to use EXA instead of XAA. 
> The 'Option "AccelMethod" "EXA"' are affected for intel and radeon driver, 
> not for nvidia.
> 
> > I am new to this option, so that is all I can surmise.
> > 
> > Sean
> > -- 
> > scf at FreeBSD.org
> 
> -- 
> Daichi GOTO
> 81-42-316-7945 | daichi at ongs.co.jp | http://www.ongs.co.jp
> LinkedIn: http://linkedin.com/in/daichigoto
> _______________________________________________
> freebsd-emulation at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
> To unsubscribe, send any mail to "freebsd-emulation-unsubscribe at freebsd.org"

-- 
Daichi GOTO


More information about the freebsd-emulation mailing list