Commit Graph

952 Commits

Author SHA1 Message Date
Brian Paul c6f8176b3f make prog2 a legal program (texture reference fix) 2006-08-30 23:40:53 +00:00
Roland Scheidegger af1dc7e487 move initialization code aroudn so glPointParameter isn't called before checking the extension is present 2006-08-28 21:19:34 +00:00
Brian Paul a394f546a4 check for GL_ARB_point_parameters 2006-08-28 14:20:19 +00:00
Brian Paul 0c46a12365 delete buffers, destroy window upon exit 2006-08-25 22:13:08 +00:00
Keith Whitwell 39f222a421 add point-position.c 2006-08-24 17:49:37 +00:00
Keith Whitwell 28536e6c4f Test for fragment.position in points primitives. Currently renders
incorrectly on software mesa.
2006-08-24 17:48:53 +00:00
Ian Romanick 5208d93a41 Add test for GL_EXT_gpu_program_parameters. 2006-08-15 16:44:32 +00:00
Michal Krol edefc658e4 More GLSL code - more support for vec4 operations on x86 back-end. 2006-08-09 20:05:26 +00:00
Michal Krol 1616f5b621 Change fragment shader to utilize faster vec4 operations. 2006-08-02 14:46:50 +00:00
Michal Krol 7a70391575 Add test for vec4 extension. 2006-08-02 14:45:24 +00:00
Brian Paul cc738e004f casts and assertions 2006-08-01 20:03:29 +00:00
Brian Paul f05e7eba95 code to draw engine block 2006-08-01 20:03:05 +00:00
Michal Krol c26999fd2c Fix dependencies. 2006-07-30 14:33:53 +00:00
Michal Krol 39dd5196e6 Optimize shaders.
Use frame counter.
2006-07-29 09:42:03 +00:00
Brian Paul 883f9891cb LIB_DIR is now just 'lib' or 'lib64'
Replaced $(LIB_DIR) with $(TOP)/$(LIB_DIR), use LIB_DIR in install targets.
Patch by Hanno Böck.
2006-07-13 02:50:27 +00:00
Brian Paul 59cfd3cd3f destroy window upon exit, remove CVS log comment 2006-07-12 02:34:43 +00:00
Brian Paul d8bb5ea967 call glutDestroyWindow() to allow checking for mem leaks upon exit 2006-07-12 02:32:21 +00:00
Brian Paul 04f43226a8 fixup OSMESA_LIBS and make clean target 2006-07-07 14:32:02 +00:00
Brian Paul 8c140c9c37 remove GLUT dependency 2006-07-07 14:31:28 +00:00
Brian Paul 3ae1905744 remove dependency on GLUT 2006-07-07 14:12:04 +00:00
Brian Paul 1ff8daf21e New animated engine demo. 2006-07-04 21:43:21 +00:00
Brian Paul 66c9be06f9 remove occlude.c demo since GL_HP_occlusion_test no longer available 2006-06-30 15:57:05 +00:00
Brian Paul 4e0617849c use trackball code for mouse rotation 2006-06-26 23:00:15 +00:00
Brian Paul 9671548424 virtual trackball code 2006-06-26 22:59:28 +00:00
Brian Paul 0e794a1bc6 New 'install' targets in makefile. See bug 2372. 2006-06-22 22:50:48 +00:00
Keith Whitwell b4517527eb A bunch of tiny tests that I've found helpful bringing up drivers from
scratch.  These exercise single pieces of functionality and provide a
gentler ramp than trying to use the mesa demos to bring up drivers with.
2006-06-22 16:32:19 +00:00
Keith Whitwell 5fb9f80e37 exercise min/max lod 2006-06-21 14:04:04 +00:00
Keith Whitwell 942b5b7bc0 exercise position invarient vertex program 2006-06-21 14:03:39 +00:00
Michel Dänzer 73e73ffdd5 Fix command line parsing. 2006-06-13 08:37:03 +00:00
Brian Paul 18d0efb555 removed incorrect const qualifier 2006-06-13 01:14:48 +00:00
Ian Romanick ee34e6ef71 Add support for GL_APPLE_vertex_array_object. Several test programs
and demos are also added.

