[vbox-dev] is 2D/3D acceleration supported in OSE?
Huihong Luo
huisinro at yahoo.com
Wed Nov 18 19:15:02 PST 2009
(sorry, last email was sent accidently)
I found the problem,
in process-win.cpp
RTR3DECL(int) RTProcCreate(const char *pszExec, const char * const *papszArgs, RTENV Env, unsigned fFlags, PRTPROCESS pProcess)
{
HANDLE hProcess = (HANDLE)_spawnve(_P_NOWAITO, pszExec, papszArgs, papszEnv);
the 1st argument of papszArgs needs to be quoted if containing space
}
// test app
// spawnve.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <windows.h>
#include <process.h>
int _tmain(int argc, _TCHAR* argv[])
{
static char pszVBoxPath[MAX_PATH];
const char *papszArgs[] = { NULL, "-test", "2D", NULL};
strcpy(pszVBoxPath, "c:\\bugs\\Sun VirrtualBox\\VBoxTestOGL.exe");
papszArgs[0] = "\"c:\\bugs\\Sun VirrtualBox\\VBoxTestOGL.exe\""; //pszVBoxPath; /* argv[0] */
HANDLE hProcess = (HANDLE)_spawnve(_P_NOWAITO, pszVBoxPath, papszArgs, NULL);
WaitForSingleObject(hProcess, INFINITE);
return 0;
}
--- On Wed, 11/18/09, Mikhail Sennikovsky <Mikhail.Sennikovsky at Sun.COM> wrote:
From: Mikhail Sennikovsky <Mikhail.Sennikovsky at Sun.COM>
Subject: Re: [vbox-dev] is 2D/3D acceleration supported in OSE?
To: "Huihong Luo" <huisinro at yahoo.com>
Cc: vbox-dev at virtualbox.org, "Alexey Eremenko" <al4321 at gmail.com>
Date: Wednesday, November 18, 2009, 11:22 AM
Thanks for the investigation. I'll debug it here on my side, although I'm sure it works here when installed under C:\Program Files\Sun\VirtualBox\, i.e. path with spaces.
Re your second question: yes, it always use OpenGL currently even on windows hosts.
This allows making a unified cross-platform engine for 2D acceleration that works on Linix and Mac hosts as well.
Perhaps someday in the future we'll have a DirectX-based backend for windows.
yes, it's XP guest on Vista host.
I debugged a bit, the invocation of VBoxTestOGL.exe, (for example, in following code)
bool VBoxVHWAInfo::checkVHWASupport()
always exit with status 1 (monitored by procmon.exe) if the path contains a space. Works well after removing the space, exits 0.
If I just invoke VBoxTestOGL.exe from command line by hand, e..g
"VBoxTestOGL.exe -test 2D" it works even from a path with spaces
another question, since this test exe checks OpenGL, does that mean the acceleration always uses OpenGL even on windows host where DirectX is available?
Thanks,
- Huihong
--- On Wed, 11/18/09, Alexey Eremenko <al4321 at gmail.com> wrote:
From: Alexey Eremenko <al4321 at gmail.com>
Subject: Re: [vbox-dev] is 2D/3D acceleration supported in OSE?
To: vbox-dev at virtualbox.org
Date: Wednesday, November 18, 2009, 7:17 AM
On Wed, Nov 18, 2009 at 2:47 PM, Mikhail Sennikovsky <Mikhail.Sennikovsky at sun.com> wrote:
Which host platform are you running on?
Huihong Luo usually runs Windows-on-Windows.
--
-Alexey Eromenko "Technologov"
-----Inline Attachment Follows-----
_______________________________________________
vbox-dev mailing list
vbox-dev at virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-dev
_______________________________________________
vbox-dev mailing list
vbox-dev at virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20091118/8069f944/attachment-0001.html
More information about the vbox-dev
mailing list