summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-06-22demos: flush stdout after printing frame rateHEADmasterBrian Paul7-1/+8
To get immediate output on Windows. Trivial.
2015-05-29xdemos/corender: Remove.Jose Fonseca6-689/+1
Rendering from multiple processes into the same X window is not something that works in practice anymore. Nowadays interprocess rendering is better done with GLX/EGL extensions for that effect. https://bugs.freedesktop.org/show_bug.cgi?id=30279 Reviewed-by: Brian Paul <brianp@vmware.com>
2015-05-25glxinfo: fix segfault when core profile is unavailableJulien Isorce2-12/+16
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=85199 Signed-off-by: Julien Isorce <j.isorce@samsung.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2015-05-25wglinfo: pass the options object to print_screen_info()Brian Paul1-9/+8
To reduce the number of parameters. Acked-by: Matt Turner <mattst88@gmail.com>
2015-05-25glxinfo: pass the options object to print_screen_info()Brian Paul1-19/+19
To reduce the number of parameters. Acked-by: Matt Turner <mattst88@gmail.com>
2015-05-25glxinfo/wglinfo: add brief (-B) output modeBrian Paul4-30/+46
v2: replace "quiet" with "brief" in usage(), per Ilia. Based on a patch by Bryan Quigley <gquigs+bugs@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90438 Acked-by: Matt Turner <mattst88@gmail.com>
2015-02-25line-sample: use GL_LINE_STRIP instead of GL_LINE_LOOPBrian Paul1-3/+4
The svga driver (and maybe others) decompose line loops into disjoint lines so the line stipple counter isn't preserved from one segment to the next. Use GL_LINE_STRIP instead to work around that.
2015-02-18opengles2: fix building without X11Michael Olbrich1-1/+4
es2_info, es2gears_x11 and es2tri require X11, so don't build them if X11 is disabled. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88618 Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-02-14line-sample: Ensure GL_ALIASED_LINE_WIDTH_RANGE is defined on Windows.Jose Fonseca1-0/+1
By including glew.h, as done in other examples. Trivial.
2015-02-14wgl: Remove unnecessary #pragmas.Jose Fonseca2-4/+0
As they cause warnings on MinGW. Trivial.
2015-02-13line-sample: a new test that draws a sample of wide/stipple/smooth linesBrian Paul3-0/+189
2015-02-03torus.c: Lighting effect is distorted when object is scaled up/downDongwon Kim1-0/+5
When torus object is scaled up/down via glScalef call the lighting effect is incorrectly expressed on render target because normals' length is also changed when vertices are scaled up/down. This patch enables "automatic normalization" of normals, which is one of well-known ways to avoid this kind of distortion. Reference: www.opengl.org/sdk/docs/man2/xhtml/glScale.xml Notes If scale factors other than 1 are applied to the modelview matrix and lighting is enabled, lighting often appears wrong. In that case, enable automatic normalization of normals by calling glEnable with the argument GL_NORMALIZE. Signed-off-by: Dongwon Kim <dongwon.kim@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2015-01-29glxinfo: Add support for GLX_MESA_query_rendererAdam Jackson1-0/+49
This just queries our context, it doesn't attempt to enumerate all the available renderers. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-12-29s/Tungsten Graphics/VMware/José Fonseca2-19/+19
Tungsten Graphics Inc. was acquired by VMware Inc. in 2008. Leaving the old copyright name is creating unnecessary confusion, hence this change.
2014-11-19wgl: Ensure PIXELFORMATDESCRIPTOR members are zeroed.José Fonseca3-3/+7
I suddenly started seeing many simple GL apps, including wglinfo, choosing Microsoft GDI OpenGL implementation, even though hardware accelerated pixel formats were available. It turned out that: - the screen was in 16bpp mode (some WHCK tests have the nasty habit of doing that) - NVIDIA opengl driver only reports R5G6B5 pixel formats (ie no alpha bits) in this case - non-zero cAlphaBits was being passed to ChoosePixelformat (or in the wglinfo case, garbage, as the structure wasn't being properly zeroed) - ChoosePixelFormat will choose a SW pixel format if has to in order to honour non-zero cAlphaBits. At least on the wglinfo and friends case the alpha bits are not needed, so this change will make sure that HW accelerated formats will be chosen before SW ones. Reviewed-by: Roland Scheidegger <sroland@vmware.com>
2014-11-19tests,trival,fp,vp: Rename errno with errnum.José Fonseca37-150/+150
Prevents warnings on MinGW due to conflicting linkage types for errno. Reviewed-by: Roland Scheidegger <sroland@vmware.com>
2014-11-19cmake: Don't use gcc specific warnings with g++.José Fonseca1-5/+2
Avoids "warning: command line option ‘-W...’ is valid for Ada/C/ObjC but not for C++". Reviewed-by: Roland Scheidegger <sroland@vmware.com>
2014-11-01geom-wide-lines: use VBO, specify number of verts on cmd lineBrian Paul1-18/+42
2014-11-01geom-stipple-lines: use VBO, specify number of verts on cmd lineBrian Paul1-18/+41
If no command line argument is given, draw 50 points (25 lines).
2014-11-01glxinfo/wglinfo: reverse order of the gl_versions[] arrayBrian Paul3-21/+23
By going from newest to oldest we can simplify the glxinfo/wglinfo loops over the possible GL versions. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2014-10-21cmake: Define HAVE_FREEGLUT when glutInitContextProfile symbol is present.José Fonseca1-0/+9
Just like the configure.ac does. Trivial.
2014-08-24glxinfo: add 4.5 as a valid versionDave Airlie1-0/+1
Signed-off-by: Dave Airlie <airlied@redhat.com>
2014-08-12glxgears_pixmap: destroy correct pixmap idNathan Kidd1-1/+1
Previously we'd get a GLXBadPixmap error. Signed-off-by: Nathan Kidd <nkidd@opentext.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-08-08glxinfo/wglinfo: query/print GL_ARB_texture_multisample limitsBrian Paul1-0/+5
2014-07-28glxinfo: fix direct rendering context in glxinfoMarc Dietrich1-1/+1
commit e769bc682b4a0d0f597286b067f54f923d159866 broke direct rendering context because it defaults to indirect rendering and there is no way to reverse it. Signed-off-by: Marc Dietrich <marvin24@gmx.de> Reviewed-by: Andreas Boll <andreas.boll.dev@gmail.com> Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com>
2014-07-16wglinfo: adjust column spacing for pixel format infoBrian Paul1-4/+4
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-07-16wglinfo: print swap method in print_visual_attribs_verbose()Brian Paul1-0/+7
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-07-16wglinfo: Add support for reporting core profile infoBrian Paul3-44/+138
As with glxinfo, we first report version/extension info for a compatibility profile context, then report version/extension info for a core profile context. Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-07-16glxinfo/wglinfo: move argument parsing into common codeBrian Paul4-124/+113
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-07-16wglinfo: query and report multisample informationBrian Paul1-59/+178
Before, we always reported zeros in the multisample columns of the format list. Since PIXELFORMATDESCRIPTOR doesn't have fields for multisample, we use a new format_info structure to extend that type. We can only query this info with the wglGetPixelFormatAttribivARB() function which is part of the WGL_ARB_pixel_format extension. Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-07-05demos: bump version to 8.2.0 for releaseAndreas Boll2-2/+2
2014-07-05configure.ac: Fix help textAndreas Boll1-9/+9
Matches behavior with action-if-not-given Reviewed-by: Julien Cristau <jcristau@debian.org>
2014-07-05demos: Fix make distcheckAndreas Boll1-1/+2
Reviewed-by: Julien Cristau <jcristau@debian.org>
2014-07-05glxinfo: add query for OpenGL 4.4 GL_MAX_VERTEX_ATTRIB_STRIDEBrian Paul1-1/+29
And add support for qualifying a limit query with an OpenGL version instead of an extension string. Reviewed-by: Andreas Boll <andreas.boll.dev@gmail.com>
2014-07-05glxinfo: remove query of GL_MAX_VERTEX_ATTRIB_STRIDEBrian Paul1-1/+0
This is not part of the GL_ARB_vertex_attrib_binding extension. It's part of OpenGL 4.4. Fixes compilation failure if glext.h doesn't have the GL 4.4 #defines. Reviewed-by: Andreas Boll <andreas.boll.dev@gmail.com>
2014-07-03glsl/gsraytrace: Fix typoAndreas Boll1-1/+1
2014-07-03demos: add missing binaries to .gitignoreAndreas Boll3-0/+4
2014-07-03glxinfo: Print GL_EXT_texture_array limitsFredrik Höglund1-0/+3
Updated patch for refactored glxinfo/wglinfo code by Andreas Boll. Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-07-03glxinfo: Print GL_ARB_vertex_attrib_binding limitsFredrik Höglund1-0/+5
Updated patch for refactored glxinfo/wglinfo code by Andreas Boll. Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-07-03glxinfo: Print XFB, TBO, and UBO limitsFredrik Höglund1-0/+22
Updated patch for refactored glxinfo/wglinfo code by Brian Paul. Signed-off-by: Brian Paul <brianp@vmware.com> Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-06-10glinfo_common: fix extension_supported() functionBrian Paul1-6/+16
The code did not correctly handle super-string handling. For example, if we were searching for "WGL_ARB_pixel_format" but we found "WGL_ARB_pixel_format_float" we'd stop searching and return 0. Now we search past that initial, incorrect match. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2014-05-29wglinfo: Use _snprintf on Windows.José Fonseca1-0/+4
Prevents missing snprintf with MSVC.
2014-05-28wglinfo: Don't rely on GL/glext.hJosé Fonseca1-5/+5
GL/glext.h is not commonly available when building on Windows (though recent MinGW versions seem to have it.) So get the defines from GL/glew.h to avoid introducing a new build Trivial. Verified glxinfo and wglinfo build correctly.
2014-05-28wglinfo: use common code from glinfo_common.cBrian Paul2-517/+18
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-28glxinfo: move reusable, non-GLX code into glinfo_common.[ch]Brian Paul5-634/+759
So that we can share some of the code with wglinfo. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2014-05-12drawtex: fixed compiler warnings related to use of eglGetProcAddressStefan Dirsch1-1/+2
Add proper <EGL/egl.h> include and cast in order to fix compiler warnings related to the use of eglGetProcAddress. Reviewed-By: Tapani Pälli <tapani.palli@intel.com>
2014-05-06cmake: Silence warnings about deprecated GLUT functions on MacOSX.José Fonseca1-0/+6
Too many warnings, and GLUT is not something we can easily replace.
2014-05-06drawtex: resolve glDrawTexfOES extension functionTapani Pälli1-1/+9
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78101 Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2014-03-08geom-outlining-150: Switch to core profile.Fabian Bieler1-0/+13
Signed-off-by: Fabian Bieler <fabianbieler@fastmail.fm> Acked-by: Kenneth Graunke <kenneth@whitecape.org>
2014-03-08geom-outlining-150: Use core geometry shaders.Fabian Bieler1-18/+8
Signed-off-by: Fabian Bieler <fabianbieler@fastmail.fm> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>