Adding basic support to drivers should be as easy as just enabling the
extension, though thorough test would also be required.
2006-06-12 16:26:29 +00:00
Brian Paul 65ced47453 Thomas Sondergaard's API tracer 2006-06-02 14:50:28 +00:00
Brian Paul 1ec9b5a5a9 fix extension_supported() function, added comments 2006-05-31 20:36:52 +00:00
Claudio Ciccani fe94d0b335 Added some example progs using DirectFBGL. 2006-05-31 17:05:11 +00:00
Michal Krol 23b7c7dc14 Make it running under Linux. 2006-05-30 09:38:16 +00:00
Brian Paul 4e470db0b9 print 2D vs 3D in window 2006-05-19 16:48:42 +00:00
Brian Paul 5ec34f0ff9 also test 3D textures (press '2'/'3' to toggle) 2006-05-19 16:42:01 +00:00
Brian Paul fd02ca7711 Demonstrate rendering 8, 16 and 32-bit/channel images all in one program.
Like older osdemo.c program, but test more OpenGL features like texturing,
blending, lines.
2006-05-19 03:43:39 +00:00
Brian Paul 4c6319db9c call reshape() after init() to set initial projection/viewing transform (see bug 6941) 2006-05-17 22:44:18 +00:00
Tilman Sauerbeck 601c02f783 bug 6941: fixed initial rendering problems in glxgears 2006-05-16 16:27:54 +00:00
Michal Krol 32c2f939e6 GLSL regression test suite. 2006-05-16 09:32:30 +00:00
Brian Paul 2ca741ad4b added a few extension #ifdef tests 2006-05-15 15:35:38 +00:00
Brian Paul c8ea111166 usage() function 2006-05-15 15:14:37 +00:00
Brian Paul ad7805dfee Expanded output with -l option: vertex/fragment program and vertex/fragment
shader limits.
Misc sync-ups with x.org copy of glxinfo.
2006-05-13 00:18:12 +00:00
Brian Paul fa489dd043 simplify image setup code, added LOD Bias control (l/L keys) 2006-05-11 01:15:48 +00:00
Brian Paul aecd02b391 simple texture compression test 2006-05-10 22:47:06 +00:00
Brian Paul 932c2fc291 new test image - Delicate Arch, Utah 2006-05-10 22:44:26 +00:00
Brian Paul bb2dd388d0 Test program for exercising GL_TEXTURE_BASE_LEVEL and GL_TEXTURE_MAX_LEVEL. 2006-05-10 22:37:56 +00:00
Tilman Sauerbeck 9ecd280f33 fptest1 requires GL_NV_fragment_program 2006-04-28 21:50:41 +00:00
Michal Krol 6acf1e93a2 Remove carriage returns. 2006-04-25 10:11:59 +00:00
Brian Paul 9cd1cc0535 fprintf() clean-up (bug 6730) 2006-04-24 16:32:05 +00:00
Brian Paul a95dd106e3 fix indentation 2006-04-21 01:02:49 +00:00
Brian Paul fb87976ef6 use vertex.attrib[3] instead of vertex.color 2006-04-21 01:02:27 +00:00
Brian Paul 8743d00571 s/NV/ARB/ 2006-04-21 01:01:58 +00:00
Brian Paul 28bc3cdfba another simple FBO test 2006-04-14 16:25:27 +00:00
Brian Paul 3adee0829b test glReadPixels speed w/ various formats/types, PBOs 2006-04-14 16:20:55 +00:00
Brian Paul 1d886a81ad If the image file is RGB, convert to RGBA (fixes segfault).
Added CheckError() calls.
Remove -ci option.
2006-04-13 19:45:42 +00:00
Brian Paul ecc0d10d2d Use -I$(INCDIR) to get Mesa, not system headers (Dan Schikore) 2006-04-13 01:54:04 +00:00
Brian Paul c4a4864210 compile fix from Dan Schikore 2006-04-13 01:49:45 +00:00
Brian Paul 68ad7ca3ba allow rotation w/ mouse 2006-04-11 23:41:40 +00:00
Brian Paul e099ce85ca re-enable animation 2006-04-06 04:34:09 +00:00
Brian Paul 762c3618f5 Added render to depth texture support with GL_EXT_framebuffer_object.
Only render the shadow/depth texture when really needed, not every frame.
Remove support for old SGIX shadow extensions.
2006-04-06 04:11:28 +00:00
Brian Paul 1979b6b2de set the texture border color for the depth texture 2006-04-05 03:26:12 +00:00
Brian Paul ec83f38e2e fix bad call to FindLine() 2006-03-30 14:26:29 +00:00
Brian Paul 197d725601 added -f option for full-screeen 2006-03-30 14:25:54 +00:00
Brian Paul 693a66aea9 press '0' for glDrawBuffer(GL_NONE) 2006-03-30 14:24:58 +00:00
Brian Paul 62c325af3f fix GETPROCADDRESS usage, remove carriage return chars (bug 6430) 2006-03-29 23:20:49 +00:00
Brian Paul 32244ac7e9 s/glslnose.c/glslnoise/ (bug 6430) 2006-03-29 23:18:13 +00:00
Karl Schultz b7a5a9db88 Windows makefile to easily build all demo programs. 2006-03-29 04:02:44 +00:00
Karl Schultz b687531f69 Undef a conflicting symbol in Windows. 2006-03-29 03:42:32 +00:00
Karl Schultz 54b65e080e add showbuffer.[ch] which could be in this dir after the targets are built. 2006-03-29 03:41:38 +00:00
Karl Schultz 4f21180416 Remove unneeded includes of time.h 2006-03-29 02:09:47 +00:00
Brian Paul 6494541eaa lots of debug options, some code movement, etc 2006-03-24 23:17:06 +00:00
Brian Paul c4f2710f9d Added -l option for explicit locking around Xlib and GLX calls in
threaded code.  Seems to improve reliability quite a bit.
2006-03-23 17:17:23 +00:00
Brian Paul 436d72e994 Added -p option to create a display connection per thread.
This seems more stabile than using one display connection for all threads.
Still get an occasional Xlib: unexpected async reply error, unfortunately.
2006-03-23 16:58:22 +00:00
Brian Paul 30655c211c updated some printfs, added comment about sched_yield 2006-03-15 20:30:17 +00:00
Brian Paul 10f08cc202 use 'p' key to toggle use of GL_EXT_packed_depth_stencil 2006-03-15 01:44:03 +00:00
Ian Romanick 448d23331d Display the correct bug number in the information text. 2006-03-06 16:42:12 +00:00
Ian Romanick 66df1731e6 Don't try to bind to proxy texture target. This is defined by the spec to be
an error.  Since we're working with a proxy target, don't bother using real
texture data.

