Re: [opengl] WGL_render_texture / WGL_ATI_pixel_format_float

2005-12-06 Thread Toan T Nguyen
I don't know what's wrong with me. I attached the wrong file in my
previous email.

On 12/6/05, Toan T Nguyen <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Here is the short error with your latest patch:
>
> fixme:opengl:wglChoosePixelFormatARB unused pfAttribFList
> err:opengl:ConvertAttribWGLtoGLX buggy 40 GLX_BUFFER_SIZE default to 32
> freeglut  ERROR:  Function  called without first
> calling 'glutInit'.
>
> It seems there's problem in the glut32.dll as well, because q2e runs
> perfectly. The full error (with WINEDEBUG is attached).
>
> Toan
>
> On 12/6/05, Stefan Dösinger <[EMAIL PROTECTED]> wrote:
> > Am Dienstag, 6. Dezember 2005 10:07 schrieb Raphael:
> > > On Tuesday 06 December 2005 03:32, Toan T Nguyen wrote:
> > > > Oops, i'm sorry. I applied your patch with --dry-run option so nothing
> > > > is patched. :(.
> > > >
> > > > Here the correct out.log. the program still doesn't run, it complains
> > > > about
> > > >
> > > > err:opengl:wglCreateContext NULL visual !!!
> > > >
> > > > q2e complains the same thing as well.
> > > >
> > > > Bests,
> > > > Toan
> > >
> > > Thx for reports (i have made a mistake)
> > >
> > > This patch may work better :)
> > I get
> >  Unable to create pbuffer
> >
> > The last lines from a +opengl log:
> > trace:opengl:wglCreatePbufferARB WGL_render_texture Attribute:
> > WGL_TEXTURE_FORMAT_ARB as 2076
> > trace:opengl:wglCreatePbufferARB WGL_render_texture Attribute:
> > WGL_TEXTURE_TARGET_ARB as 207a
> > trace:opengl:wglCreatePbufferARB WGL_render_texture Attribute:
> > WGL_MIPMAP_TEXTURE_ARB as 1
> > trace:opengl:wglCreatePbufferARB new Pbuffer drawable as (nil)
> > trace:opengl:wglCreatePbufferARB ->(FAILED)
> >  Unable to create pbuffer
> >  Demo Initiation failed
> >
> > This is a radeon 9000 Mobility, fglrx 8.19.10. It supports
> > GLX_ATI_pixel_format_float
> >
> > Stefan
> >
> >
> >
>
>
>


out2.log.gz
Description: GNU Zip compressed data



Re: [opengl] WGL_render_texture / WGL_ATI_pixel_format_float

2005-12-06 Thread Toan T Nguyen
Hi,

Here is the short error with your latest patch:

fixme:opengl:wglChoosePixelFormatARB unused pfAttribFList
err:opengl:ConvertAttribWGLtoGLX buggy 40 GLX_BUFFER_SIZE default to 32
freeglut  ERROR:  Function  called without first
calling 'glutInit'.

It seems there's problem in the glut32.dll as well, because q2e runs
perfectly. The full error (with WINEDEBUG is attached).

Toan

On 12/6/05, Stefan Dösinger <[EMAIL PROTECTED]> wrote:
> Am Dienstag, 6. Dezember 2005 10:07 schrieb Raphael:
> > On Tuesday 06 December 2005 03:32, Toan T Nguyen wrote:
> > > Oops, i'm sorry. I applied your patch with --dry-run option so nothing
> > > is patched. :(.
> > >
> > > Here the correct out.log. the program still doesn't run, it complains
> > > about
> > >
> > > err:opengl:wglCreateContext NULL visual !!!
> > >
> > > q2e complains the same thing as well.
> > >
> > > Bests,
> > > Toan
> >
> > Thx for reports (i have made a mistake)
> >
> > This patch may work better :)
> I get
>  Unable to create pbuffer
>
> The last lines from a +opengl log:
> trace:opengl:wglCreatePbufferARB WGL_render_texture Attribute:
> WGL_TEXTURE_FORMAT_ARB as 2076
> trace:opengl:wglCreatePbufferARB WGL_render_texture Attribute:
> WGL_TEXTURE_TARGET_ARB as 207a
> trace:opengl:wglCreatePbufferARB WGL_render_texture Attribute:
> WGL_MIPMAP_TEXTURE_ARB as 1
> trace:opengl:wglCreatePbufferARB new Pbuffer drawable as (nil)
> trace:opengl:wglCreatePbufferARB ->(FAILED)
>  Unable to create pbuffer
>  Demo Initiation failed
>
> This is a radeon 9000 Mobility, fglrx 8.19.10. It supports
> GLX_ATI_pixel_format_float
>
> Stefan
>
>
>


