That is more of a question about your wrapper.
If you have a GLES 1.1 -> OpenGL/Mesa wrapper, then you can use the wrapper to call into either the MSFT OpenGL implementation or the Mesa implementation. The former is hardware accelerated and the latter is all software.
If you want to use a GLES 2.0 app, then you'll need a new wrapper for GLES 2.0 -> OpenGL/Mesa. The wrapper is completely different, if even possible, and the same statement applies regarding performance.
As Brian pointed out, you also (will) have the option of using the new GLES implementation within Mesa itself, which can use the Gallium softpipe. I don't know yet how/if that works with the Windows GDI driver. I hope to look into that someday.
Finally, if your real goal is to develop GLES apps in the Windows environment, I believe AMD offers a GLES implementation that is hardware accelerated on Windows. I played with it for awhile and started a port of the gears app to GLES 2.0. I am not aware of a similar offering from nVidia, but it has been awhile since I looked.
On Thu, Aug 13, 2009 at 9:17 PM, vinit bansal <firstname.lastname@example.org> wrote:
For 1.1 program, there should not be a problem. But what about any 2.0 application.. in that case i cant call OpenGL on Windows from my wrapper, right ?My basic aim is to use 2.0 program for my application, for 1.1 i have n number of options.On Thu, Aug 13, 2009 at 8:14 PM, Karl Schultz <email@example.com> wrote:
No. That would require that a driver be written for each graphics card. Since vendors already supply OpenGL drivers on Windows, there is little incentive to repeat the work in Mesa for Windows. I suppose that one could do it if they had the appropriate hw specs.
A couple of notes back in this thread you said that you had a wrapper for opengl-es functions, which supposedly called Mesa. Why not just use the stock Windows OpenGL and the drivers that are appropriate for your graphics card? IOW, why use Mesa at all for this? Why don't you simply call OpenGL on Windows from your wrapper?
On Wed, Aug 12, 2009 at 9:08 PM, vinit bansal <firstname.lastname@example.org> wrote:
Hi Karl,Thanks for your reply.Yes, you are right. I am using MESA on windows.But is there a way to use h/w accelaration in MESA on windows?Thanks & RegardsVinitOn Wed, Aug 12, 2009 at 10:57 PM, Karl Schultz <email@example.com> wrote:
Are you using the Mesa windows (gdi) driver? It is 100% software, so performance will be slow.
Also, if you are on Windows, the standard timer is very low resolution. If I remember right, that timer has about a 16 ms period, which may explain the values you are getting. If you want higher resolution, then use the multimedia timer, or time things that take longer.
On Tue, Aug 11, 2009 at 10:52 PM, vinit bansal <firstname.lastname@example.org> wrote:------------------------------------------------------------------------------Hi Brian,Actually i wrote a wrapper for all opengl-es functions so that it'll call our gl fuction only.for ex for glorthox, internally in my wrapper i'll call glotho only.this way i m able to run my opengl-es program using MESA .. :D:DMy aim is , I want to know how much time my WGL calls are taking.So i used clock function.here is my code:long start,end,time;start = clock();wglcreatecontext();end = clock();time = end-start;fprintf("print this time in file");same i did for wglmakecurrent/glreadpixels etc ...prob is , i am drawing a single frame again and again still i m getting every time diff value.please find my attach logs.for glreadpixels:glreadpixels : 0.000000 mSecglreadpixels : 16.000000 mSecglreadpixels : 16.000000 mSecglreadpixels : 0.000000 mSecglreadpixels : 0.000000 mSecglreadpixels : 16.000000 mSecglreadpixels : 0.000000 mSecglreadpixels : 15.000000 mSecglreadpixels : 16.000000 mSecglreadpixels : 0.000000 mSecglreadpixels : 0.000000 mSecglreadpixels : 16.000000 mSecglreadpixels : 0.000000 mSecglreadpixels : 16.000000 mSecglreadpixels : 0.000000 mSecglreadpixels : 16.000000 mSecfor wglCreateContext and wglMakeCurrent:wglCreateContext : 0.000000 mSec
wglMakeCurrent : 16.000000 msecwglCreateContext : 0.000000 mSec
wglMakeCurrent : 16.000000 msec
wglCreateContext : 0.000000 mSec
wglMakeCurrent : 0.000000 msecI dont know why this time is different in each call?Best regardsVinit
On Tue, Aug 11, 2009 at 8:14 PM, Brian Paul <email@example.com> wrote:
vinit bansal wrote:So you're using the opengl-es branch? You're probably using the "softpipe" gallium driver.
I tried some opengl 2.0 es example using MESA.
I am able to render it properly but performance is not so good.
Is there any flag i need to enable to use optimized performance from Mesa?
What is the meaning of performance data ?
What all it should include?
What kind of GPU do you have?
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
Mesa3d-users mailing list