Add a missing new-line in an error printf.
2006-03-06 16:31:50 +00:00
Ian Romanick 5820f7998a Build test for bugzilla #3050 2006-03-04 04:46:10 +00:00
Ian Romanick 780d270312 Test case for bugzilla #3050. 2006-03-04 04:44:47 +00:00
Brian Paul 81b8aa9ecd test glBlitFramebufferEXT w/ -blit flag 2006-03-02 03:54:14 +00:00
Michal Krol cc1591667d More GLSL code:
- uniforms (only GetLocation, Uniform1f and Uniform4fv for now for demos);
- fix bugs and optimize array size handling;
- 2D texture sampling (needs Enable(TEXTURE_2D) to work);
- decrease built-in library assembly size by 30%.
2006-02-21 12:35:06 +00:00
Michal Krol 3654193a4d More GLSL code.
- general constructors allowed;
- implement noise functions (from Stefan Gustavson - thanks!)
- cosmetic stuff.
2006-02-18 15:11:18 +00:00
Michal Krol 3699751b0b Demonstrate GLSL fragment and vertex shaders. 2006-02-15 10:58:52 +00:00
Brian Paul 111281f1fc s/malloc/calloc/, fix mem leak 2006-01-31 03:00:14 +00:00
Brian Paul 4b4cc650e1 updated comment 2006-01-30 17:13:19 +00:00
Brian Paul 781c54a5b8 silence warning about duplicate M_PI definition 2006-01-30 17:12:10 +00:00
Brian Paul 6a36407a00 added more tests (Pedro Maia) 2006-01-30 17:11:47 +00:00
Brian Paul 7905b19ec9 use fmod() when incrementing CubeRot 2006-01-30 15:35:35 +00:00
Brian Paul daf3093f28 Test glCopyTexSubImage2D by drawing gears as texture on sides of a box. 2006-01-28 00:30:07 +00:00
Brian Paul 0b3c2a9a24 Don't do swapbuffers if -nodraw specified. Get t0 after setup code. 2006-01-27 15:44:40 +00:00
Brian Paul 77667266a7 Test glTexSubImage and glCopyTexSubImage rate.
Run with -nodraw to skip rendering of test quad to get "pure" sub-tex rate.
2006-01-26 17:35:31 +00:00
Brian Paul 32a6468014 copypixrate.c - measure the speed of glCopyPixels. 2006-01-26 16:37:47 +00:00
Brian Paul 74235b1cf1 remove the GL_HP_occlusion_test code 2006-01-26 01:27:17 +00:00
Brian Paul 361bccb4ec Free visinfo object (Tilman Sauerbeck) 2006-01-16 16:17:18 +00:00
Adam Jackson 93d0935ef7 Fix the default target to remake readtex.o if needed 2006-01-13 16:34:00 +00:00
Keith Whitwell eda59aa87e Oops - bad file-completion typo. 2006-01-05 11:01:18 +00:00
Keith Whitwell ca188de098 add simple test for program local parameters 2006-01-05 10:57:57 +00:00
Dave Airlie 1b6a081885 update to new API 2005-12-23 08:42:29 +00:00
Brian Paul 1add059bd1 Removed the GL_SGIX/SGIS_pixel_texture extensions. Same thing can be
done with fragment programs nowadays.
2005-12-14 03:04:58 +00:00
Brian Paul 790ab0a0b6 s/eglShowSurfaceMESA/eglShowScreenSurfaceMESA/ 2005-12-10 17:59:36 +00:00
Brian Paul 21b2784ff5 'a' key to toggle animation 2005-12-08 17:49:50 +00:00
Brian Paul 023c95481b check/print EGL_SCREEN_BIT_MESA, fix eglGetDisplay() call 2005-11-23 01:45:25 +00:00
Brian Paul 957b517c4f Choose the display mode / surface size in an intelligent way.
Fix // comments.
More error checking, etc.
2005-11-23 01:44:38 +00:00
Brian Paul 1ad3b7e28b call gluDeleteQuadric() to fix mem leak 2005-11-19 23:09:14 +00:00
Brian Paul f81c78f87d delete frame/renderbuffers upon exit, more error checking 2005-11-17 02:08:10 +00:00
Brian Paul 32fe233d54 added -ds option to test GL_EXT_packed_depth_stencil with framebuffer objects 2005-11-16 14:48:11 +00:00
Ian Romanick 5ef524cd01 Two subtle things missed on the previous commit. 2005-11-15 01:55:46 +00:00
Ian Romanick a163256cc2 Add the ability for interleave to test passing invalid format enums
and invalid stride values (see bugzilla #5058).
2005-11-15 01:46:49 +00:00
Ian Romanick e5700a1ba3 Simple test of glInterleavedArrays functionality. 2005-11-14 23:31:05 +00:00
Keith Whitwell e4894177ba More useful ARL test 2005-11-02 12:58:38 +00:00
Keith Whitwell a9b927cb6e add an arl test 2005-11-01 20:29:59 +00:00
Keith Whitwell da70bc6baa Make colors match the fp tests (really) 2005-11-01 12:22:48 +00:00
Keith Whitwell a605d9c3de Make colors match the fp tests 2005-11-01 12:20:13 +00:00
Keith Whitwell d9f362a667 standalone tests for vp instructions 2005-11-01 06:28:39 +00:00
Ian Romanick d7d41ceeb0 Add new test "texfilt". This test is a cousin to texwrap. Instead of
testing various texture wrap modes, this test examines various texture
filter modes, including anisotropic.

Add CFLAGS to a couple places in Makefile so that 32-bit builds on
64-bit archs will work correctly.
2005-10-28 18:41:03 +00:00
Eric Anholt 9eaed1178d Add built programs to .cvsignore. 2005-10-26 09:53:38 +00:00
Eric Anholt 896735e412 Add a fog mode (normal and fog_coord, leaner/exp/exp2 mode) testing program I
wrote for sis, which has also exposed a few bugs elsewhere.
2005-10-26 09:48:03 +00:00
Keith Whitwell e516654dec new depth tests 2005-10-21 18:34:22 +00:00
Keith Whitwell f28cbb6a7f simplify, remove sgi messages 2005-10-21 18:33:53 +00:00
Keith Whitwell 3a09ea919c better looking tests 2005-10-21 10:27:37 +00:00
Keith Whitwell 2ea6b800c0 Make test visible 2005-10-21 10:07:52 +00:00
Keith Whitwell 8975cbb36b Better looking test. 2005-10-21 08:34:06 +00:00
Keith Whitwell a90909e892 A bunch of little tests which exercise each ARB_fp instruction plus
a couple of other interesting cases.
2005-10-20 21:40:23 +00:00
Brian Paul cf085db28a Query/print GL_RED/GREEN/BLUE/ALPHA_BITS 2005-10-08 14:42:51 +00:00
Brian Paul 7edf1e80bd glBindTexture changes, new assertions 2005-10-04 15:16:27 +00:00
Brian Paul 9e920fb93c fix glIsRender/FramebufferEXT() assertions 2005-10-04 15:01:51 +00:00
Brian Paul d0529b67f4 use fmod() to prevent overflow of angle variable 2005-09-30 15:03:33 +00:00
Brian Paul 1ad6e08090 call glFinish if drawing to front buffer 2005-09-29 18:46:27 +00:00
Jouk Jansen d997b90433 Committing in .
1) change compilation on VMS to use IEEE floating points

 2) one more problem with _mesa_sprintf solved

 Modified Files:
 	Mesa/docs/README.VMS Mesa/progs/demos/descrip.mms
 	Mesa/progs/tests/descrip.mms Mesa/progs/util/descrip.mms
 	Mesa/progs/xdemos/descrip.mms Mesa/src/glu/mesa/descrip.mms
 	Mesa/src/glu/sgi/descrip.mms Mesa/src/glut/glx/descrip.mms
 	Mesa/src/mesa/array_cache/descrip.mms
 	Mesa/src/mesa/drivers/common/descrip.mms
 	Mesa/src/mesa/drivers/osmesa/descrip.mms
 	Mesa/src/mesa/drivers/x11/descrip.mms
 	Mesa/src/mesa/glapi/descrip.mms Mesa/src/mesa/main/descrip.mms
 	Mesa/src/mesa/main/texobj.c Mesa/src/mesa/math/descrip.mms
 	Mesa/src/mesa/shader/descrip.mms
 	Mesa/src/mesa/shader/grammar/descrip.mms
 	Mesa/src/mesa/shader/slang/descrip.mms
 	Mesa/src/mesa/swrast/descrip.mms
 	Mesa/src/mesa/swrast_setup/descrip.mms
 	Mesa/src/mesa/tnl/descrip.mms
 ----------------------------------------------------------------------
