Commit Graph

952 Commits

Author SHA1 Message Date
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 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 cf94941122 Set Min/MaxLod with glTexParameterf, not glTexParameteri 2008-02-12 15:54:15 -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 bd299093ec push out far clip plane to 200 2008-01-28 12:42:37 -07:00
Brian ba083bae69 Added d/D keys to change viewing distance, 'a' to toggle animation 2008-01-28 12:37:35 -07:00
José Fonseca e122a8fa18 gallium: Ignore generated files. 2008-01-17 12:05:37 +09: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
Zack Rusin 55c1894d0a Add the new test program for fp's. 2007-12-17 13:23:47 -05: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
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
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
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
José Fonseca 414a933ad2 Ignore generated files. 2007-10-25 23:25:02 +01: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 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
Brian 6fbbeed690 use perspective projection, press r/R to rotate the quad 2007-09-18 12:56:23 -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 bfcc337e38 vars to test 1D/2D textures with linear/nearest filtering 2007-08-14 15:19:37 -06: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
Keith Whitwell 90ee7a4144 Gutsy oopses on touch of existing file. Workaround. 2007-08-07 10:18:30 +01: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
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
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
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
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