out.log.gz
Description: GNU Zip compressed data



Re: [opengl] WGL_render_texture / WGL_ATI_pixel_format_float

2005-12-06 Thread Toan T Nguyen
Hi,

This program doesn't run on my machine at all. I have ATI 9700
Mobility, driver 8.9.10.
Here is the output of

WINEDEBUG="+opengl" wine ./Render\ To\ Texture.exe  &> out.log

I also attach my glxATI.h and glATI.h (in /usr/include/GL/) for your info.

Regards,
Toan

On 12/5/05, Raphael <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Anyone Can test this demo
> http://www.paulsprojects.net/opengl/rtotex/rtotex.html
> If have an ATI card who support WGL_ATI_pixel_format_float  ?
>
> Thx
>
> Changelog:
>  - support WGL_ATI_pixel_format_float / WGL_ARB_color_buffer_float
>  - implement WGL_render_texture using GLX_ATI_render_texture (when available)
>  - better WGL_render_texture emulation (using PBuffers)
>  - fix wglMakeCurrent (and add usefull traces)
>
> Regards,
> Raphael
>
>
>
>
>
>
>


out.log.gz
Description: GNU Zip compressed data


glATI.h.gz
Description: GNU Zip compressed data


glxATI.h.gz
Description: GNU Zip compressed data



Re: [opengl] WGL_render_texture / WGL_ATI_pixel_format_float

2005-12-05 Thread Toan T Nguyen
Oops, i'm sorry. I applied your patch with --dry-run option so nothing
is patched. :(.

Here the correct out.log. the program still doesn't run, it complains about

err:opengl:wglCreateContext NULL visual !!!

q2e complains the same thing as well.

Bests,
Toan



On 12/5/05, Toan T Nguyen <[EMAIL PROTECTED]> wrote:
> Hi,
>
> This program doesn't run on my machine at all. I have ATI 9700
> Mobility, driver 8.9.10.
> Here is the output of
>
> WINEDEBUG="+opengl" wine ./Render\ To\ Texture.exe  &> out.log
>
> I also attach my glxATI.h and glATI.h (in /usr/include/GL/) for your info.
>
> Regards,
> Toan
>
> On 12/5/05, Raphael <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Anyone Can test this demo
> > http://www.paulsprojects.net/opengl/rtotex/rtotex.html
> > If have an ATI card who support WGL_ATI_pixel_format_float  ?
> >
> > Thx
> >
> > Changelog:
> >  - support WGL_ATI_pixel_format_float / WGL_ARB_color_buffer_float
> >  - implement WGL_render_texture using GLX_ATI_render_texture (when 
> > available)
> >  - better WGL_render_texture emulation (using PBuffers)
> >  - fix wglMakeCurrent (and add usefull traces)
> >
> > Regards,
> > Raphael
> >
> >
> >
> >
> >
> >
> >
>
>
>


out.log.gz
Description: GNU Zip compressed data



Re: wglGetPixelFormatAttribivARB unexpected RenderType(100)

2005-12-05 Thread Toan T Nguyen
Hi, thanks for the clarification. Everything is fine then. Thank you
for the patch.

BTW, do you know how to improve OpenGL performance in wine? I get
about 10-30% drop in FPS compared to the Windows version (the card is
overclocked about 10% both in CPU and memory frequencies in windows,
so that might explains some of the performance drop). I set UseDGA to
Y in "wine regedit" but that doesn't seem to help at all.

Thanks again,
Toan

>
> WGL_COLOR_BITS_ARB cannot be 32 (was a bug i have corrected recently)
> see http://www.nvidia.com/dev_content/nvopenglspecs/WGL_ARB_pixel_format.txt
>
>   WGL_COLOR_BITS_ARB
>* The number of color bitplanes in each color buffer. For RGBA
>* pixel types, it is the size of the color buffer, excluding the
>* alpha bitplanes. For color-index pixels, it is the size of the
>* color index buffer.
>
> So for 32 bits FBConfig, it should be 24 (8 bits per RGB channels) + 8 for
> Alpha channel
>
> If Q2E expect 32 bits for WGL_COLOR_BITS_ARB its a bug :)
>
> And 24 bits limitation is a X limitation (X display cannot support
> alpha-channel) not an ATI limitation.
> Anyway, 24 bits displays usually support 32 bits using GLX :)
>
> > Toan
>
> Regards,
> Raphael
>
>
>