2005-09-23 07:03:53 +00:00
Brian Paul e64874ac2d silence warning 2005-09-15 01:58:39 +00:00
Roland Scheidegger 0ca6715ba5 new demo to test ATI_fragment_shader, not very creative but easy to know if the output is correct. Tests single-pass as well as multi-pass shader (only pseudo-dependant texture read though, and no tex coord swizzling), src and dst modifiers, src repetition, dst masks, constants, and some ops. Both shaders run succesfully with swrast as well as r200. 2005-09-10 01:02:25 +00:00
Brian Paul d5783737f1 use 'f' key to toggle front/back buffer rendering 2005-08-31 16:42:59 +00:00
Brian Paul 59d680db22 Demo of how to do (nearly) flicker-free rendering with a single color buffer. 2005-08-25 23:25:25 +00:00
Brian Paul 713635adef fix comment and #if test 2005-08-25 22:09:43 +00:00
Brian Paul 8e247d52e3 Update the glut idle function after a new window is created 2005-08-25 17:46:04 +00:00
Brian Paul 7e6553c1aa s/GLX_RGBA_BIT/GLX_RGBA_TYPE/ (bug 4237) 2005-08-25 13:18:53 +00:00
Brian Paul d545d916a8 make tiles a little smaller so they're all visible 2005-08-25 03:09:12 +00:00
Brian Paul 5d7c486d90 Added multi-window support. Press 'n' to create new window, 'k' to kill
a window.  Good for exercising multi-window rendering.
2005-08-24 21:32:02 +00:00
Dave Airlie 298af7a609 fix up libdrm for egl 2005-08-21 03:17:52 +00:00
Ian Romanick b462855c24 Add simple regression test for bugzilla #3195. 2005-08-18 19:52:44 +00:00
Brian Paul c2c2600728 test the standard stencil op modes too (Philipp Klaus Krause) 2005-08-15 22:57:30 +00:00
Brian Paul e78a3c42e4 delete display lists upon exit 2005-08-09 15:14:51 +00:00
Brian Paul a1a6fa2fa1 free display lists and destroy window upon exit 2005-08-09 15:13:32 +00:00
Ian Romanick aba4864a25 Make the linux-dri-x86 builds work on x86-64 again. mklib now
determines the bits (either 32 or 64) for libraries without the lib
prefix.  progs/egl/Makefile passes CFLAGS on the link commands so that
things like '-m32' get propagated.
2005-08-08 23:22:46 +00:00
Jon Smirl 9a4dbf1cff Fix up some of the sample to work with the r200 EGL driver 2005-08-07 02:15:27 +00:00
Brian Paul 2d47c07398 overlay planes test 2005-07-19 15:27:03 +00:00
Brian Paul badad72383 eglgears demo (Dane Rushton) 2005-07-14 23:16:41 +00:00
Ian Romanick 38e2fa385d Put back the glPopMatrix. This test was derived from blendminmax.c.
When extra code was cut from blendminmax.c's Display function, the
glPopMatrix call was also accidentally cut.
2005-07-07 20:43:01 +00:00
Ian Romanick 2550844c6e Correct the comments in the file headers. Oops. 2005-07-07 19:35:30 +00:00
Ian Romanick 259f096ed8 Add regression test for bug #3101. 2005-07-07 19:34:06 +00:00
Ian Romanick 4f178c6e3a Add $(CFLAGS) to the link commands. This makes 'make linux-x86
ARCH_FLAGS=-m32' work correctly on x86-64 systems.
2005-07-02 07:12:44 +00:00
Brian Paul 58a9573b08 added some glGetRenderbufferParameterivEXT calls, printfs, and assertions 2005-07-01 01:34:29 +00:00
Ian Romanick 4e1aae6e0e Ignore files generated as part of the build process. 2005-06-24 18:54:57 +00:00
Ian Romanick 66a5548fbb Mammoth update to the Python code generator scripts that live in
src/mesa/glapi.  Basically, the scripts that did simple things (like
gl_offsets.py) were simple, and the scripts that did more complicated things
(like glX_proto_send.py) were getting progressively more and more out of
control.  So, I re-write the foundation classes on which everything is based.

