Commit Graph

133 Commits

Author SHA1 Message Date
Keith Whitwell
1ca836f0de progs/trivial: add test case for short-circuiting material changes
Similar to dlist-tri-flat-tri, but using glMaterial calls, which
have the extra property of being legal within Begin/End calls.
2009-06-30 18:17:39 +01:00
Keith Whitwell
09a3a28fc8 progs/trivial: add dlist-flat-tri.c
State-change functions which precede the first call to glEnd() in
a compiled list are vulnerable to not being executed when that list
is called.

In particular this can happen if a list is invoked from within a
begin/end pair, as in this example.
2009-06-30 17:06:50 +01:00
Keith Whitwell
2e570be852 progs/trivial: add dlist-recursive-call
When one display list calls another display list, it is possible
that the calling display list makes state-changes or other actions which
invalidate any attempt at caching or state-change elimination in the
calling list.

This test exercises one such case, where the called list consists of just
a single glShadeModel() call.
2009-06-30 17:02:16 +01:00
Keith Whitwell
1730eaa2a2 dlist-tri-flat-tri: make tri render differently if flatshade not enabled
When testing flat-shading, it helps to specify per-vertex colors so
that you can distinguish between flat & smooth shading.
2009-06-30 16:57:21 +01:00
Keith Whitwell
4147bb24d4 Merge branch 'mesa_7_5_branch' into dlist-statechange-shortcircuit
Need this to pick up fixes for per-vertex materials.
2009-06-30 16:28:54 +01:00
Keith Whitwell
6af783bea0 progs/trivial: add test case for lighting plus per-vertex materials
Exercise material-within-begin/end case.
2009-06-30 16:19:23 +01:00
Keith Whitwell
53f8dccd0c progs/trivial: test case for dlist statechange elimination
Creates a display list with redundant call to glShadeModel.