Re: wglGetPixelFormatAttribivARB unexpected RenderType(100)

2005-12-05 Thread Toan T Nguyen
Thanks very much. It works. There's a small probelm worth mentioning
however: Q2E requires 32 color bits, 24bits depth, 8bits stencils. The
ATI binary driver supports 24bits only. In wine-0.9.2, somehow
wglGetPixelFormat returns 32 color bits but the current patch returns
24 only. I easily modified q2e to accept both 24bits and 32bits in
Linux. Other programs might not be happy.

Toan

On 12/5/05, Raphael <[EMAIL PROTECTED]> wrote:
> On Monday 05 December 2005 04:41, Toan T Nguyen wrote:
> > Here they are.
> >
> > On 12/4/05, Raphael <[EMAIL PROTECTED]> wrote:
> > > On Saturday 03 December 2005 09:20, Toan T Nguyen wrote:
> > > > FYI, here is the code in question:
> > > >
> > > > http://cvs.sourceforge.net/viewcvs.py/q2e/q2e/source/win32/glw_win.c?re
> > > >v=1. 13&view=auto
> > > >
> > > > The function where pixelFormat is initialized is GLW_ChoosePixelFormat.
> > > >
> > > > Toan
> > >
> > > Hi,
> > >
> > > behavior seems strange to me
> > >
> > > can you provide me output of gxlinfo
> > > and output of (using patch)
> > > WINEDEBUG="+opengl" q2
> > >
> > > Thx
> > >
> > > Regards,
> > > Raphael
>
> Thx
>
> Can you retry with this patch ?
>
> Thx
>
> Regards,
> Raphael
>
>
>




Re: wglGetPixelFormatAttribivARB unexpected RenderType(100)

2005-12-04 Thread Toan T Nguyen
Here they are.

On 12/4/05, Raphael <[EMAIL PROTECTED]> wrote:
> On Saturday 03 December 2005 09:20, Toan T Nguyen wrote:
> > FYI, here is the code in question:
> >
> > http://cvs.sourceforge.net/viewcvs.py/q2e/q2e/source/win32/glw_win.c?rev=1.
> >13&view=auto
> >
> > The function where pixelFormat is initialized is GLW_ChoosePixelFormat.
> >
> > Toan
> >
>
> Hi,
>
> behavior seems strange to me
>
> can you provide me output of gxlinfo
> and output of (using patch)
> WINEDEBUG="+opengl" q2
>
> Thx
>
> Regards,
> Raphael
>
>
>


glxinfo.out
Description: Binary data


history.dat
Description: MPEG movie



Re: wglGetPixelFormatAttribivARB unexpected RenderType(100)

2005-12-03 Thread Toan T Nguyen
FYI, here is the code in question:

http://cvs.sourceforge.net/viewcvs.py/q2e/q2e/source/win32/glw_win.c?rev=1.13&view=auto