One problem with the existing code is that the division between the GL API
database representation and the way the output code is generated was either
blury or nonexistant.  The new code somewhat follows the
Model-View-Controller pattern, minus the Controller.  There is a distinct
set of classes that model the API data, and there is a distinct set of
classes that generate code from that data.

One big change is in the class that represents GL functions (was glFunction,
is now gl_function).  There used to be an instance of this calls for each
function and for each alias to that function.  For example, there was an
instance for PointParameterivSGIS, PointParameterivEXT, PointParameterivARB,
and PointParameteriv.  In the new code, there is one instance.  Each
instance has a list of entrypoint names for the function. In the next
revision, this will allow a couple useful things.  The script will be able
to verify that the parameters, return type, and GLX protocol for a function
and all it's aliases match.

It will also allow aliases to be represented in the XML more compactly.
Instead of repeating all the information, an alias can be listed as:

     <function name="PointParameterivARB" alias="PointParameterivEXT"/>

Because the data representation was changed, the order that the alias
functions are processed by the scripts also changed.  This accounts for at
least 2,700 of the ~3,600 lines of diffs in the generated code.

Most of the remaining ~900 lines of diffs are the result of bugs *fixed* by
the new scripts.  The old scripts also generated code with some bugs in it.
These bugs were discovered while the new code was being written.

