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
Eric Anholt
227af94cce
Add a couple of test apps for line/unfilled polygon clipping.
2008-03-27 11:57:08 -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
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
2d38d1b300
Remove files of unsupported build systems.
2008-02-25 17:11:28 +09:00
Brian
52e4c8d702
Test calling glTexSubImage2D mid-way through a frame.
2008-02-20 11:58:33 -07: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
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
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
Eric Anholt
745df749cc
Include glext.h in the cva test so that it actually uses CVAs.
2008-02-04 18:24:16 -08: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
Roland Scheidegger
46c405663b
add simple test for two-sided stencil functionality
2007-12-11 15:38:34 +01:00
Brian
df198d24bc
added culling/wireframe options
2007-12-04 14:07:08 -07:00
Brian
ccb1c9df00
Print point/line size range limits
2007-11-22 09:34:38 -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
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
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
Brian
6a3ed5eb96
Random state-change / primitive rendering. Good for hammering on a driver...
2007-06-21 18:11:29 -06: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
2f61cbd30c
Add simple program to test GL_MESA_texture_array.
2007-05-16 14:46:13 -07: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
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
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
Michel Dänzer
78a6e05439
mipmap_limits: Fix display of current texture filtering mode.
2006-12-14 11:01:38 +01:00
Michel Dänzer
14f92636b0
Make git ignore files only generated at build time.
2006-12-06 14:17:56 +01:00
Roland Scheidegger
22b74ff2b7
fix the gl version test
2006-11-22 19:37:21 +00:00
Brian Paul
036173e0d8
test OpenGL 2.0 stencil funcs
2006-11-02 15:47:30 +00:00
Keith Whitwell
54d3ab4878
npot version of redbook/mipmap.c
2006-09-15 10:41:54 +00:00
Brian Paul
c6f8176b3f
make prog2 a legal program (texture reference fix)
2006-08-30 23:40:53 +00:00
Brian Paul
0c46a12365
delete buffers, destroy window upon exit
2006-08-25 22:13:08 +00:00
Ian Romanick
5208d93a41
Add test for GL_EXT_gpu_program_parameters.
2006-08-15 16:44:32 +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
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
1ec9b5a5a9
fix extension_supported() function, added comments
2006-05-31 20:36:52 +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
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
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
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
6494541eaa
lots of debug options, some code movement, etc
2006-03-24 23:17:06 +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
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