View dlist contents with MESA_VERBOSE=list
2009-06-30 12:20:24 +01:00
Keith Whitwell
00e7a60077 trivial/tri-z: add controls for depthrange min/max
Also add key to set up quake-1 style ztrick rendering with clear depth
1.0, deptrange(1.0, 0.0) and depthfunc GL_GREATER.
2009-06-01 18:39:58 -07:00
Brian Paul
f5cf181c65 trivial: destroy window upon exit 2009-05-11 16:08:01 -06:00
Keith Whitwell
d56b0e6847 progs/trivial: add test for vertex program invarient transform 2009-05-08 14:57:28 +01:00
Keith Whitwell
e99729d63d progs/trivial: add vbo-noninterleaved test 2009-05-08 14:57:27 +01:00
Keith Whitwell
482be01db0 trivial: add line-flat.c 2009-05-08 14:57:26 +01:00
Keith Whitwell
e20f837f67 trivial/tri-viewport: add keys for frustrum/ortho and z coordinate 2009-04-21 11:40:59 +01:00
Keith Whitwell
6e05224bc4 trivial/tri-viewport: add more out-of-bounds background quads 2009-04-21 11:13:16 +01:00
Keith Whitwell
a38f7d9e68 trivial/tri_viewport: add space==reset key 2009-04-21 11:13:15 +01:00
Keith Whitwell
6bfcffa79e trivial/tri_viewport: add width/height keys 2009-04-21 11:13:15 +01:00
Keith Whitwell
c691f96e98 trivial/tri-viewport.c - add guide lines, more triangles, make interactive
This is becoming more like a test than a trivial/ example.
2009-04-20 16:12:11 +01:00
Jakob Bornecrantz
29a1ed599b progs: Ignores 2009-04-02 17:00:25 +02:00
Keith Whitwell
eb9801ccfb progs/trivial: add fflushes for cygwin 2009-03-24 16:35:29 +00:00
Keith Whitwell
2312f697a2 progs/trivial: draw non-interleaved arrays out of one vbo 2009-03-24 15:30:53 +00:00
Jakob Bornecrantz
3f17030d9c progs/trivial: Make quad-tex-sub repeat patterns 2009-03-18 17:27:34 +01:00
Brian Paul
4c460cfd2b tests: remove/update old comments 2009-03-18 10:24:19 -06:00
Jakob Bornecrantz
87bcb328c1 progs/trivial: Add quad-tex-sub
Tests glTexSubImage
2009-03-18 17:17:45 +01:00
Jakob Bornecrantz
ae36fadb7f progs/trivial: Add tri-fbo-tex-mip
Tests rendering to mip levels other then first
2009-03-18 11:30:34 +01:00
Jakob Bornecrantz
2f52c7f901 progs/trivial: Ignores 2009-03-16 20:15:25 +01:00
Keith Whitwell
f16da8d509 trivial: draw non-interleaved arrays 2009-03-12 17:21:50 +00:00
Keith Whitwell
225de01f83 trivial: add a logic op test 2009-03-10 12:06:27 +00:00
Keith Whitwell
48b1fe12b1 trivial: add tri-stipple to SConscript 2009-03-09 15:20:12 +00:00
Keith Whitwell
59311fb06c clear-repeat: print fps, use 300x300 window size 2009-03-04 21:37:23 +00:00
Jakob Bornecrantz
bd2f921d78 trivial: Add tri-viewport 2009-02-21 12:02:19 +01:00
Jakob Bornecrantz
b3bd315e57 trivial: Fix indentation in tri 2009-02-21 12:02:18 +01:00
Jakob Bornecrantz
4e37f10806 trival: Make the last of progs show the name 2009-02-19 22:50:18 +01:00
Jakob Bornecrantz
ec2e4e1fed trivial: Add quadstrip-clip 2009-02-14 09:42:28 +01:00
Keith Whitwell
defd52f6c7 progs/trivial: Label program windows with actual program name
Each of these programs previously called itself "First Tri" which was a
little confusing.  Could have left one as "First Tri", but the trouble
then is that people would still clone that file & we'd end up with
another thousand first tri apps...
2009-02-18 18:22:23 +00:00
Jakob Bornecrantz
b6779056a1 trivial: Make tri-fog a bit more interesting to look at 2009-02-13 23:03:57 +01:00
Jakob Bornecrantz
b57031624e trivial: Add a tri-unfilled-fog test 2009-02-13 21:18:41 +01:00
José Fonseca
9aa73cfae8 progs: Get more samples building on windows. 2009-02-01 12:00:17 +00:00
José Fonseca
483c730de8 progs: Ignore more output executables. 2009-01-23 14:37:35 +00:00
José Fonseca
479ea7d87b progs/trivial: Use glew where needed.
Builds on windows now.
2009-01-23 14:35:36 +00:00
Keith Whitwell
b5db6b039c Merge commit 'origin/gallium-0.2' into gallium-xlib-rework 2009-01-19 10:15:04 +00:00
Keith Whitwell
2d155f91d2 trivial: clear with random color 2009-01-14 20:33:06 +00:00
José Fonseca
eb1f01a9d9 progs: List tri-clear. 2009-01-14 11:40:31 +00:00
José Fonseca
9136c9b29e Merge commit 'origin/gallium-0.1' into gallium-0.2
Conflicts:

	src/gallium/auxiliary/util/Makefile
2008-12-22 19:31:52 +00:00
José Fonseca
229424b2d7 Ignore new tests executables. 2008-12-21 13:48:43 +00:00
José Fonseca
500b304463 scons: Build progs.
Just demos and trivial dirs for starters.

Conflicts:

	.gitignore
2008-12-12 12:37:21 +09:00
Brian Paul
0c31661e73 Merge commit 'origin/gallium-0.1' into gallium-0.2 2008-12-10 18:11:31 -07:00
Keith Whitwell
e1645313be mesa: more trivial tests 2008-12-10 12:53:17 +00:00
Younes Manton
25eee19cd6 mesa: Update some .gitignore files. 2008-12-02 16:15:13 -05:00
José Fonseca
72ebf4fd03 scons: Build progs.
Just demos and trivial dirs for starters.
2008-11-21 10:44:30 +09:00
Keith Whitwell
5e1454a036 Merge commit 'origin/gallium-0.1' into gallium-0.2
Conflicts:

	src/mesa/drivers/dri/common/dri_util.c
2008-11-15 16:23:31 +00:00