These changes were discussed on the mesa3d-dev mailing list back at the end
of May:

http://marc.theaimsgroup.com/?t=111714569000004&r=1&w=2

Xorg bug: 3197, 3208
2005-06-21 23:42:43 +00:00
Jon Smirl 6c2098ffd4 Fix a few compiler warnings 2005-06-16 04:25:45 +00:00
Keith Whitwell 502504de23 Add a mode to test flat shading + separate specular. 2005-06-01 07:02:23 +00:00
Daniel Borca 731f1b12a0 remove stupid flags 2005-05-23 22:02:53 +00:00
Brian Paul e3e8067db7 use MAX_SCREENS instead of hard-coded number 2005-05-20 14:11:11 +00:00
Brian Paul 8f384f0b67 fix reversed strstr() args, print mode string 2005-05-20 14:03:35 +00:00
Brian Paul e58d32947e replace // with /* */ 2005-05-20 14:02:02 +00:00
Jouk Jansen 063efce6ee Committing in .
Update openVMS compile support

 Modified Files:
 	Mesa/progs/demos/descrip.mms
 	Mesa/src/mesa/shader/slang/descrip.mms
 	Mesa/src/mesa/tnl/descrip.mms
 ----------------------------------------------------------------------
2005-05-20 11:43:54 +00:00
Adam Jackson 8f8e0f0b01 Use the 1.3 names for FogCoord* 2005-05-20 00:44:37 +00:00
Keith Whitwell 67cc1f6ba6 move osmesa demos to their own directory 2005-05-19 15:39:37 +00:00
Jon Smirl c70dace694 Fix EGL fbdev palette problem. demo3 can save ppm of screen 2005-05-19 15:03:31 +00:00
Jon Smirl 9a1b5af333 Fix inverted y for egl fbdev, add egl demo3 2005-05-18 20:44:23 +00:00
Brian Paul 8818eae253 To better exercise pixel packing, replace regular glReadPixels with four
ReadPixels that get the image piece by piece.
2005-05-18 15:44:13 +00:00
Jon Smirl 9a3da7ea7b Implement fbdev swapbuffers() 2005-05-18 01:44:11 +00:00
Jon Smirl d06da50888 Fix several internal problems with generating the list of configs. 2005-05-17 00:59:13 +00:00
Jon Smirl aecc05627a Add forgotten demo2.c
VS: ----------------------------------------------------------------------
2005-05-14 03:51:18 +00:00
Jon Smirl 7012d01d88 First attempt at getting egl support up on dumb framebuffer.
Seems to be mostly working. Not all of egl API is implemented.
2005-05-13 18:31:35 +00:00
Brian Paul 6f3d16c64a assorted warning clean-ups for x86_64, etc (Mikko T.) 2005-05-07 17:06:49 +00:00
Brian Paul e4b2356c07 Major check-in of changes for GL_EXT_framebuffer_object extension.
Main driver impacts:
- new code for creating the Mesa GLframebuffer
- new span/pixel read/write code
Some drivers not yet updated/tested.
2005-05-04 20:11:35 +00:00
Brian Paul 3aeae20685 updates for latest EGLScreenMESA changes 2005-05-04 03:32:39 +00:00
Keith Whitwell 2c19069182 new file 2005-04-29 15:36:38 +00:00
Brian Paul 69441868f6 no need to enable fog or set fog mode with fragment program 2005-04-26 20:58:27 +00:00
Brian Paul fc06f9fb25 demo / test progs 2005-04-22 21:17:14 +00:00
Brian Paul c61782958b added wrappers/helpers for creating/destroying rendering contexts 2005-04-06 22:41:46 +00:00
Brian Paul c3984fc015 changed implementation of GetAllFBConfigs() 2005-04-06 22:40:39 +00:00
Ian Romanick 29c909f81c Make glxgears_fbconfig compile and respect the DISPLAY setting. Add it
to the Makefile as well.
2005-04-05 20:43:06 +00:00
Brian Paul c39a4bc83c s/Togle/Toggle/ 2005-04-04 20:06:40 +00:00
Keith Whitwell 46d50d9e8e Add more formats to test. 2005-03-22 13:32:35 +00:00
Ian Romanick 7457a648d2 If setting GL_PACK_INVERT_MESA results in a GL error, log it. 2005-03-14 22:09:31 +00:00
Dave Airlie 8ca515097f use girl2.rgb by default 2005-02-26 04:56:25 +00:00
Dave Airlie c68233cb35 Add glXAllocateMemoryMESA demo app using ycbcr...
add girl2.rgb which is a slightly resized girl.rgb so client texturing works
2005-02-26 04:51:47 +00:00
Ian Romanick 4ea4589302 Simple test for GL_MESA_pack_invert. 2005-02-14 17:07:29 +00:00
Ian Romanick 816c0c932d Simple test for ARB_texture_env_crossbar functionality. It is difficult
to come up with good tests for this functionality that don't require
either ATI_texture_env_combine3 or NV_texture_env_combine4.
2005-02-09 22:16:38 +00:00
Daniel Borca fc4cabbfa8 makefile update (readtex, showbuffer) 2005-01-31 13:23:55 +00:00
Brian Paul 98a9ad9241 added osmesa16 stuff 2005-01-29 13:48:43 +00:00
Brian Paul 371f576731 assorted fixes 2005-01-29 13:48:27 +00:00
Brian Paul c84cde7b0b added missing glFinish() 2005-01-29 12:57:36 +00:00
Brian Paul 5c6b391900 reenable some assertions 2005-01-24 15:41:08 +00:00
Brian Paul 31fb7648fc added texobjshare.c 2005-01-19 14:52:13 +00:00
Brian Paul 4f6d9aaa9a test program for texture sharing, deleting, etc 2005-01-19 14:51:41 +00:00
Daniel Borca 9ebce91a66 glVertex* is the provoking "cmd" (that is, by the time of glVertex*, we must have all other attributes already set).
i am committing this before i forget.  however, i'm still leaving my code disabled, because the old code seems legal.
2005-01-19 07:52:49 +00:00
Brian Paul 730fabd67a fix some weirdness accidentally checked in in the past 2005-01-17 16:14:46 +00:00
Daniel Borca 6a432a7c50 since we've already messed up this one, let we do it further and make it look like a fire... 2005-01-17 07:48:53 +00:00
Daniel Borca a6ddd2494a remove trailing slash from TOP definition 2005-01-17 07:47:41 +00:00
Keith Whitwell f9b89910d1 new test to exercise context and window create/delete 2005-01-12 19:11:47 +00:00
Brian Paul 0275d921ac VMS updates from Jouk Jansen 2005-01-11 15:23:08 +00:00
Brian Paul 14e98b7d7c remove a debug line 2005-01-10 23:16:49 +00:00
Brian Paul ff53a4ee13 tweak output formattting, fixed uninitialized var error 2005-01-10 23:15:59 +00:00
Brian Paul 527af7571e minor readtex fixes 2005-01-09 18:05:02 +00:00
Brian Paul 612bf1fa2e improved animation rate 2005-01-09 18:00:49 +00:00
Brian Paul 7a663b315e rotate at fixed rate, changed fire effect (Marcelo Magallon) 2005-01-09 17:52:48 +00:00
Brian Paul a00c591511 rotate at fixed rate (Marcelo Magallon) 2005-01-09 17:50:27 +00:00
Brian Paul a4a31c5d76 use #ifdef to test for extension 2005-01-09 17:39:36 +00:00
Brian Paul 2d84ed83c4 include readtex.h 2005-01-09 17:39:06 +00:00
Brian Paul 92eddb0fd4 better animate rate (Marcelo Magallon) 2005-01-09 17:37:50 +00:00
Brian Paul 516f9bc6e3 some new/improved rules 2005-01-09 17:26:08 +00:00
Brian Paul 575d24a5ff include readtex.h instead of readtex.c 2005-01-09 17:15:41 +00:00
Brian Paul 0fe7f406be include readtex.h instead of readtex.c (Marcello Magallon) 2005-01-09 17:06:22 +00:00
Brian Paul b58091a336 Add #ifdefs for extension testing (Marcello Magallon) 2005-01-09 17:00:57 +00:00
Brian Paul 429efa9f00 animation rate patch (Marcello Magallon) 2005-01-09 16:52:53 +00:00
Brian Paul 1b058a06c2 rotate at a reasonable rate 2005-01-09 16:48:52 +00:00
Brian Paul c1065ee977 compute reasonable animate rate (Marcelo Magallon) 2005-01-08 23:52:01 +00:00
Brian Paul 0261042beb fix-up rules for sphere demo, which uses readtex utility 2005-01-08 23:51:50 +00:00
Brian Paul ba5ceda7e0 added GetAllFBConfigs() 2005-01-07 01:17:42 +00:00
Brian Paul 71fc6a3fc9 New GetAllFBConfigs() function. Some FBConfigs weren't reported before. 2005-01-06 23:59:37 +00:00
Keith Whitwell a61ee65910 Redraw on keypress, as apparently intended. 2005-01-06 17:12:56 +00:00
Brian Paul f72e4424d9 Use the GLX 1.3 pbuffer/fbconfig functions in preference to the SGIX ones.
Added more functions to pbutil.[ch] to better isolate API differences.
2005-01-04 00:58:29 +00:00
Keith Whitwell 16db15718d Add a -fullscreen option 2004-12-20 14:48:19 +00:00
Daniel Borca 3f1205819a updated makefiles for gcc 3.4.3 and bnu 2.15 2004-12-15 08:00:43 +00:00
Brian Paul 244adeb639 s/DP3/DP3_SAT/ to prevent negative values 2004-12-15 00:54:17 +00:00
Brian Paul 8402149766 removed unused visInfo var 2004-12-12 22:24:09 +00:00
Keith Whitwell 5aa1a111a4 Fix a couple of glitches 2004-12-10 17:18:00 +00:00
Keith Whitwell fc23672327 Improve the behaviour of the build system wrt depend files.
- Remove the -Y option for makedepend, so that the standard
	  directories are searched
	- No longer pipe the multiple errors that the -Y option caused
	  into /dev/null -- we want to know about these failures.
	- Fix up a few other misc makedepend failures.
