summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
* wglgears: fix up wglChoosePixelFormatARB() attribute listHEADmasterBrian Paul2017-05-03
| | | | | | | | Specify WGL_DRAW_TO_WINDOW_ARB and WGL_COLOR_BITS_ARB. Improve some comments, per Charmaine. Reviewed-by: Charmaine Lee <charmainel@vmware.com> Reviewed-by: Neha Bhende<bhenden@vmware.com>
* wglinfo: query format bitmap, pbuffer GDI rendering abilityBrian Paul2017-05-03
| | | | | | | Only reported with -v option for now. Reviewed-by: Charmaine Lee <charmainel@vmware.com> Reviewed-by: Neha Bhende<bhenden@vmware.com>
* glxinfo: print more detailed help messageBrian Paul2017-04-27
| | | | Trivial.
* wglinfo: query/print sRGB and float pixel format infoBrian Paul2017-04-27
| | | | | | | | | | | | | Print the columns in the same place as glxinfo. Use 3 digit hexadecimal field for printing pixel format number. Remove the 'caveat' field which is non-existant in WGL. This also fixes a minor bug when we query WGL_PIXEL_TYPE_ARB. We previously stored the result in info->pfd.iPixelType which is a BYTE type but the WGL_TYPE_* values are all larger than 255. Use a temporary variable instead. Reviewed-by: Neha Bhende <bhenden@vmware.com>
* wglgears.c: add -srgb optionBrian Paul2017-04-27
| | | | | | | To test sRGB pixel format selection and sRGB rendering. This involves choosing a new pixel format, creating a new context, etc. Reviewed-by: Neha Bhende <bhenden@vmware.com>
* gears: call fflush() after printf() for WindowsBrian Paul2017-04-26
| | | | Trivial.
* wglgears: code clean-upBrian Paul2017-04-21
| | | | | | Fix indenting, remove dead code, etc. Signed-off-by: Brian Paul <brianp@vmware.com>
* wgl: import the wglgears demoBrian Paul2017-04-21
| | | | | | | Ben Skeggs ported gears to wgl many years ago. With Ben's blessing I'm putting it in the demos repo. Signed-off-by: Brian Paul <brianp@vmware.com>
* configure.ac: Auto-detect wayland supportAndreas Boll2017-03-30
| | | | | | | Automatically enables building of wayland demo(s) if the required build dependencies are available. Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com>
* texdown: Use alligned_alloc/_aligned_malloc.Jose Fonseca2017-01-18
| | | | Simplifies the code and addresses compiler warnings.
* tests/shader_api: Avoid unused variable warning.Jose Fonseca2017-01-18
| | | | Trvial.
* test/drawstencil: Avoid unusued function warning.Jose Fonseca2017-01-13
| | | | Trivial
* tests/tkmap: Remove unused functions.Jose Fonseca2017-01-13
| | | | Trivial.
* util/trackball: Avoid MSVC pragmas on Mingw.Jose Fonseca2017-01-13
| | | | Trivial.
* wg/sharedtex_mt: Remove unsed variable.Jose Fonseca2017-01-13
|
* wgl/rotex: Address compiler warnings.Jose Fonseca2017-01-13
| | | | | | Ensure we preserve the const-ness of static string constants. Trivial.
* wgl: Keep winthread pointer in GWLP_USERDATA.Jose Fonseca2016-05-20
| | | | | | Instead of walking the WinThreads array all the time. Trivial.
* eglinfo: Restore eglTerminateAdam Jackson2016-04-20
| | | | | Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
* eglinfo: Add EXT_platform_* awarenessAdam Jackson2016-04-20
| | | | | Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
* eglinfo: Factor out a "probe one display" functionAdam Jackson2016-04-20
| | | | | Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
* eglinfo: Print client extensions firstAdam Jackson2016-04-20
| | | | | | | These are independent of the display, and I want to iterate over those. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
* eglinfo: Note when an EGLConfig is streams-compatibleAdam Jackson2016-04-20
| | | | | Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
* glxinfo: test GL_ATI_meminfo and GL_NVX_gpu_memory_info (v2)Marek Olšák2016-02-25
| | | | | | v2: move the code to glinfo_common.c. Reviewed-by: Brian Paul <brianp@vmware.com>
* perf: fix snprintf() problem on Windows for glsl-compile-time.cBrian Paul2016-02-25
| | | | | | Use the typical _snprintf work-around. Reviewed-by: José Fonseca <jfonseca@vmware.com>
* remove stray 'spazio3d' target from Makefile.amBrian Paul2016-02-03
|
* cmake: Build glsl-compile-time without linking glmain.c.Jose Fonseca2016-02-02
|
* don't build glsl-compile-time program with CMake for nowBrian Paul2016-02-02
| | | | | It doesn't play with the glmain.c code which is linked with all the other demos in this directory. Just omit it for now.
* Add new test of glPolygonMode() with different front/back modesBrian Paul2016-02-02
|
* perf: add new glsl-compile-time test programBrian Paul2016-02-02
| | | | | Generates large shaders and measures the time to compile, link and draw.
* wgl: Minor cleanups to wglfont.Jose Fonseca2016-01-28
| | | | | | Ensure things get destroyed, and use the full 256 range. Trivial.
* configure.ac: Fix default behavior of AC_ARG_WITH(glut) if glut isn't availableAndreas Boll2016-01-21
| | | | | | | | | | | | | | | | | Fixes a regression introduced in 406248811eb0dfabf75ae9495b54529ec59cce66 It wrongly sets glut_enabled=yes if glut isn't available and neither option --with-glut nor --without-glut was given. The default behavior in that case should be if glut is available then enable glut else it should disable glut. To fix this the default value of glut_enabled is set back to yes and in case --without-glut was given glut_enabled is set to no. Cc: Ross Burton <ross.burton@intel.com> Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com>
* wgl: Rudimentary wglUseFontBitmaps sample.Jose Fonseca2016-01-06
| | | | | | | | | | | | It uses SYSTEM_FONT which actually creates some challenges when emulating wglUseFontBitmaps: in spite what https://msdn.microsoft.com/en-us/library/windows/desktop/dd374392.aspx implies, GetGlyphOutline(GGO_BITMAP) does not seem to work with certain fonts. The only solution is to draw the font charactors with a HBITMAP like the old Mesa fxwgl.c code used to do. That too, seems to be the way that opengl32.dll implements wglUseFontBitmaps. Reviewed-by: Brian Paul <brianp@vmware.com>
* demos: Bump version to 8.3.0 for releaseAndreas Boll2015-12-09
| | | | Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com>
* util: Remove unused glstate.[ch]Andreas Boll2015-12-08
| | | | | | | Unused and not built for years. Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
* demos: add missing binaries to .gitignoreAndreas Boll2015-12-07
| | | | | Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
* configure.ac: fix AC_WITH(glut) so that --without-glut worksRoss Burton2015-12-07
| | | | | | | | | | Currently if --without-glut is used on a system that has the GLUT libraries installed, GLUT is used regardless. Change the logic so that GLUT is searched for if and only if GLUT is requested. Signed-off-by: Ross Burton <ross.burton@intel.com> Reviewed-by: Andreas Boll <andreas.boll.dev@gmail.com>
* rubberband: add keyboard option to test non-white drawing colorBrian Paul2015-11-03
| | | | And use glLogicOp by default instead of blending.
* rubberband: select line width with 1..4 keysBrian Paul2015-10-16
|
* sharedtex_mt: fix rendering thread hangAwais Belal2015-10-14
| | | | | | | | | | | | | | XNextEvent is a blocking call which locks up the display mutex. This causes the rendering threads to hang when they call glXSwapBuffers() as that tries to take the same mutex in underlying calls through XCopyArea(). So we only call XNextEvent when it has at least one event so we don't lock indefinitely. Patch slightly fixed by Brian to keep var declarations as-is and clean up the patch description. Signed-off-by: Awais Belal <awais_belal@mentor.com> Reviewed-by: Brian Paul <brianp@vmware.com>
* egl: Remove demos using EGL_MESA_screen_surface.Matt Turner2015-09-21
| | | | | | | | The remnants of the extension were removed from Mesa in commit 7a58262e. Reviewed-by: Andreas Boll <andreas.boll.dev@gmail.com> Tested-by: Andreas Boll <andreas.boll.dev@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
* glxinfo: fix printing core profile extensionsMarek Olšák2015-08-03
| | | | | | | | | | | | | | Nobody supports GLX 3.x. Broken by: commit fca824431608101298ff0735db4c09954dcf64ab Author: Julien Isorce <j.isorce@samsung.com> Date: Tue May 19 08:35:10 2015 +0100 glxinfo: fix segfault when core profile is unavailable Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
* eglinfo: print client extensionsMarek Olšák2015-08-03
|
* line-sample: add flat/smooth and blend togglesBrian Paul2015-07-27
| | | | | | Press 'f' to toggle flat/smooth shading. Press 'b' to toggle blending. Clear window to gray instead of black.
* tri-tex-stipple: trivial test of texturing with stipplingBrian Paul2015-07-20
|
* util: add fflush() in ValidateShaderProgram()Brian Paul2015-07-20
| | | | So the output appears immediately on Windows.
* quad-offset-unfilled: fix GL_POLYGON_OFFSET_FILL/LINE mistakeBrian Paul2015-07-20
| | | | | The glDisable() should match the preceeding glEnable(). Found by Neha Bhende.
* demos: flush stdout after printing frame rateBrian Paul2015-06-22
| | | | | To get immediate output on Windows. Trivial.
* xdemos/corender: Remove.Jose Fonseca2015-05-29
| | | | | | | | | | | | 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>
* glxinfo: fix segfault when core profile is unavailableJulien Isorce2015-05-25
| | | | | | | 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>
* wglinfo: pass the options object to print_screen_info()Brian Paul2015-05-25
| | | | | | To reduce the number of parameters. Acked-by: Matt Turner <mattst88@gmail.com>