GPU computing Stay up to date in OpenCL, DirectCompute, CUDA, CAL and OpenGL information

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Tuesday, 15 December 2009

GLEW,GLUT,Freeglut, MesaGLUT and more

Posted on 09:00 by Unknown
Hi

don't pretend to understand most of this post is only my daily notes..

GLUT is old, no supersampled framebuffer wgl and glx extensions i.e. without using aa FBO's..
is 2001 src for win32..
from FreGLUT web:
Why?

The original GLUT library seems to have been abandoned with the most recent version (3.7) dating back to August 1998. It's license does not allow anyone to distribute modified the library code. This would be OK, if not for the fact that GLUT is getting old and really needs improvement. Also, GLUT's license is incompatible with some software distributions (eg Xfree86).
I have coded some path for Win32 aa multisampled framebuffer..
I think not works if you want 3.0 contexts (you have to create special)..
I think to have patched already also.. I will try to find this megapatched GLUT :-)
Now seems 3.2 requires new functions (core profile only?) so I will patch also if required (all my patches are Windows stuff..)
I pretended to patch for OpenCL OpenGL interop before as it was said to require OpenGL enable compute context but now seems it's no required..
I wanted more fixes.. (I have to think what?..)
I will post it..

Related I also added runtime hotpatches for OpenGL libraries in Windows for having NV affinity extension (altough it will not add any perf for Nvidia multigpus).. have to add ati emulation (that's efficient if I use AMD equivalent extension)..
would be good for Equalizer that uses it and 5970 say.. Also what can I do for CompleX to run? I will see.. remember now Win 32 and 64 but says XP (it's really needed or runs in Seven)
I also added runtime hotpatches for OpenGL libraries in Windows for reporting QB stereo emulation..
Now I must add full patch for 3D Vision sample I have..
seems now projects are switching to FreeGLUT and MesaGLUT among others..

past other have tried:
crazy stuff (dead):
*GLUX of Ogre creators.. (promised to bring ogl 3.0 and aa for example.. it's dead.. I don't know how it is..
http://code.google.com/p/glux/updates/list
*OpenGL Window Framework
http://sourceforge.net/projects/oglwfw/
An Alternative C++ Windowing Framework for OpenGL which initalises extensions (via GLee) and allows easy access to context features such as FSAA and the Accumulation buffer
*http://openglut.sourceforge.net/
Some changes since forking from freeglut include:

* Improved full-screen support
* Improved joystick support
* Improved Cygwin and Mingw32 support
* Improved bitmap font rendering
* Improved ANSI-C compliance
* Documentation refinements
* Experimental offscreen rendering

So using GLUT, you require aa use FBO aa..
you require OGL 3.x swith to FreeGLUT, MesaGLUT, or SDL (in trunk),
QT(?),..

MesaGLUT
Mark Kilgard's GLUT, easily compiled and used with Mesa. Plus, other implementation of GLUT for DOS, OS/2, BeOS, etc.

MesaGLUT: Right now MESA 7.7-> MesaGLUT 7.7rc2
ftp://ftp.freedesktop.org/pub/mesa/7.7/
latest :ftp://ftp.freedesktop.org/pub/mesa/beta/

FreeGLUT 2.6.0 (relased 27 nov 2009)
(Windows
binary
)adds vs glut (seems all I want):
I want patch for Windows 7 Touch APIs as QT has..
MultiPointer Linux patch support (Svn 832)
*Binary compatible with GLUT dlls's:
Added the ugly ATEXIT_HACK from GLUT 3.7, making freeglut binary compatible with the GLUT DLLs out in the wild.
Use our module definition file, so we get undecorated names in the resulting DLL, just like the classic GLUT DLL from Nate Robins.
* Added support for multisampling: The number of samples per pixel to use
when GLUT_MULTISAMPLE is specified in glutInitDisplayMode() can be set via
glutSetOption() with parameter GLUT_MULTISAMPLE now. glutGet() with the
same token retrieves that value. The possible number of samples per pixels
can be queried via the new API entry

int *glutGetModeValues( GLenum mode, int *size );

with mode GLUT_MULTISAMPLE. (glutGetModeValues() currently only works for
X11)
Note:
Set the default number of samples per pixel to 4 and actually use the value set
with glutSetOption(GLUT_MULTISAMPLE,...) in Windows code.
* Added support for versioned (i.e. 3.0) OpenGL contexts: New API entries

void glutInitContextVersion( int majorVersion, int minorVersion );
void glutInitContextFlags( int flags );

with related new constants GLUT_DEBUG and GLUT_FORWARD_COMPATIBLE for the latter API entry. Added new constants GLUT_INIT_MAJOR_VERSION, GLUT_INIT_MINOR_VERSION and GLUT_INIT_FLAGS for glutGet().

*Added support for sRGB framebuffers via the GLX_ARB_framebuffer_sRGB / WGL_ARB_framebuffer_sRGB extensions. Added support for context profiles via the new parts of the GLX_ARB_create_context / WGL_ARB_create_context extensions.

*Visual Studio 2008 2 files one for the normal DLL build, and one for the static build.
* Added deprecated, but working Joystick API.
* Added new constant GLUT_INIT_STATE for glutGet() to check if freeglut is already initialized.
* Added new API entry for full-screen mode
void glutFullScreenToggle( void );
with a related new constant GLUT_FULL_SCREEN for glutGet().
* Added new API entry to de-initialize freeglut:
void glutExit( void );
* Added more special keys: GLUT_KEY_NUM_LOCK, GLUT_KEY_BEGIN GLUT_KEY_DELETE
* Added support for windows without captions and/or borders via two new constants GLUT_CAPTIONLESS and GLUT_BORDERLESS for glutInitDisplayMode (currently works for Windows only).
* Added new constant GLUT_AUX for glutSetOption() to set the number of auxiliary buffers. The possible number of auxiliary buffers can be queried via glutGetModeValues with mode GLUT_AUX.

Has example fully OpenGL-3.1-compliant.

For using GLUT and FreeGLut Mingw GCC:
Using GLUT with MINGW


Also how to bring in auto load of extensions..

GLEW 1.5.1 is old..
glee 5.4 is 3.0 capable no more..

glew
====
seems every year some stuff..
so some stuff in SVN since last release:
briefly 3.0 detection fixes, 3.1,3.2 support and Snowleopard fixes:

gl.h for SnowLeopard uses __X_GL_H rather than __gl_h_ or __GL_H__
binaries from the object files instead of sources
Add GL 3.2 Core support
Add support for GLint64, GLuint64 and GLsync
preliminary spec file for GL 3.1
Workaround Mesa GLUT incompatibility.
Ensure OpenGL 3.0 is properly detected.
Use uname instead of arch since Debian/Ubunutu/etc do not have arch
Some bug fixes..

glee
====
in svn you have vc2008 projects
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Porting CUDA to OpenCL!
    Well so you want to port CUDA code to OpenCL: you are in AMD GPU competition of porting Cuda codes to opencl (see previous post) or you are ...
  • Megapost!
    Today fools{ *GTX 485 is 512 cores 3gbytes gddr5 and 850/1750 shaders.. *ati 5990 has 4 gpus in board.. *bulldozer benchmarks }end fools.. A...
  • About ATI and Nvidia drivers (OCL included)!
    Hi I have been investigating AMD and Nvidia drivers.. for 10.3 there are 3d hooks support for 120hz monitors but is d3d9 d3d10 or d3d11 enab...
  • things found in CUDA forums
    Also some CUDA news: Mandelbulb stereo angalyph -> have to port to 3D Vision http://forums.nvidia.com/index.php?showtopic=150985&st=2...
  • opencl/opengl linux interop! seen in opencl cuda 3.0 sdk samples
    Following my OpenCL/OpenGL Window interop work: now has come to Linux  for Nvidia GPU computing registered developers via 195.17 driver! Als...
  • State of the blog..
    Sorry for the delay guys of posting code of Apple OpenCL demos port.. the blog has been with no updated for more than 2 weeks in this rapid ...
  • Optix and OpenCL SDKs with Visual Studio 2010
    Optix 1.0 ========= install cg download Cmake 2.80 cmake says error dumpbin not found and it is cuda doesn't work with vc2010 so copy pt...
  • CUDA 3.0 forums stuff!
    1.Getting CUBIN instead of ELF If you need the older text format, you can disable ELF cubins in nvcc.profile by changing "CUBINS_ARE_EL...
  • News from the web!
    Some things learned in AMD forums: 1.Why 3xxx no OpenCL: Compute shader mode is a hardware feature that did not exist in the HD38XX line of ...
  • Shaders: measuring perf, source translation and parsing different languages!
    Hi, I hope to be pretty exhaustive of options for parsing and translating between graphics and compute shaders ( some open source) For DX sh...

Blog Archive

  • ►  2013 (5)
    • ►  September (1)
    • ►  March (3)
    • ►  February (1)
  • ►  2012 (1)
    • ►  December (1)
  • ►  2010 (46)
    • ►  July (4)
    • ►  May (1)
    • ►  April (3)
    • ►  March (9)
    • ►  February (15)
    • ►  January (14)
  • ▼  2009 (125)
    • ▼  December (51)
      • GPU computing on AMD.. an history perspective!
      • Catalyst 9.12: hotfix (III)
      • Catalyst 9.12 Linux and Windows links and release ...
      • Source code of DirectCompute bechmark(OpenCL and D...
      • Catalyst 9.12 adds OpenGL 3.2 support (and more..)!
      • 16/12 news!
      • Catalyst 9.12 released
      • PS3 OpenCL work and AMD OpenCL ICD
      • Christmas Wish list (I): Monitors
      • 3d Stereoscopic players!
      • Today news!
      • What will I do if I have 3D Vision OpenGL QB
      • GLEW,GLUT,Freeglut, MesaGLUT and more
      • Nvidia 195 new drivers and Flash player beta 2!
      • Running ATI GPUs in Sisoft Sandra 2010!
      • Memcheck GPUs!
      • Emulate 3D kernel launch grid
      • things found in CUDA forums
      • Siggraph 2009 (Asia too..)!
      • Architecture ideas for future GPUs!
      • Dificulties in coding, achieving high perf an meas...
      • Learned from HPG09 stuff!
      • Nvidia driver 187.98 add new files!
      • What I would want to know and get from vendors par...
      • What I would want to know and get from vendors par...
      • Some news II (post #100!)
      • What I would want to know and get from vendors par...
      • physics on GPU: source code!
      • OpenCL with MingW! (and more)
      • Some news!
      • String matching on GPUs!
      • Lots of OpenCL soft coming!
      • 10 Raytracing GPU demos! (more or less)
      • New Nvidia tools and crossvendor GPU instrumentati...
      • About Catalyst 9.12 and 10.1!
      • CUDA 3.0 forums stuff!
      • Upcoming GPU tutorials!
      • News from the web! (9 December)
      • Compiling the CUDA compiler!
      • Understanding Nvidia GT200 GPU and CUDA implementa...
      • Open Source GPU Computing benchmarks
      • CUDA TopCoder contest stuff (with source code of t...
      • CUDPP news!
      • DirectCompute stuff!
      • Nvidia GPU computing news!
      • GPU Computing calendar for December 09 and January...
      • Nexus FAQ!
      • Nvidia Nexus beta1 GPU debugger shipped!
      • GPU virtualization (and what to expect in VMs)!
      • AMD OpenCL news! (almost all..)
      • News posted 2/12/2009! (megacompilation)
    • ►  November (53)
    • ►  October (21)
Powered by Blogger.

About Me

Unknown
View my complete profile