2004-12-08 15:16:36 +00:00
Keith Whitwell e5aa3dd29b Demonstrate using a color matrix for yuv-to-rgb conversion at texture
upload time.
2004-12-08 14:56:40 +00:00
Ian Romanick 596ccff699 Prevent possible divide-by-zero error. 2004-12-01 20:20:13 +00:00
Keith Whitwell 4f144b6087 EXT_422_pixels test 2004-11-30 19:15:06 +00:00
Brian Paul 0699b0bb17 silence warnings 2004-11-27 19:57:46 +00:00
Brian Paul 4fe34f340c (GLint*) casts in glGetIntegerv calls 2004-11-26 13:43:17 +00:00
Brian Paul b271ce8eda allow specifying image file on command line 2004-11-10 23:16:22 +00:00
Ian Romanick cb7f212f93 Add EXT_stencil_wrap test that doesn't depend on stencil read-back
functioning.
2004-11-04 22:32:41 +00:00
Brian Paul c6136ea62c unbind GL_PIXEL_UNPACK_BUFFER_EXT before calling glBitmap! 2004-10-31 15:27:12 +00:00
Brian Paul 9ae96a5ce8 remove debug code 2004-10-29 19:31:52 +00:00
Brian Paul 7520e25995 Updated getprocaddress test to use gl_API.xml instead of old APIspec file. 2004-10-29 19:12:08 +00:00
Brian Paul 2083131643 added stereo option (Jacek Rosik) 2004-10-26 14:36:32 +00:00
Brian Paul 07553c58fd wrap angle value (Philipp Klaus Krause) 2004-10-23 18:55:48 +00:00
Brian Paul e57b6d5a4f addes osdemo32 target (J.P. Delport) 2004-10-23 16:58:32 +00:00
Ian Romanick 33899b7c35 Add support for OES_read_format. As soon as glext.h is updated with the
enums for this extension, the changes to gl.h can be removed.
2004-10-16 01:16:54 +00:00
Ian Romanick af0a4690db Add simple test program for Mesa bug #1028405. 2004-10-08 00:56:08 +00:00
Karl Schultz 4c2fbb0538 Add the glut project to the demos workspace. 2004-10-01 20:55:23 +00:00
Brian Paul b45aaa2328 moved to demos/ directory 2004-09-24 23:01:21 +00:00
Brian Paul 7d01c3480d moved in from the tests/ directory to include in distro 2004-09-24 23:00:52 +00:00
Brian Paul 1fd4a55d09 removed hacked GL tokens, fixed a printf 2004-09-23 17:32:12 +00:00
Brian Paul a511b70f44 silence warnings 2004-09-16 19:40:22 +00:00
Brian Paul 37c0497d98 silence warnings, re-indent code 2004-09-16 19:39:04 +00:00
Brian Paul 6fedd4e3bf clean-up the hokey transformation code so that window resizes actually work 2004-09-16 19:32:49 +00:00