Commit Graph

224 Commits

Author SHA1 Message Date
Brian Paul 81b8aa9ecd test glBlitFramebufferEXT w/ -blit flag 2006-03-02 03:54: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 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 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
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
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
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 d545d916a8 make tiles a little smaller so they're all visible 2005-08-25 03:09:12 +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
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
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
Adam Jackson 8f8e0f0b01 Use the 1.3 names for FogCoord* 2005-05-20 00:44:37 +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
Ian Romanick 7457a648d2 If setting GL_PACK_INVERT_MESA results in a GL error, log it. 2005-03-14 22:09:31 +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
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
Keith Whitwell 5aa1a111a4 Fix a couple of glitches 2004-12-10 17:18:00 +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
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
Ian Romanick af0a4690db Add simple test program for Mesa bug #1028405. 2004-10-08 00:56:08 +00:00
Brian Paul b45aaa2328 moved to demos/ directory 2004-09-24 23:01:21 +00:00
Brian Paul 1fd4a55d09 removed hacked GL tokens, fixed a printf 2004-09-23 17:32:12 +00:00
Brian Paul 47a6749b33 minor tweaks 2004-08-10 15:34:51 +00:00
Brian Paul 625a339a8a make sure Q has a good value before drawing a sample 2004-06-28 15:16:28 +00:00
Roland Scheidegger a09db0a7fa new test which uses mixed texgen/non-texgen texture coordinates to exhibit potential bugs in hardware drivers 2004-06-25 13:49:46 +00:00
Ian Romanick fb75ca1b65 Make the test check for core GL version 1.3 in addition to testing for
GL_ARB_texture_compression.  Also make the test list the compression formats
the driver "encourages" the app to use.
2004-06-17 20:53:07 +00:00
Ian Romanick 77bbbb3759 Minor code simplification. 2004-05-26 17:12:56 +00:00
Ian Romanick 63b2e426ac Test the overhead of just calling a GL function. The Python script is
a helper to do multiple runs and compare the results.
2004-05-26 16:38:38 +00:00
Brian Paul 46bc595969 Test program to check that packed pixel formats work as expected with
glTexImage2D.  All samples should appear identical.  Press f/F to change
the internal texture format.
2004-05-12 23:05:21 +00:00
Ian Romanick 939f6a724e Added a 4th square to the output. Expanded the message written to the
console.
2004-05-11 19:59:13 +00:00
Ian Romanick 5f6691f371 Added simple EXT_blend_minmax test. 2004-05-11 19:57:58 +00:00
Ian Romanick d2f18ec6fa Added simple NV_blend_square test. 2004-05-11 17:48:33 +00:00
Brian Paul 1229100703 Added menu options to test border modes and linear/nearest filtering.
Adjust texcoords so we always have to sample the border.
Other misc changes.
2004-05-06 20:27:32 +00:00
Daniel Borca 33ffbd1c58 texture compression: getting warmer 2004-05-04 06:27:06 +00:00
Daniel Borca c35dcfcf0a FXT1 preparations 2004-04-29 09:01:41 +00:00
Brian Paul 384800fe12 assorted fixes 2004-04-23 14:14:04 +00:00
Brian Paul 66fdc3c948 added floattex.c to test floating point textures 2004-04-22 01:10:09 +00:00
Brian Paul 362f1df210 obsolete 2004-04-22 00:42:38 +00:00
Brian Paul f693b1dc2e removed non-existant arbfpwpos.c, added UTIL_FILES target 2004-04-20 23:25:47 +00:00
Brian Paul 51060afb4e hack to use glTexCoord4f and Q variable to test projective texcoords 2004-04-18 20:13:21 +00:00
Keith Whitwell 6fb235661a Use tcc and the emitted C code from s_fragprog_to_c.c to dynamically compile
and execute fragment programs.  Very limited and experimental, but works
well enough to run arbfplight.c.

	http://fabrice.bellard.free.fr/tcc/