The function where pixelFormat is initialized is GLW_ChoosePixelFormat.

Toan


On 12/2/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Message d'origine
> >Date: Fri, 2 Dec 2005 14:07:24 -0800
> >De: Toan T Nguyen <[EMAIL PROTECTED]>
> >A: wine-devel@winehq.org
> >Sujet: wglGetPixelFormatAttribivARB unexpected RenderType(100)
> >
> >Hi,
> >
> >I compile and run Quake2Evolved in linux using winelib. Although every
> >seems fine, there's this error printed out when Q2E scans for the best
> >pixel format:
> >
> > err:opengl:wglGetPixelFormatAttribivARB unexpected RenderType(100)
> >
> >I look up my /usr/include/GL/glxATI.h and found these lines:
> >
> >#ifndef GLX_ATI_pixel_format_float
> >#define GLX_ATI_pixel_format_float  1
> >
> >#define GLX_RGBA_FLOAT_ATI_BIT  0x0100
> >
> >#endif // GLX_ATI_pixel_format_float
> >
> >
> >Bests,
> >
> >Toan
> >
>
> Hi
>
> Interesting and fun extension :)
> Try attached patch if it works (and it should) forward it to wine-patches
>
> Regards,
> Raphael
>
>
>
>




Re: wglGetPixelFormatAttribivARB unexpected RenderType(100)

2005-12-02 Thread Toan T Nguyen
Hi,

Unfortunately, now Q2E cannot detects any valid pixel format. Here is
the Q2E output from wine-0.9.2

==
Initializing OpenGL driver
...getting DC: succeeded
...getting gamma ramp: failed
fixme:opengl:wglMakeCurrent (0x398,0x47c91210)
fixme:opengl:wglMakeCurrent  created a delayed OpenGL context
(0x7c3108d8) for 0x7c310740
fixme:opengl:wglMakeCurrent  make current for dis 0x7c021e68, drawable
0x342, ctx 0x7c3
108d8
fixme:opengl:wglMakeCurrent  returning True
...19 pixel formats found
...PIXELFORMAT 2 rejected, improper flags
...PIXELFORMAT 3 rejected, insufficient stencil bits (0 < 8)
...PIXELFORMAT 4 rejected, improper flags
...PIXELFORMAT 6 rejected, improper flags
...PIXELFORMAT 7 rejected, insufficient stencil bits (0 < 8)
...PIXELFORMAT 8 rejected, improper flags
...PIXELFORMAT 10 rejected, improper flags
...PIXELFORMAT 11 rejected, insufficient stencil bits (0 < 8)
...PIXELFORMAT 12 rejected, improper flags
...PIXELFORMAT 14 rejected, improper flags
...PIXELFORMAT 15 rejected, insufficient stencil bits (0 < 8)
...PIXELFORMAT 16 rejected, improper flags
...PIXELFORMAT 17 rejected, software emulation
err:opengl:wglGetPixelFormatAttribivARB unexpected RenderType(100)
...PIXELFORMAT 18 rejected, software emulation
err:opengl:wglGetPixelFormatAttribivARB unexpected RenderType(100)
...PIXELFORMAT 19 rejected, software emulation
fixme:opengl:wglMakeCurrent ((nil),(nil))
fixme:opengl:wglMakeCurrent  returning True
...hardware acceleration found
...PIXELFORMAT 1 selected
...creating GL context: succeeded


And here is the output from winecvs + your patch:


Initializing OpenGL driver
...getting DC: succeeded
...getting gamma ramp: failed
...19 pixel formats found
...PIXELFORMAT 1 rejected, insufficient color bits (1 < 32)
...PIXELFORMAT 2 rejected, improper flags
...PIXELFORMAT 3 rejected, insufficient color bits (1 < 32)
...PIXELFORMAT 4 rejected, improper flags
...PIXELFORMAT 5 rejected, insufficient color bits (1 < 32)
...PIXELFORMAT 6 rejected, improper flags
...PIXELFORMAT 7 rejected, insufficient color bits (1 < 32)
...PIXELFORMAT 8 rejected, improper flags
...PIXELFORMAT 9 rejected, insufficient color bits (1 < 32)
...PIXELFORMAT 10 rejected, improper flags
...PIXELFORMAT 11 rejected, insufficient color bits (1 < 32)
...PIXELFORMAT 12 rejected, improper flags
...PIXELFORMAT 13 rejected, insufficient color bits (1 < 32)
...PIXELFORMAT 14 rejected, improper flags
...PIXELFORMAT 15 rejected, insufficient color bits (1 < 32)
...PIXELFORMAT 16 rejected, improper flags
...PIXELFORMAT 17 rejected, software emulation
...PIXELFORMAT 18 rejected, software emulation
...PIXELFORMAT 19 rejected, software emulation
...no hardware acceleration found
...failed to find an appropriate PIXELFORMAT
...destroying window
VID_AppActivate( 0 )
...restoring display settings
...shutting down QGL
==

I can send you the source file of Q2E where OpenGL is initialized if you want.

Bests,
Toan



On 12/2/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Message d'origine----
> >Date: Fri, 2 Dec 2005 14:07:24 -0800
> >De: Toan T Nguyen <[EMAIL PROTECTED]>
> >A: wine-devel@winehq.org
> >Sujet: wglGetPixelFormatAttribivARB unexpected RenderType(100)
> >
> >Hi,
> >
> >I compile and run Quake2Evolved in linux using winelib. Although every
> >seems fine, there's this error printed out when Q2E scans for the best
> >pixel format:
> >
> > err:opengl:wglGetPixelFormatAttribivARB unexpected RenderType(100)
> >
> >I look up my /usr/include/GL/glxATI.h and found these lines:
> >
> >#ifndef GLX_ATI_pixel_format_float
> >#define GLX_ATI_pixel_format_float  1
> >
> >#define GLX_RGBA_FLOAT_ATI_BIT  0x0100
> >
> >#endif // GLX_ATI_pixel_format_float
> >
> >
> >Bests,
> >
> >Toan
> >
>
> Hi
>
> Interesting and fun extension :)
> Try attached patch if it works (and it should) forward it to wine-patches
>
> Regards,
> Raphael
>
>
>
>




wglGetPixelFormatAttribivARB unexpected RenderType(100)

2005-12-02 Thread Toan T Nguyen
Hi,

I compile and run Quake2Evolved in linux using winelib. Although every
seems fine, there's this error printed out when Q2E scans for the best
pixel format:

 err:opengl:wglGetPixelFormatAttribivARB unexpected RenderType(100)

I look up my /usr/include/GL/glxATI.h and found these lines:

#ifndef GLX_ATI_pixel_format_float
#define GLX_ATI_pixel_format_float  1

#define GLX_RGBA_FLOAT_ATI_BIT  0x0100

#endif // GLX_ATI_pixel_format_float


Bests,

Toan




A working winelib application

2005-12-01 Thread Toan T Nguyen
Hi,

This is to let you know that I'm porting Quake 2 Evolved (Q2E) program
to Linux using winelib. It compiles and works beautifully, at least on
my PentiumM laptop (I actually link with native linux libjpeg, zlib,
openal and dl at the compile time, winelib is used for opengl, winmm
and wsock32). The author has allowed my linux commit to the CVS. More
information on Q2E can be found at www.quake2evolved.com. The specific
discussions about linux Q2E can be found here:

http://www.quake2evolved.com/blurforum/showthread.php?s=4d42894a75fed08e372d74cff9a849cf&threadid=2038

http://www.quake2evolved.com/blurforum/showthread.php?s=4d42894a75fed08e372d74cff9a849cf&threadid=2043

There are two small problems left that I hope the wine developer can
test and help. Browsing the save or load games menu is quite sluggish.
I don't know why. Also, I don't have an AMD64 system to test this on.
If someone here would like to help out, I'm grateful.

Bests,
Toan