Commit Graph

1330 Commits

Author SHA1 Message Date
Keith Whitwell ac833b9aef trivial: add trifan tests 2008-06-10 14:48:57 +01:00
Keith Whitwell f5801fba24 trivial: add poly-flat-clip tests 2008-06-10 14:48:57 +01:00
Keith Whitwell d915f40195 trivial: add tristrip-flat to makefile 2008-06-10 14:48:57 +01:00
Brian Paul f8c6b6628d minor changes 2008-06-05 15:37:17 -06:00
Brian Paul d8de01ba41 sync up with glxgears.c from master 2008-06-04 16:55:19 -06:00
Brian Paul 4c7a17c251 fix event handling issues (such as when resizing when not animating) 2008-06-04 16:11:24 -06:00
Brian Paul 6d9c3fa0c2 press 'a' to toggle animation 2008-06-04 16:04:04 -06:00
Brian Paul c35e021f37 code refactoring (draw_frame(0, handle_event()) 2008-06-04 16:01:47 -06:00
Brian Paul c5342ad0d0 remove references to incorrect -winwidth/-winheight, replace with -geometry 2008-06-04 15:56:30 -06:00
Brian Paul 2154cb4994 egl: single triangle test 2008-06-04 11:41:37 -06:00
Brian Paul bf527cc8d4 egl: fix X visual selection 2008-06-04 11:40:25 -06:00
Brian Paul b9d35c7c44 egl: query/print EGL_NATIVE_VISUAL_ID
Other whitespace/etc clean-ups.
2008-06-04 11:36:59 -06:00
Jakob Bornecrantz 88f86c9d02 egl: Added peglgears, gears that uses pbuffers 2008-06-04 19:31:05 +02:00
Brian Paul af540ef369 egl: updated egl.h include paths 2008-06-04 10:11:25 -06:00
Brian Paul f34767f04c call glutDestroyWindow() before exit 2008-06-04 09:30:32 -06:00
Brian Paul 6b9b49127e egl: bind the OpenGL API 2008-05-30 13:46:50 -06:00
Brian Paul 80ed996803 egl: new version of gears demo that uses Xlib+EGL (and full OpenGL for now) 2008-05-30 11:47:09 -06:00
Brian Paul 8cd33faee6 egl: query/print EGL_CLIENT_APIS 2008-05-28 15:25:01 -06:00
Jakob Bornecrantz 938d9d5963 Merge branch 'gallium-vertex-linear' into gallium-0.1
Conflicts:

	src/gallium/auxiliary/draw/draw_pt_varray.c
2008-05-28 12:42:42 +02:00
Jakob Bornecrantz 3e867959e9 egl: Fix warning in eglgears 2008-05-28 11:17:14 +02:00
Jakob Bornecrantz d8a693ee49 egl: Make demo3 compile 2008-05-28 11:17:10 +02:00
Brian Paul a6af2e3345 include eglext.h, define EGL_EGLEXT_PROTOTYPES 2008-05-27 13:47:23 -06:00
Brian Paul 096b79bf17 updates for EGL 1.4 2008-05-27 13:47:07 -06:00
José Fonseca 77ce568ff7 Remove CVS keywords. 2008-05-26 20:14:40 +09:00
Jakob Bornecrantz e3ddafd1d3 Merge branch 'gallium-tex-surface' into gallium-0.1
Conflicts:

	src/gallium/include/pipe/p_util.h
2008-05-26 13:04:25 +02:00
Jakob Bornecrantz a3dbd412df Merge branch 'gallium-i915-current' into gallium-0.1 2008-05-23 16:26:14 +02:00
Keith Whitwell 2f13d4cd58 vp-tris: use test name as window name 2008-05-23 09:16:56 +01:00
Michel Dänzer 019fc3aa04 Merge branch 'gallium-0.1' into gallium-tex-surfaces 2008-05-21 17:15:07 +01:00
Brian e8d5be9c76 fix assorted bugs, works now
(cherry picked from commit 55d4f32fc2)
2008-05-21 17:13:26 +01:00
Brian 2ec318640f added readtex.h dependency 2008-05-21 07:05:29 -06:00
Zack Rusin f869ddf297 add new binaries to ignore to make 'git status' cleaner 2008-05-20 19:18:22 -04:00
Dan Nicholson 0a4867bd4c Ignore more generated files in progs/
Many of the directories in progs/ were missing .gitignore files or
were tracking generated files. This patch is basically the process of
running `make' in each directory and then finding the untracked files
with `git-ls-files -o --exclude-per-directory=.gitignore'. The existing
files were also sorted.
2008-05-20 19:04:57 -04:00
Zack Rusin cd87aeae00 add a simple but nice example of convolution filters in glsl
shows basics of image processing with glsl
2008-05-20 18:49:51 -04:00
Brian Paul 8f792a0707 Merge branch 'gallium-0.1' into gallium-tex-surfaces 2008-05-20 15:12:50 -06:00
Brian Paul 417719c0a6 mesa: call glutDestroyWindow() 2008-05-20 15:11:33 -06:00
Brian Paul d7cf6b2978 mesa: call glutDestroyWindow() 2008-05-20 13:49:18 -06:00
Brian Paul 479174c398 Merge branch 'gallium-0.1' into gallium-tex-surfaces 2008-05-20 13:39:27 -06:00
Brian Paul a3f9ae4fea mesa: call glutDestroyWindow() 2008-05-20 13:38:59 -06:00
Brian Paul 4978953c79 new multi-texture GLSL test 2008-05-20 11:01:17 -06:00
Brian Paul 54fbd8bbd4 Merge branch 'gallium-0.1' into gallium-tex-surfaces 2008-05-18 16:17:50 -06:00
Brian Paul b86cf71491 mesa: call glutDestroyWindow() on exit to help find mem leaks 2008-05-16 16:02:52 -06:00
Jakob Bornecrantz 3f9de6ff7d egl: Updated EGL samples to use new i915 EGL winsys 2008-05-14 17:20:25 +02:00
Dan Nicholson 738d811b04 Don't link demos directly to X libraries
Since the linker will just pull in the libraries needed from libGL, we
don't need to link the demos directly to the X libraries. Fixes #15886.
2008-05-09 16:19:50 -07:00
Brian Paul 4566880656 disable GL_DEPTH_TEST before glDrawPixels in case window has unrequested depth buffer 2008-05-08 08:39:30 -06:00
Brian Paul 6a3fac8711 call glutDestroyWindow() 2008-05-08 08:37:52 -06:00
Brian Paul 79e57695e1 disable GL_DEPTH_TEST before glDrawPixels in case window has unrequested depth buffer 2008-05-08 08:33:44 -06:00
Brian Paul 12a317b93a updated options/help 2008-05-07 18:11:06 -06:00
Dan Nicholson a6464b3cb0 Never fail `make clean'
Mostly some pedantic changes such that `make clean' always ignores
errors. Also changed the top clean target to do the `touch
configs/current' dance instead of realclean.
2008-05-07 11:35:23 -07:00
Brian Paul 8f76459f62 mesa: document a/s keys 2008-05-07 11:57:46 -06:00
Brian Paul f34a30bf79 mesa: add texturing to thread test
Run with -t to enable texture mapping.
Press 't' to update the texture image.  When the texture is changed in one
thread it should also get updated in the other threads since textures are
shared by all contexts.
2008-05-07 11:57:46 -06:00
Dan Nicholson a2b73c74b0 Ignore xdemos/sharedtex 2008-05-05 15:16:52 -07:00
Brian Paul bc57a7c9f7 Press <space> to reset limit/bias values, clean-up limit/bias printf 2008-05-03 09:10:44 -06:00
Brian Paul 97709950e7 Press <space> to reset limit/bias values, clean-up limit/bias printf 2008-05-03 09:09:40 -06:00
Brian Paul 522f11b632 set TextureID = NULL after deleting the array 2008-05-02 09:31:38 -06:00
Brian Paul 07b551f7cf added xdemos/sharedtex.c test
Test that modifications to a texture object in one rendering context are seen
in a second rendering context.
Press 't' to change the texture's image/colors.
2008-04-30 15:30:29 -06:00
Brian Paul 9a43570f8c added xdemos/sharedtex.c test
Test that modifications to a texture object in one rendering context are seen
in a second rendering context.
Press 't' to change the texture's image/colors.
2008-04-30 14:45:58 -06:00
Brian Paul aef4ca647d disable GL_TEXTURE_1D at end of frame to fix failed assertion 2008-04-29 18:37:41 -06:00
Brian Paul 5692e09be8 disable GL_TEXTURE_1D at end of frame to fix failed assertion 2008-04-29 15:03:06 -06:00
Brian Paul 059ab50c60 mesa: explicitly delete textures before creating new ones
Also, call glutDestroyWindow() upon exit.
2008-04-28 14:20:11 -06:00
Keith Whitwell 63e6e33db6 trivial: simple edgeflag test 2008-04-24 12:39:09 +01:00
Keith Whitwell 1e3087cd03 mesa: add dedicated point-wide-smooth test, restore original tri.c as tri-orig.c 2008-04-23 13:10:13 +01:00
Brian Paul 6d0f9d5a01 mesa: new Z-compositing test (glDrawPixels(GL_DEPTH) + stencil) 2008-04-11 09:21:37 -06:00
Brian Paul e1c3560152 add missing glViewport calls
cherry-picked from master
2008-04-11 09:01:04 -06:00
Brian Paul b69eb0360a add missing glViewport calls 2008-04-11 08:59:39 -06:00
Brian Paul 544c236db1 mesa: add a new test for glDrawPixels(GL_DEPTH_COMPONENT) 2008-04-10 18:33:53 -06:00
Brian 842b8b4c33 more make clean items 2008-04-09 22:30:42 -06:00
Brian 26f0b8f506 use InitUniforms() 2008-04-09 22:30:42 -06:00
Brian 2dca3373ae Replace duplicated code with new shaderutil.c functions 2008-04-09 22:30:42 -06:00
Brian 90caba3d76 shader utility functions 2008-04-09 22:30:42 -06:00
Kristian Høgsberg c016f329ab Only convert configs if screen creation was successful.
Thanks to Adam Jackson for pointing it out.
2008-04-08 18:31:07 -04:00
Brian c3240b5ff8 added glGetActiveUniform_func 2008-04-04 19:28:33 -06:00
Brian 40905c909d mesa: add missing glPush/PopMatrix() calls 2008-04-04 19:28:33 -06:00
Brian ae0ea14ff6 mesa: add missing glPush/PopMatrix() calls 2008-04-04 19:28:33 -06:00
Brian 8a8e7b22c0 mesa: test code to exercise more GLSL functions 2008-04-04 18:56:22 -06:00
Brian f7f4b81ad8 mesa: added more ext funcs (from Mesa/master) 2008-04-04 18:55:48 -06:00
Brian fe1c9c0585 mesa: add missing glPush/PopMatrix() calls 2008-04-04 16:45:05 -06:00
Brian 1e4cd24e9c mesa: add missing glPush/PopMatrix() calls 2008-04-04 16:45:05 -06:00
Brian cdbfae9bef test glStencilFuncSeparateATI() 2008-04-04 12:44:14 +02:00
Brian 96b4ac05be silence warning 2008-04-03 20:12:32 -06:00
Brian 7f40115a52 mesa: added a cast to avoid int overflow, plus rename texels->pixels 2008-04-01 16:20:29 -06:00
Brian 792d524aed mesa: measure fill rate for drawing a large quad with basic shading/texture modes 2008-04-01 16:07:09 -06:00
Brian 8bef18f47b mesa: destroy window upon exit 2008-04-01 14:56:10 -06:00
Eric Anholt 227af94cce Add a couple of test apps for line/unfilled polygon clipping. 2008-03-27 11:57:08 -07:00
Brian Paul f654ab40d6 mesa: call glutDestroyWindow (help find mem leaks) 2008-03-24 17:21:18 -06:00
Eric Anholt bcb61987fb Fix xdemos build on FreeBSD: <sys/types.h> before <netinet/tcp.h> 2008-03-21 14:19:30 -07:00
Brian Paul 74525d474c mesa: minor code re-org 2008-03-21 11:06:52 -06:00
Brian Paul ba31cf6855 better text labels 2008-03-19 17:15:14 -06:00
Brian Paul 5456f4f210 mesa: new mipmap generation, lod bias demo
Show each of the mipmap levels side-by-side.
Press 's' to toggle quad scaling to see mipmap level at actual size.
2008-03-17 16:03:06 -06:00
Brian Paul 14150bc856 mesa: call glColorMask(1,1,1,1) before glClear()
Without this, second and subsequent redraws rendered incorrectly.
Plus comments.
2008-03-14 11:35:57 -06:00
Dan Nicholson f1e1267372 Fix include path for rain demo so glut.h is found 2008-03-11 06:24:56 -07:00
Jeremy Huddleston 7c7fece977 Darwin: Config/source fixes to now build glxdemo apps and OSMesa
Also added darwin-fat-32bit darwin-fat-all configs and deleted old darwin-x86ppc config
(cherry picked from commit 7120c0089d663a2b7e7b0c97da38f9bc233fbdd7)
2008-03-10 15:21:39 -07:00
Dan Nicholson ab5750f143 Ignore more demo programs 2008-03-10 12:36:10 -07:00
Kristian Høgsberg 51cd168da4 glxgears: oops, remove accidental commit of glFinish() hack. 2008-02-29 15:33:40 -05:00
Kristian Høgsberg 6cb3f5c4d8 Use __DRIextension mechanism providing loader functionality to the driver.
Instead of passing in a fixed struct, the loader now passes in a list
of __DRIextension structs, to advertise the functionality it can provide
to the driver.  Each extension is individually versioned and can be
extended or phased out as the interface develops.
2008-02-29 15:05:39 -05:00
Brian 370eca12ad Added calibrate_rast.c program
Measures rasterization of points/lines/tris and suggests fixes/biases when
something doesn't meet spec.
2008-02-28 17:55:26 -07:00
José Fonseca 60159c1b09 Convert crlf->lf line endings.
Windows/DOS users should enable core.autocrlf from now on:

  git config --global core.autocrlf true
2008-02-28 16:34:32 +09:00
José Fonseca 2573f0e5d6 Convert crlf->lf line endings.
Windows/DOS users should enable core.autocrlf from now on.
2008-02-28 15:53:13 +09:00
Brian bc3f2c908e Added line smooth test 2008-02-25 16:26:37 -07:00
José Fonseca 2d38d1b300 Remove files of unsupported build systems. 2008-02-25 17:11:28 +09:00
José Fonseca 9bcc8ad0ca Update git ignores. 2008-02-25 17:05:15 +09:00
Brian 52e4c8d702 Test calling glTexSubImage2D mid-way through a frame. 2008-02-20 11:58:33 -07:00
Dan Nicholson 8c8107118e Ignore glxgears_pixmap 2008-02-17 19:34:48 -08:00
Brian f9973b1c3d Added minmag.c test
Test that different minification and magnification filters are chosen for the
non-mipmapped texture case.
2008-02-16 10:05:24 -07:00
Brian 3955bbc303 Added minmag.c test
Test that different minification and magnification filters are chosen for the
non-mipmapped texture case.
2008-02-16 09:57:50 -07:00
Adam Jackson 4955325ae9 chmod a-x **/glslnoise.c 2008-02-15 15:05:42 -05:00
Kristian Høgsberg 5961ed5fbc Add GLXPixmap version of glxgears to show case new GLX Pixmap functionality. 2008-02-14 22:05:55 -05:00
Brian ca2f2c7664 gallium: new pgon-mode.c test
A two-triangle strip is drawn such that the first tri is front-facing and
the second tri is back-facing.  Use different front/back polygon modes.
2008-02-14 18:59:24 -07:00
Brian be54b492d9 Fix broken test.
As-is, if the texture was too large for the target, an assertion would fail.
Now check proxy texture first and if it works, then test non-proxy target.
2008-02-12 16:57:00 -07:00
Brian 22ab7fa466 Fix broken test.
As-is, if the texture was too large for the target, an assertion would fail.
Now check proxy texture first and if it works, then test non-proxy target.
2008-02-12 16:56:18 -07:00
Brian cf94941122 Set Min/MaxLod with glTexParameterf, not glTexParameteri 2008-02-12 15:54:15 -07:00
Brian edc7cfa6e6 Set Min/MaxLod with glTexParameterf, not glTexParameteri 2008-02-12 15:53:37 -07:00
Brian 4697cee78b press 0,1,2,etc keys for specific bias values 2008-02-12 15:01:44 -07:00
Brian 74c32ee6aa tweak incr/decrements amounts for keyboard options 2008-02-12 15:01:32 -07:00
Brian fb3ca7ee2d tweak incr/decrements amounts for keyboard options 2008-02-12 15:00:14 -07:00
Brian 76295f0c31 press 0,1,2,etc keys for specific bias values 2008-02-12 15:00:14 -07:00
Eric Anholt 745df749cc Include glext.h in the cva test so that it actually uses CVAs. 2008-02-04 18:24:16 -08:00
Brian bd299093ec push out far clip plane to 200 2008-01-28 12:42:37 -07:00
Brian f09b2382e9 push out far clip plane to 200 2008-01-28 12:41:47 -07:00
Brian ba083bae69 Added d/D keys to change viewing distance, 'a' to toggle animation 2008-01-28 12:37:35 -07:00
Brian e7007c6fb0 Added d/D keys to change viewing distance, 'a' to toggle animation 2008-01-28 12:36:01 -07:00
Adam Jackson e1ae5b89fc glxinfo: Fix multisample visual reporting.
strstr() == 0 tests for the string _not_ being present.  Originally
Red Hat bug #351871.
2008-01-22 14:57:20 -05:00
Brian 6bd32cbcf3 Don't build yuvrect_client by default
Added 'extra' rule to build optional yuvrect_client, shape, xdemo programs
2008-01-22 07:57:33 -07:00
Brian 60dd3b1d9a remove unused var 2008-01-22 07:57:33 -07:00
Alexey Sokolov e58c365cda define M_PI if needed 2008-01-22 07:57:33 -07:00
José Fonseca e122a8fa18 gallium: Ignore generated files. 2008-01-17 12:05:37 +09:00
Brian 6c0fc07d71 fix glUniform4f typo 2008-01-01 10:20:56 -07:00
Bruce Merry 2bf2a8cc6d Convert to 0/1 when setting boolean uniforms
Also add some extra tests to the shader_api regression tests
2008-01-01 09:58:15 -07:00
Bruce Merry 239be839be Add a test program to test for assorted bugs in shader_api.c 2008-01-01 09:58:15 -07:00
Keith Whitwell ded6ce2bd5 vp-tri: match vertex/color data of other tests 2007-12-19 15:13:20 +00:00
Keith Whitwell 2c8e50c0cb use a depth buffer temporarily 2007-12-19 13:13:53 +00:00
Brian 88f1419f96 added glSecondaryColor3fv_func 2007-12-18 16:30:42 -07:00
Brian 83af4f3623 added two-side test 2007-12-18 16:25:48 -07:00
Brian 87002aba3b Test GL_VERTEX_PROGRAM_TWO_SIDE and frag shader gl_FrontFacing features 2007-12-18 16:24:19 -07:00
Brian caec2a79e6 added twoside demo 2007-12-18 16:24:19 -07:00
Brian 85f5e6d7b9 Fix a quadstrip front/back-face inconsistancy.
Only set front material colors to make it noticable if front/back-face
determination is incorrect anywhere.
2007-12-18 16:24:19 -07:00
Zack Rusin 55c1894d0a Add the new test program for fp's. 2007-12-17 13:23:47 -05:00
Brian a5eb9e7b1b Build rain demo (Gonzo <andreas.wendleder@gmail.com>) 2007-12-14 14:35:18 -07:00
Zack Rusin 6f111e9c81 Don't generate spurious vs, move the enable a bit to do that. 2007-12-13 10:31:39 -05:00
Zack Rusin 63a9d835ce Redo the fragment program examples to match vp's
we just load text files instead of compiling tons of small
binaries
2007-12-11 09:49:34 -05:00
Zack Rusin 025b140b2f Add a simple fps counter to the example 2007-12-11 09:49:33 -05:00
Roland Scheidegger 46c405663b add simple test for two-sided stencil functionality 2007-12-11 15:38:34 +01:00
Brian aef25b1994 set window size to 256x256 2007-12-10 17:32:43 -07:00
Keith Whitwell b1399a5dd2 gallium: more trivial tests 2007-12-09 14:06:00 +00:00
Keith Whitwell 56bc8d9199 gallium: remove unneeded depth buffer 2007-12-09 14:05:12 +00:00
Dan Nicholson f1efacb92b Make osdemos linking like other programs
Most of the programs list their dependencies on the Mesa libraries in
their Makefiles. This works with the default configuration where
APP_LIB_DEPS only lists external libraries. This changes the
linux-osmesa configs and the osdemos Makefile to follow that convention.

Some cleanup of the Makefile is also added to refer to the GL libraries
through the existing variables rather than hardcoding their names.
2007-12-07 14:10:27 -08:00
Brian 5b91ee27c0 Undo changes made to the toyball shaders in commit d19d0596da
This demo produces the expected results again.
2007-12-04 18:44:40 -07:00
Brian df198d24bc added culling/wireframe options 2007-12-04 14:07:08 -07:00
Brian 44c8dac0af better front-plane clip test 2007-11-30 09:08:58 -07:00
joukj a11b6f025c Updates of some OpenVMS makefiles. 2007-11-30 13:16:05 +01:00
Brian 92e4090b4c add a few more logicop modes, simplify code 2007-11-27 10:31:55 -07:00
Brian be1fa5b3d7 better test of point attenuation 2007-11-23 16:19:25 -07:00
Brian 88b067cb04 #define GL_GLEXT_PROTOTYPES to silence warning 2007-11-23 14:35:46 -07:00
Brian ccb1c9df00 Print point/line size range limits 2007-11-22 09:34:38 -07:00
Brian 8211b20026 added z/s keys to reset/step rotation 2007-11-16 15:19:05 -07:00
Brian fb69fe58a0 Only emit texcoords for enabled units. Enable/disable units with 0..7 keys.
Also, asst. clean-ups.
2007-11-16 15:19:05 -07:00
Brian f6ab1347d6 remove dependency on libGLU 2007-11-12 08:02:09 -07:00
Brian 578641941f test that point/line/quad rendering hits the right pixels 2007-11-09 17:02:51 -07:00
Brian 8b8a970593 test glStencilFuncSeparateATI() 2007-10-30 10:23:58 -06:00
Michal Krol 918ea5168b Rename 'mms-config.' to 'mms.config'.
It looks like Windows does not like filenames ending with a dot,
in effect renaming it to 'mms-config'.
2007-10-29 19:50:10 +00:00
Dan Nicholson c05aa5ec4c specify app lib dependencies in Makefiles (patch 1/3) 2007-10-29 09:03:01 -06:00
michal a1b4285c5c Fix fragment shader. 2007-10-27 19:04:19 +01:00
michal 9c22f91030 Optimize fragment program. 2007-10-27 19:04:19 +01:00
Zou Nan hai 6ef27b88e6 Merge branch '965-glsl'
Conflicts:

	src/mesa/drivers/dri/i965/brw_sf.h
	src/mesa/drivers/dri/i965/intel_context.c
2007-10-26 15:39:50 +08:00
José Fonseca 414a933ad2 Ignore generated files. 2007-10-25 23:25:02 +01:00
Dan Nicholson 8578534f48 Ignore new programs 2007-10-25 11:34:16 -07:00
Zack Rusin 4a4e6f2cab Implement loops 2007-10-25 11:47:25 -04:00
Zack Rusin 1d26e9c447 Fix nested conditionals 2007-10-25 09:04:41 -04:00
Zack Rusin e842b5e5ba Test some functionality of vp using GLSL that pure vp isn't testing. 2007-10-25 09:04:41 -04:00
Brian 55d4f32fc2 fix assorted bugs, works now 2007-10-24 13:55:22 -06:00
Kristian Høgsberg a074857cdc glxinfo: Try creating a GLX context using an fbconfig if no visuals are available. 2007-10-18 15:19:38 -04:00
Ian Romanick b961eccc92 Support cards that have ARB_fp but not ARB_shadow. 2007-10-17 16:25:39 -07:00
Kristian Høgsberg aad5c0fdc7 pbutil: Do not require GLX_SGIX_pbuffer for fbconfig only-functions. 2007-10-17 17:04:59 -04:00
Kristian Høgsberg a5b4bb393f glxinfo: Also print number of fbconfigs. 2007-10-17 15:06:11 -04:00
Kristian Høgsberg 87966baa8d Fixup a couple of thinkos in glxinfo changes. 2007-10-17 10:15:10 -04:00
Kristian Høgsberg 791ad0e77f Implement support for printing glx fbconfigs in glxinfo. 2007-10-16 16:07:52 -04:00
Kristian Høgsberg f7d1d554b1 glxinfo: Only print visuals that actually support GLX. 2007-10-16 16:07:52 -04:00
Kristian Høgsberg c095f7e46a Do XSync() before resetting error handler. 2007-10-13 18:46:01 -04:00
Brian 72c888869f Example of cooperative rendering into one window by two processes 2007-10-11 18:25:12 -06:00
Brian f1104b079f New glxsnoop demo to display another window's z/stencil/back buffer. 2007-10-11 16:39:02 -06:00
Brian 03ff9c96bf replace 'brick' with correct program name in printfs 2007-10-10 10:56:48 -06:00
Dan Nicholson b182613f2f Ignore more generated files in progs/
Many of the directories in progs/ were missing .gitignore files or
were tracking generated files. This patch is basically the process of
running `make' in each directory and then finding the untracked files
with `git-ls-files -o --exclude-per-directory=.gitignore'. The existing
files were also sorted.
2007-10-10 08:44:58 -06:00
Brian 2727cfddbf hack in some code to test loops, break 2007-09-29 10:44:05 -06:00
Brian 9405ec6251 temporary hack to test nested conditionals 2007-09-28 21:04:56 -06:00
Dan Nicholson 2a3e33865d add support for LDFLAGS env var 2007-09-28 18:42:21 -06:00
Eric Anholt 56af8fd00f Fix progs/tests/ build with BSD make. 2007-09-24 10:26:56 -07:00
Eric Anholt b74140db66 Update .gitignore for tests and xdemos. 2007-09-24 10:26:40 -07:00
Eric Anholt 9bb0d628b8 Just use stddef.h to get ptrdiff_t instead of obsolete malloc.h. 2007-09-24 10:22:31 -07:00
Eric Anholt 45899a494c Update .gitignore for demos. 2007-09-19 10:51:07 -07:00
Brian 6fbbeed690 use perspective projection, press r/R to rotate the quad 2007-09-18 12:56:23 -06:00
Brian bb4a9b2dce added copypix.c test (test glCopyPixels w/ pixel zoom) 2007-09-14 09:59:08 -06:00
Brian 24cd84162e clean-up (see bug 12317) 2007-09-10 08:37:09 -06:00
Brian 050837045f more usage info 2007-08-30 14:44:40 -06:00
Brian f726ffd060 test flat shading w/ clipping 2007-08-30 14:43:59 -06:00
Brian 3a484cd794 added --noclear option to demonstrate rendering without glClear 2007-08-27 12:00:19 -06:00
Brian bfcc337e38 vars to test 1D/2D textures with linear/nearest filtering 2007-08-14 15:19:37 -06:00
Xiang, Haihao 5dab3bf4bc xdemo case: Wei Wang's patch for bug#9759 2007-08-14 11:39:23 +08:00
Brian 9f51e181b1 added pixelzoom cmd line opt 2007-08-13 18:20:04 -06:00
Brian b7693ee559 Draw white square in lower-left corner to test orientation 2007-08-13 14:00:03 -06:00
Brian 34d535ad2c glRead/DrawPixels test 2007-08-10 13:06:07 -06:00
Brian c7157065b2 change triangle orientation, fix exit() 2007-08-10 08:33:09 +01:00
root f71edfa41b increase texture size to 32x32 2007-08-08 12:04:08 -06:00
Brian e45b40381c parse standard -geometry option 2007-08-07 22:02:27 +01:00
Keith Whitwell 90ee7a4144 Gutsy oopses on touch of existing file. Workaround. 2007-08-07 10:18:30 +01:00
Ingo Molnar 4a8ad16ec0 glxgears: Add an x/y window size parameter. 2007-08-07 09:57:02 +02:00
Brian bf64be2268 added clear-scissor.c 2007-08-02 12:14:16 -06:00
Brian 65cc3d29a6 test glClear w/ scissor 2007-08-02 12:14:05 -06:00
Brian 261eac3c79 triangle rasterization with frag shader 2007-08-01 11:13:25 -06:00
Brian 15b7c9d5ba added trirast program 2007-08-01 11:12:51 -06:00
Brian 5c6f1f542b misc comments, clean-ups 2007-07-30 08:52:57 -06:00
Brian e5213be78e added a few more functions 2007-07-29 18:28:46 -06:00
Brian aa71b8869b Added shader points and shader bitmap demos 2007-07-29 18:04:23 -06:00
Zhang 35f35294cd more Mingw32 fixes 2007-07-27 11:19:35 -06:00
michal e0a26b0467 Merge branch 'master' of git+ssh://michal@git.freedesktop.org/git/mesa/mesa into softpipe_0_1_branch 2007-07-27 10:05:40 +02:00
Brian daaee90a26 clamp float colors 2007-07-26 08:22:47 -06:00
Brian 3af7876521 added code to test per-vertex colors 2007-07-24 12:28:01 -06:00
Brian 9110dbd9b2 simple fragment shader test 2007-07-24 10:00:29 -06:00
Brian ffc633c469 fix logic error, typos 2007-07-24 09:19:22 -06:00
Brian 5b737b7df2 Merge branch 'softpipe_0_1_branch' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa into softpipe_0_1_branch 2007-07-24 09:17:59 -06:00
Zhang 76fb808910 Fix a number of MINGW32 issues 2007-07-21 11:28:06 -06:00
Keith Whitwell 6101fe641c Merge branch 'origin' into softpipe_0_1_branch 2007-07-17 11:06:31 +01:00
Zou Nan hai c6d042acc9 Fix SOP in fragment shader, brick is ok now. 2007-07-17 16:52:03 +08:00
Zou Nan hai 3c00cdc5f3 Merge branch 'master' of git+ssh://znh@git.freedesktop.org/git/mesa/mesa into 965-glsl 2007-07-17 15:42:39 +08:00
Zou Nan hai 24e7acd5e4 bumpmap sample is correct now 2007-07-17 11:25:37 +08:00
Brian a2e471e05e press 'f' to toggle front-face winding 2007-07-13 14:25:28 -06:00
Brian 5796056e28 press 's' to toggle smoothing 2007-07-13 10:32:56 -06:00
Brian 86352ff70d Added colormask, dither, multisample state. Implement colormasking stage. 2007-07-12 12:20:14 -06:00
Brian 34f6243bef Improve this demo in a few ways.
1. Use more reasonable hither/yon clip planes to make better use of shallow
(16-bit) z buffers.
2. Use different colors on cube faces to help detect Z fighting if it occurs.
3. Report GL_DEPTH_BITS on start-up.
2007-07-11 16:20:32 -06:00
Brian 8db689350d remove glDepthFunc(GL_LEQUAL) change from prev commit 2007-07-11 13:12:33 -06:00
Brian 985e37eedb clean-up, comments 2007-07-10 14:46:15 -06:00
Brian 24b68f4184 press 'f' to toggle GL_CCW/GL_CW front face 2007-07-10 11:53:27 -06:00
Brian 9a89cc3b6b use 'c' to cycle through polygon cull modes 2007-07-10 11:39:08 -06:00
Brian 8733ee9dc9 use cursor keys to translate triangle 2007-07-10 11:33:10 -06:00
Xavier Bachelot f98bdfca57 call glutInit(), bug 11486 2007-07-06 12:56:21 -06:00
michal 3b8bc1f467 Merge branch 'master' of git+ssh://michal@git.freedesktop.org/git/mesa/mesa into softpipe_0_1_branch 2007-07-06 17:53:44 +02:00
Brian e8e5d9effe support more modes, added -f cmd line option 2007-07-04 09:23:12 -06:00
Zou Nan hai fb9ee9b323 Merge branch 'master' of git+ssh://znh@git.freedesktop.org/git/mesa/mesa into 965-glsl 2007-07-04 10:52:35 +08:00
Brian 3b10f50efb use larger point/sprite size 2007-06-28 07:16:13 -06:00
Brian 05b2297bef better triangle Z coords 2007-06-25 09:41:49 -06:00
Brian 6a3ed5eb96 Random state-change / primitive rendering. Good for hammering on a driver... 2007-06-21 18:11:29 -06:00
Zou Nan hai d19d0596da support branch and loop in pixel shader
most of the sample working with some small modification
2007-06-21 10:22:28 +08:00
Brian 3c0790ca92 triangles w/ depth test 2007-06-20 17:19:13 -06:00
Brian 03933ad656 don't request GLUT_ALPHA 2007-06-19 19:17:48 -06:00
Brian 9ec2e16223 change clear color 2007-06-18 06:57:36 -06:00
Keith Whitwell 477e18cb02 Add GLUT_ALPHA for softpipe 2007-06-14 18:25:10 +01:00
Brian 39d221ef14 fix glReadPixels parameters to handle odd-width windows correctly 2007-06-08 13:10:01 -06:00
Brian 5e9cff0b97 disable shader program before glDrawPixels 2007-06-08 13:02:14 -06:00
Ian Romanick 359c6eada7 Add support for shadow mapping with vertex and fragment programs 2007-06-07 12:12:14 -07:00
Ian Romanick 2260c245fd Refactor shadow map modelview and projection code
Explicitly store the modelview matrix and projection matrix used when the
shadow map is created.  These matrices only need be updated when
RenderShadowMap is called.  Previously, slightly different code was used to
draw and project the shadow map.
2007-06-07 12:09:44 -07:00
Ian Romanick f575d4fa7f Remove '#if defined' tests for ARB extensions. 2007-06-07 11:59:42 -07:00
Brian 0c5662acc7 use glXGetProcAddress to get extension funcs 2007-05-29 08:08:03 -06:00
Keith Whitwell 572dc0864e Modifications to run with softpipe test harness
RGB->RGBA
double buffer by default.
2007-05-24 10:38:57 +01:00
Brian b4f8d4455b set texcoords depending on GLX_Y_INVERTED_EXT 2007-05-21 20:57:09 -06:00
Brian 4465377ca3 GLX_EXT_texture_from_pixmap test 2007-05-19 08:30:31 -06:00
Ian Romanick 2f61cbd30c Add simple program to test GL_MESA_texture_array. 2007-05-16 14:46:13 -07:00
Brian 16c503f39a Tweak the shell scripting for descending into and building subdirs.
In general, use this:
	@for dir in $(SUBDIRS) ; do \
		if [ -d $$dir ] ; then \
			(cd $$dir && $(MAKE)) || exit 1; \
		fi \
	done

Basically, silently skip missing subdirs but generate an error and stop if
there's a compilation or install problem.
This was done inconsistantly before.  In once case, a missing subdir was
causing us to go into an infinte loop!
2007-05-09 16:23:11 -06:00
Brian da37ac5ee7 remove some debug code 2007-05-08 14:08:45 -06:00
Brian 58eaf0acca a somewhat nicer demo w/ command line options 2007-05-08 13:48:52 -06:00
Brian 3cddba688d get rid of normal vector 2007-05-02 18:55:45 -06:00
Brian dc881e1909 get rid of OSMESA stuff 2007-05-02 18:54:57 -06:00
Brian 2dfb03beb2 New test of the dFdx(), dFdy() functions. 2007-05-02 18:48:51 -06:00
Brian 02e958a1e4 added glGetActiveAttrib 2007-04-27 16:27:36 -06:00
Brian 1dd7c00214 Windows updates 2007-04-26 07:48:35 -06:00
Brian f42d4ab41e move #include <GL/glut.h> after other #includes for Windows 2007-04-26 07:46:59 -06:00
Brian 4a28548cbf use sqrt(), not sqrtf() for Windows 2007-04-26 07:46:38 -06:00
Ian Romanick ad3cc95485 Fix FBO completeness bug in shadowtex. 2007-04-21 10:48:24 -07:00
Brian bc74cb4c0a destroy window upon exit 2007-04-21 10:05:05 -06:00
Brian e7e5279fc0 Remove unused Imakefiles. 2007-04-20 19:18:13 -06:00
Brian badc346206 lots of changes, fixes, clean-ups 2007-04-16 17:56:13 -06:00
Brian bf287356cf restore 200x200 window size, animation, version check 2007-04-11 14:09:32 -06:00
Brian 9612a3011f fix some dependencies, remove some CFLAGS 2007-04-08 15:42:26 -06:00
Brian 0d3d930912 add 2.1 functions 2007-04-08 15:41:02 -06:00
Brian 8f3fc5221c added glActiveStencilFaceEXT 2007-04-07 08:38:36 -06:00
Brian 0420d8505a disable MakeTexture() 2007-03-27 16:06:48 -06:00
Brian d619cceea4 merge of glsl-compiler-1 branch 2007-03-26 10:13:02 -06:00
Brian 6fda763989 destroy window on exit 2007-03-25 10:25:29 -06:00
Brian 180cc2f845 disable assertion 2007-03-21 11:41:41 -06:00
Brian d2a6f43eaf extra stuff for drawbuffers test 2007-03-12 10:30:36 -06:00
Brian 3f7ef618b6 added drawbuffers.c 2007-03-11 17:30:13 -06:00
Brian ccb80d7ec4 Test the GL_ARB_draw_buffers extension.
Also requires GL_EXT_framebuffer_object and OpenGL 2.0 (for GLSL).
2007-03-11 17:03:29 -06:00
Brian 2cf5fd48d1 Merge branch 'origin' into glsl-compiler-1
Conflicts:

	src/mesa/main/context.c
2007-03-09 11:43:53 -07:00
Brian 2282d81536 destroy window during cleanup 2007-03-06 16:33:00 -07:00
Brian d592eaeb83 fix clipping, display name, warnings 2007-03-01 07:56:11 -07:00
Brian 887d3c67cb s/unsigned int/size_t/ (bug 10135) 2007-03-01 07:42:42 -07:00
Brian 03b9e16507 include assert.h 2007-03-01 07:39:27 -07:00
Brian 9f37be694e s/ARB/MESA/ in extension check (bug 10126) 2007-02-28 11:58:06 -07:00
Brian f68067e101 add texture rotation 2007-02-25 17:24:40 -07:00
Brian 21625d729c output texcoord in vertex program 2007-02-25 12:46:56 -07:00
Brian 29c471aafc Merge branch 'origin' into glsl-compiler-1
Conflicts:

	src/mesa/main/state.c
	src/mesa/shader/program.c
	src/mesa/shader/program.h
	src/mesa/shader/programopt.c
	src/mesa/shader/slang/slang_execute.c
	src/mesa/sources
	src/mesa/swrast/s_arbshader.c
	src/mesa/swrast/s_context.c
	src/mesa/swrast/s_span.c
	src/mesa/swrast/s_zoom.c
	src/mesa/tnl/t_context.c
	src/mesa/tnl/t_save_api.c
	src/mesa/tnl/t_vb_arbprogram.c
	src/mesa/tnl/t_vp_build.c
	src/mesa/tnl/t_vtx_eval.c
2007-02-22 08:53:33 -07:00
Brian 917a5086b3 Use gl_LightSource[0].position intead of a light position uniform. 2007-02-21 15:57:55 -07:00
Brian edf24e699e shading language texture demo/test 2007-02-03 11:36:16 -07:00
Brian 8e0c6fc0be added texdemo1 2007-02-03 11:33:13 -07:00
Brian a4f4ca7767 added newline at end 2007-02-02 13:54:24 -07:00
Keith Whitwell b59657ad96 Merge branch 'vbo-0.2'
Conflicts:

	src/mesa/main/texcompress_s3tc.c
	src/mesa/tnl/t_array_api.c
2007-02-02 12:26:10 +00:00
Keith Whitwell 48c638b671 New tests for the array functions which also provoke rebasing. 2007-01-30 19:19:51 +00:00
Brian f94e4f216f simple noise test 2007-01-28 19:01:04 -07:00
Brian e4e66476a9 remove debug code 2007-01-18 15:23:45 -07:00
Brian f4e345c1a8 minor fprintf() change 2007-01-17 16:30:11 -07:00
Brian 46a9241248 add texturing, other options 2007-01-17 10:25:44 -07:00
Xiang, Haihao afba8f0d30 Fix bug#9673
Cast from pointer to unsinged long and cast to pointer from
 unsinged long
2007-01-17 10:17:10 +08:00
Brian 271d504ed7 draw a box, press 'a' to animate 2007-01-16 15:27:11 -07:00