This is the mail archive of the
cygwin-xfree@sources.redhat.com
mailing list for the Cygwin project.
Re: [ANNOUNCEMENT] Offscreen and No DirectInput Test 6
- TO: cygwin-xfree at sourceware dot cygnus dot com
- Subject: Re: [ANNOUNCEMENT] Offscreen and No DirectInput Test 6
- From: j dot j dot ita at siep dot shell dot com
- Date: Wed, 1 Nov 2000 21:13:42 +0100
Eureka! An Xserver window! Unfortunately I get the same error as Scott
does below. Don't get down in the mouth Harold. You are close. I hope
the error message gives you some hints. If not, could you guide me to
your favorite source of DirectX docs?
I think I speak for all by saying your efforts are greatly appreciated.
Joel
-----Original Message-----
From: s.a.hill@larc.nasa.gov [mailto:s.a.hill@larc.nasa.gov]
Sent: 01 November 2000 20:31
To: cygwin-xfree@sourceware.cygnus.com
Subject: Re: [ANNOUNCEMENT] Offscreen and No DirectInput Test 6
Harold,
I thought I would test out your DirectX X-server and hopefully
bring you
some good news, but to no avail. The following are the particulars
concerning this test:
Display Hardware: ELSA II Gloria Pro W/64MB
Current Display Settings: 1800 x 1440 x 32 bits/pixel
DirectX: Not sure, but all by DirectDraw and assorted drivers are
listed as V4.04
OS: MS NT 4.0 SP6
Test 1:
start XWin -screen 0 640x480x16 -whitepixel 255 -blackpixel 0
In Console Window:
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to
root
Desired Width: 640, Height: 480, Depth: 16
xf_dx.dll: Process attach
enable_xf_dx: LoadLibrary success
xf_dx.dll: AdjustVideoMode entered
Adjusted Width: 640, Height: 480, Depth: 32
xf_dx.dll: winDXAllocateFramebufferMemory entered
In Error Window:
IDirectDrawSurface_Lock failed
Error = 80070057(DIERR_INVALIDPARAM)
Oddity:
The cursor pointer does not stay on top of the DirectX
X-Server
and Error windows.
Once the "OK" button is selected in the Error Window, both the
DirectX X-Server and Error windows close.
Test 2:
start strace XWin -screen 0 640x480x16 -whitepixel 255
-blackpixel 0
In C:\cygwin\bin\strace.exe Window:
---snipped---
xf_dx.dll: Process attach
19097 6688872 [main] XWin 1047 _write: write (2, 0x281F6C8,
34)
1876 6690748 [main] XWin 1047 fhandler_console::write:
281F6C8,
34
1902 6692650 [main] XWin 1047 fhandler_console::write: at
101(e) state is 1
enable_xf_dx: LoadLibrary success
3623 6696273 [main] XWin 1047 fhandler_console::write: 34 =
write_console (,..34)
3159 6699432 [main] XWin 1047 _write: 34 = write (2,
0x281F6C8,
34)
xf_dx.dll: AdjustVideoMode entered
10745 6710177 [main] XWin 1047 _write: write (2, 0x281F6E8,
44)
1550 6711727 [main] XWin 1047 fhandler_console::write:
281F6E8,
44
1857 6713584 [main] XWin 1047 fhandler_console::write: at
65(A)
state is 1
Adjusted Width: 640, Height: 480, Depth: 32
3705 6717289 [main] XWin 1047 fhandler_console::write: 44 =
write_console (,..44)
3607 6720896 [main] XWin 1047 _write: 44 = write (2,
0x281F6E8,
44)
xf_dx.dll: winDXAllocateFramebufferMemory entered
In Error Window:
IDirectDrawSurface_Lock failed
Error = 80070057(DIERR_INVALIDPARAM)
Oddity:
The cursor pointer does not stay on top of the DirectX
X-Server
and Error windows.
Once the "OK" button is selected in the Error Window, the Error
window closes, but both the DirectX X-Server and the strace windows
remain
open and no additional strace output is generated. The strace window
has to
be exited to kill both those windows. Hope this info helps.
Scott
----- Original Message -----
From: Harold Hunt <Harold@compasstechnologies.com>
To: Cygx (E-mail) <cygwin-xfree@sources.redhat.com>
Sent: Wednesday, November 01, 2000 12:22 PM
Subject: [ANNOUNCEMENT] Offscreen and No DirectInput Test 6
> Screenshots, 1024x768:
> 1) A local xterm:
> http://www.msu.edu/~huntharo/CygwinXFree86-ScreenShot-xterm.png (160
kB)
>
> 2) Remote gftp running on a GNU/Linux host with Gnome installed:
> http://www.msu.edu/~huntharo/CygwinXFree86-ScreenShot-gftp.png (153
kB)
>
>
> Changes:
> 1) Copying from the offscreen buffer to the primary surface buffer
is now
> throttled to no more than 15 frames per second.
>
> 2) An extraneous check for overlay support was removed.
>
> 3) A few flags were added to the surface locking function to,
hopefully,
> ensure that the surface is locked without failure.
>
> 4) Offscreen frame buffer memory address changes are now detected
and the
X
> server is notified of the new address when this happens (should be
rare).
>
> 5) The bounding window is now brought to the top of the window z
order
> after it is created.
>
> 6) Tokens containing "overlay" were modified to contain "offscreen".
>
> 7) Some commented out DirectInput code was removed.
>
>
> I'm just about ready to admit defeat in the video card compatibility
> department, I'm running out of ideas, and I can't reproduce the
problems
> with my equipment. Please, look at the source for
> winDXAllocateFramebufferMemory() if you think you could add any
insight;
the
> function only has about 20 non error handling lines, so it should be
easy
to
> grasp the concept and start playing around with different ideas.
Take a
> look at the source even if you don't have Visual C++; let me know if
you
> have any suggestions and I'll compile them and send them to you to
test.
>
> Updates in this test release were constrained to xf_dx.dll, so, if you
> already have the Test 3, or greater, full package
> (OverlayAndNoDITest.tar.bz2) installed, you can just download the
xf_dx.dll
> package; otherwise, download the full Test 6 package.
>
> Full Test 6 Package:
> http://www.msu.edu/~huntharo/OverlayAndNoDITest.tar.bz2 (1.7 MB)
> Test 6 xf_dx.dll Package:
> http://www.msu.edu/~huntharo/xf_dx.dll.tar.bz2 (43 kB)
>
> You can download the xf_dx.dll test 6 source if you have Visual C++ 6
and
> you feel like poking around:
> http://www.msu.edu/~huntharo/xf_dx-src.zip (14 kB)
>
> Good luck, enjoy, and thanks for testing,
>
> Harold
>