Compile with 'make linux-tcc', being sure to make clean first.
2004-04-14 21:19:34 +00:00
Brian Paul 32aee1fcc0 added zreaddraw.c 2004-04-08 22:45:02 +00:00
Brian Paul 62d3309dc2 no depend file 2004-04-08 21:11:12 +00:00
Brian Paul 5c2040c768 minor fixes 2004-03-26 23:58:08 +00:00
Brian Paul d6de4d8b33 new Makefile 2004-03-26 20:37:19 +00:00
Brian Paul b87c5d08c7 added some code to test buffer deletion 2004-03-22 16:28:02 +00:00
Brian Paul 04da5cea31 test of aux buffer rendering 2004-03-21 17:07:30 +00:00
Brian Paul 746e59f207 GL_EXT_pixel_buffer_object test 2004-03-13 18:31:14 +00:00
Brian Paul 64d6ddabaa remove incorrect negation in fog coord computation 2004-02-16 16:44:40 +00:00
Keith Whitwell 72aeea4eea Use quads instead of lines to ensure this is testing stencil functionality
rather than rasterization.  A crutch to hw with wonky line
rasterizers.
2004-02-04 15:27:39 +00:00
Brian Paul c9e1c8098b added display list option (l key) 2004-01-31 19:57:25 +00:00
Brian Paul 27ec7a5bf1 add vparray.c, fix indentation 2004-01-31 19:15:57 +00:00
Brian Paul 919404fd1d enable program and arrays by default, minor clean-ups 2004-01-31 19:15:43 +00:00
Alan Hourihane 29b2ced167 fix printf warnings 2004-01-28 16:28:53 +00:00
Keith Whitwell 469d1b0f22 Add glutInitWindowPosition call 2004-01-28 10:07:48 +00:00
Keith Whitwell ab41a96ae7 Add tests for ARB_fp trig instructions and also for 1D texturing 2004-01-26 13:45:42 +00:00
Karl Rasche a8a4ad452e added parsing exercises for ARL and relative offsets in ARB_vp 2003-12-09 18:17:04 +00:00
Karl Rasche 93c2dacca6 A quick little test to show disapeearing specular color between vertex and fragment program execution 2003-12-08 21:43:55 +00:00
Jouk Jansen 58f88a29d2 Committing in .
OpenVMS compile issues

 Modified Files:
 	Mesa-newtree/progs/tests/cva.c
 	Mesa-newtree/progs/tests/dinoshade.c
 	Mesa-newtree/progs/tests/multipal.c
 	Mesa-newtree/src/mesa/main/descrip.mms
 	Mesa-newtree/src/mesa/tnl/descrip.mms
 	Mesa-newtree/src/mesa/tnl/t_vtx_api.c
 ----------------------------------------------------------------------
2003-12-08 09:03:35 +00:00
Karl Rasche 9b0dcfd408 s/inverse/invtrans.. whoopsie 2003-12-02 22:46:30 +00:00
Karl Rasche dda09a6154 Moving NV_fragment_program tests to ARB_fragment_program 2003-11-24 13:29:54 +00:00
Karl Rasche 15955f1c5e Porting NV_vertex_program demos to ARB_vertex_program 2003-11-23 17:48:15 +00:00
Karl Rasche 4814d79c99 Porting NV_vertex_program tests to ARB_vertex_program 2003-11-23 17:44:02 +00:00
Keith Whitwell 8525fae3b8 build fixes, rh9 2003-11-23 10:27:10 +00:00
Daniel Borca 08e6fb367e texture compression testbed 2003-11-20 17:07:31 +00:00
Brian Paul 35b52c72d0 added more debug code and tests 2003-10-21 14:56:53 +00:00
Brian Paul 4524274377 exercise more vertex buffer object functions 2003-10-14 15:49:12 +00:00
Brian Paul 1ceeac29ec s/GL_READ_WRITE_ARB/GL_WRITE_ONLY_ARB/ 2003-09-17 18:20:52 +00:00
Brian Paul de8d410a99 Exercise the GL_ELEMENT_ARRAY_BUFFER_ARB path 2003-09-17 18:15:47 +00:00
Brian Paul 6bced0148e test GL_ARB_vertex_buffer_object 2003-09-17 16:27:07 +00:00
Brian Paul 91253e7be5 more debugger development 2003-09-05 19:34:58 +00:00