mesa.git
23 years agoRemove formats that no longer exist.
Gareth Hughes [Thu, 22 Mar 2001 06:26:18 +0000 (06:26 +0000)]
Remove formats that no longer exist.

23 years agoMinor updates.
Gareth Hughes [Thu, 22 Mar 2001 06:25:23 +0000 (06:25 +0000)]
Minor updates.

23 years agoFix texture format enum values (Brian Paul).
Gareth Hughes [Thu, 22 Mar 2001 06:23:56 +0000 (06:23 +0000)]
Fix texture format enum values (Brian Paul).

23 years agoadded GL_ARB_texture_env_dot3 enums
Brian Paul [Thu, 22 Mar 2001 04:57:09 +0000 (04:57 +0000)]
added GL_ARB_texture_env_dot3 enums

23 years agominor comment update
Brian Paul [Thu, 22 Mar 2001 04:56:50 +0000 (04:56 +0000)]
minor comment update

23 years agoadded GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3
Brian Paul [Thu, 22 Mar 2001 04:54:58 +0000 (04:54 +0000)]
added GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3

23 years agoclean-up in _swrast_choose_triangle()
Brian Paul [Thu, 22 Mar 2001 04:54:08 +0000 (04:54 +0000)]
clean-up in _swrast_choose_triangle()

23 years agoAdd PolygonOffset driver callback.
Gareth Hughes [Thu, 22 Mar 2001 00:36:27 +0000 (00:36 +0000)]
Add PolygonOffset driver callback.

23 years agoadded teximage rescaling code. untested at this point
Brian Paul [Wed, 21 Mar 2001 18:23:39 +0000 (18:23 +0000)]
added teximage rescaling code.  untested at this point

23 years ago* src/swrast_setup/ss_tritmp.h (quad): Changed name of this function to
pesco [Wed, 21 Mar 2001 17:11:32 +0000 (17:11 +0000)]
* src/swrast_setup/ss_tritmp.h (quad): Changed name of this function to
quadfunc.
* common_rules.make: Use tabs for command indentation.

23 years agominor updates for 3.5
Brian Paul [Wed, 21 Mar 2001 16:47:33 +0000 (16:47 +0000)]
minor updates for 3.5

23 years agouse new texture conversion code, still have to do image rescaling
Brian Paul [Wed, 21 Mar 2001 16:47:19 +0000 (16:47 +0000)]
use new texture conversion code, still have to do image rescaling

23 years agorenamed some vars, added a bunch of comments
Brian Paul [Wed, 21 Mar 2001 16:44:08 +0000 (16:44 +0000)]
renamed some vars, added a bunch of comments

23 years agominor re-org in sample_depth_texture()
Brian Paul [Wed, 21 Mar 2001 16:04:49 +0000 (16:04 +0000)]
minor re-org in sample_depth_texture()

23 years agosync'd with the latest changes in XFree86 (cygwin stuff)
Brian Paul [Wed, 21 Mar 2001 16:00:17 +0000 (16:00 +0000)]
sync'd with the latest changes in XFree86 (cygwin stuff)

23 years agoFix compilation with GLU 1.1
Gareth Hughes [Wed, 21 Mar 2001 02:47:32 +0000 (02:47 +0000)]
Fix compilation with GLU 1.1

23 years agoMake ESC quit.
Gareth Hughes [Wed, 21 Mar 2001 02:44:36 +0000 (02:44 +0000)]
Make ESC quit.

23 years agoRevert back to new tessellator, check version string to be sure we're
Gareth Hughes [Wed, 21 Mar 2001 02:43:14 +0000 (02:43 +0000)]
Revert back to new tessellator, check version string to be sure we're
running with a valid GLU library.

23 years agodepth images were broken by latest teximage changes, this fixes the problem
Brian Paul [Wed, 21 Mar 2001 01:08:37 +0000 (01:08 +0000)]
depth images were broken by latest teximage changes, this fixes the problem

23 years agoMake COPY_FLOAT available to a wider audience.
Gareth Hughes [Tue, 20 Mar 2001 18:35:23 +0000 (18:35 +0000)]
Make COPY_FLOAT available to a wider audience.

23 years agoMore updates. Radeon tnl module still disabled by default.
Gareth Hughes [Tue, 20 Mar 2001 18:33:41 +0000 (18:33 +0000)]
More updates.  Radeon tnl module still disabled by default.

23 years agofixes to make old GLU code compile with new GLU 1.3 header
Brian Paul [Tue, 20 Mar 2001 17:56:10 +0000 (17:56 +0000)]
fixes to make old GLU code compile with new GLU 1.3 header

23 years ago Committing in .
Jouk Jansen [Tue, 20 Mar 2001 10:18:13 +0000 (10:18 +0000)]
 Committing in .

 Modified Files:
  Mesa/src/descrip.mms Mesa/src/texutil_tmp.h

 -Updated VMS makefile
 -__FUNCTION__ is not a defined on VMS (and maybe other systems) For VMS
  __FUNCTION__ is defined to  in texutil_tmp.h

----------------------------------------------------------------------

23 years ago* common_rules.make: Created to hold the conditional build rule
pesco [Tue, 20 Mar 2001 00:33:18 +0000 (00:33 +0000)]
* common_rules.make: Created to hold the conditional build rule
override. All Makefile.am's updated.

23 years agofix for gl_ztrick bug (Ove Kaaven)
Brian Paul [Mon, 19 Mar 2001 22:45:52 +0000 (22:45 +0000)]
fix for gl_ztrick bug (Ove Kaaven)

23 years ago* si-glu/libnurbs/: Undid move of glimports.h, mystdio.h, mystdlib.h.
pesco [Mon, 19 Mar 2001 17:52:02 +0000 (17:52 +0000)]
* si-glu/libnurbs/: Undid move of glimports.h, mystdio.h, mystdlib.h.

23 years agofix glxinfo to query current display.
Alan Hourihane [Mon, 19 Mar 2001 13:58:45 +0000 (13:58 +0000)]
fix glxinfo to query current display.

23 years agofix cast
Alan Hourihane [Mon, 19 Mar 2001 13:27:15 +0000 (13:27 +0000)]
fix cast

23 years agoNew files
Keith Whitwell [Mon, 19 Mar 2001 02:28:59 +0000 (02:28 +0000)]
New files

23 years agoSplit driver struct into swrast/tnl/core components.
Keith Whitwell [Mon, 19 Mar 2001 02:25:35 +0000 (02:25 +0000)]
Split driver struct into swrast/tnl/core components.

23 years ago* gen_srclists.sh: Use getopt to parse the command line. Added command
pesco [Sun, 18 Mar 2001 15:40:45 +0000 (15:40 +0000)]
* gen_srclists.sh: Use getopt to parse the command line. Added command
line option -n (dry run) and -h. Directory list can be specified on the
command line.
Added command line options -p and -l. Some other tweaks.

* si-glu/libnurbs/glimports.h, si-glu/libnurbs/mystdio.h,
si-glu/libnurbs/mystdlib.h: Pulled these out of
si-glu/libnurbs/interface and si-glu/libnurbs/internals. All include
paths updated.

23 years agoAdd missing header file include.
Gareth Hughes [Sun, 18 Mar 2001 14:06:25 +0000 (14:06 +0000)]
Add missing header file include.

23 years agoRemove #endif.
Gareth Hughes [Sun, 18 Mar 2001 14:05:32 +0000 (14:05 +0000)]
Remove #endif.

23 years agoMake assertions take new GLchan formats into account.
Gareth Hughes [Sun, 18 Mar 2001 13:40:58 +0000 (13:40 +0000)]
Make assertions take new GLchan formats into account.

23 years agoFix error message.
Gareth Hughes [Sun, 18 Mar 2001 13:37:18 +0000 (13:37 +0000)]
Fix error message.

23 years agoFix header info.
Gareth Hughes [Sun, 18 Mar 2001 13:34:24 +0000 (13:34 +0000)]
Fix header info.

23 years agoRemove old code, fix a few comments.
Gareth Hughes [Sun, 18 Mar 2001 13:31:52 +0000 (13:31 +0000)]
Remove old code, fix a few comments.

23 years agoForgot to add newly created files.
pesco [Sun, 18 Mar 2001 13:06:19 +0000 (13:06 +0000)]
Forgot to add newly created files.

23 years ago- Port 3.4 texture utils, texture format work to 3.5 (including new
Gareth Hughes [Sun, 18 Mar 2001 08:53:49 +0000 (08:53 +0000)]
- Port 3.4 texture utils, texture format work to 3.5 (including new
  FetchTexel routines).
- Initial hooks for GL_EXT_texture_filter_anisotropic.

23 years agoFix lineloops.
Keith Whitwell [Sun, 18 Mar 2001 00:46:04 +0000 (00:46 +0000)]
Fix lineloops.

23 years agoFix cut&paste bug exposed by clipbug.c demo.
Keith Whitwell [Sat, 17 Mar 2001 18:04:54 +0000 (18:04 +0000)]
Fix cut&paste bug exposed by clipbug.c demo.

23 years agoRemove dead #define.
Keith Whitwell [Sat, 17 Mar 2001 17:43:04 +0000 (17:43 +0000)]
Remove dead #define.
Add case for triangles culled front and back -- not handled by the
culling code inside swrast triangle routines.

23 years agoRevert earlier changes protecting against null VB->TexCoordPtr[x]. Do
Keith Whitwell [Sat, 17 Mar 2001 17:31:42 +0000 (17:31 +0000)]
Revert earlier changes protecting against null VB->TexCoordPtr[x].  Do
this a better way via check_tex_sizes().

23 years agoadded SI GLU info
Brian Paul [Sat, 17 Mar 2001 00:47:19 +0000 (00:47 +0000)]
added SI GLU info

23 years agoupdated for SGI SI GLU
Brian Paul [Sat, 17 Mar 2001 00:45:01 +0000 (00:45 +0000)]
updated for SGI SI GLU

23 years agoSGI SI GLU 1.3 header
Brian Paul [Sat, 17 Mar 2001 00:29:47 +0000 (00:29 +0000)]
SGI SI GLU 1.3 header

23 years agoadded CCFLAGS and CPLUSPLUS definitions
Brian Paul [Sat, 17 Mar 2001 00:27:04 +0000 (00:27 +0000)]
added CCFLAGS and CPLUSPLUS definitions

23 years agoSGI SI GLU library
Brian Paul [Sat, 17 Mar 2001 00:25:40 +0000 (00:25 +0000)]
SGI SI GLU library

23 years agoremoved ARB_texture_env_add bool flag, use EXT_texture_env_add flag
Brian Paul [Thu, 15 Mar 2001 18:21:01 +0000 (18:21 +0000)]
removed ARB_texture_env_add bool flag, use EXT_texture_env_add flag

23 years agouse IROUND() instead of (int) cast (Klaus Niederkrueger)
Brian Paul [Thu, 15 Mar 2001 16:45:30 +0000 (16:45 +0000)]
use IROUND() instead of (int) cast (Klaus Niederkrueger)

23 years agoFix typo.
Gareth Hughes [Wed, 14 Mar 2001 08:51:09 +0000 (08:51 +0000)]
Fix typo.

23 years agoInitial templates for immediate mode fastpaths, or custom tnl modules.
Gareth Hughes [Tue, 13 Mar 2001 17:39:56 +0000 (17:39 +0000)]
Initial templates for immediate mode fastpaths, or custom tnl modules.
Completely untested and incomplete.  More to follow.

23 years agoNope, -ansi spoils that...
Gareth Hughes [Mon, 12 Mar 2001 02:24:53 +0000 (02:24 +0000)]
Nope, -ansi spoils that...

23 years agoUndo -D_POSIX_SOURCE change, fix the way the katmai support test is
Gareth Hughes [Mon, 12 Mar 2001 02:13:39 +0000 (02:13 +0000)]
Undo -D_POSIX_SOURCE change, fix the way the katmai support test is
done.

23 years ago- Add -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L to linux builds, we've
Gareth Hughes [Mon, 12 Mar 2001 02:02:36 +0000 (02:02 +0000)]
- Add -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L to linux builds, we've
  been using it with the DRI for long enough without any issues and we
  need it to include the katmai functions.
- Make katmai assembly work with the debug tests.
- A few general cleanups.

23 years agoAdd missing header file.
Gareth Hughes [Mon, 12 Mar 2001 01:32:20 +0000 (01:32 +0000)]
Add missing header file.

23 years agoAdd missing header file include.
Gareth Hughes [Mon, 12 Mar 2001 01:06:44 +0000 (01:06 +0000)]
Add missing header file include.

23 years agoConsistent copyright info (version number, date) across all files.
Gareth Hughes [Mon, 12 Mar 2001 00:48:37 +0000 (00:48 +0000)]
Consistent copyright info (version number, date) across all files.

23 years agoMinor cleanups.
Gareth Hughes [Sun, 11 Mar 2001 23:55:19 +0000 (23:55 +0000)]
Minor cleanups.

23 years agoClean up install, restore for exec vtxfmts.
Gareth Hughes [Sun, 11 Mar 2001 23:49:20 +0000 (23:49 +0000)]
Clean up install, restore for exec vtxfmts.

23 years agoSupport for swappable tnl modules.
Gareth Hughes [Sun, 11 Mar 2001 18:49:11 +0000 (18:49 +0000)]
Support for swappable tnl modules.

Core Mesa provides a neutral tnl module that verifies the currently
module before installing the tnl function pointers in a lazy fashion.
It also records which tnl functions have been swapped out, and only
restores these when tnl modules themselves are swapped.

Fallback strategies:

Drivers set a bitmask of dangerous stage changes.  When such a state
change occurs, the driver should restore the neutral tnl module via
_mesa_restore_exec_vtxfmt().  The neutral tnl module will call
_mesa_update_state(), followed by ctx->Driver.ValidateTnlModule() if the
validation bitmask matches the new state bitmask.  The driver should
call _tnl_wakeup_exec() if it can no longer handle the current state,
which will revert to the default tnl module.  In this case, previous
vertices should be replayed as required (depending on the current
primitive) after the new tnl module is installed.

If the driver uses chooser functions for any part of the tnl module,
these should generally be reinstalled as part of the fallback to the
neutral tnl module.  For example, if the lighting state changes, a
driver might fall back to the neutral tnl module, verify that the
current lighting state can be handled, and use the chooser function to
pick the most efficient implementation of the current lighting state.

It is up to the drivers to detect and handle fallback cases caused by
tnl function calls themselves (such as glTexCoord4f* if the current tnl
module can't handle projected textures, for example).

23 years agoAdd a couple of missing functions.
Gareth Hughes [Sat, 10 Mar 2001 02:50:42 +0000 (02:50 +0000)]
Add a couple of missing functions.

23 years agoMore generic vtxfmt template, useful for creating neutral tnl module as
Gareth Hughes [Fri, 9 Mar 2001 16:08:13 +0000 (16:08 +0000)]
More generic vtxfmt template, useful for creating neutral tnl module as
well as fallback functions for driver tnl modules.

23 years agofixed RBGA ifdef typo
Brian Paul [Thu, 8 Mar 2001 22:27:41 +0000 (22:27 +0000)]
fixed RBGA ifdef typo

23 years agodo fog interpolation if INTERP_FOG is defined, not when INTERP_Z is defined
Brian Paul [Thu, 8 Mar 2001 17:33:33 +0000 (17:33 +0000)]
do fog interpolation if INTERP_FOG is defined, not when INTERP_Z is defined

23 years agoprocessed by indent to improve readability
Brian Paul [Thu, 8 Mar 2001 17:17:28 +0000 (17:17 +0000)]
processed by indent to improve readability

23 years agochanged bincoeff var to GLfloat, fixes bug introduced in previous check-in
Brian Paul [Thu, 8 Mar 2001 17:15:01 +0000 (17:15 +0000)]
changed bincoeff var to GLfloat, fixes bug introduced in previous check-in

23 years agotest 16-bit/channel rendering
Brian Paul [Thu, 8 Mar 2001 15:24:18 +0000 (15:24 +0000)]
test 16-bit/channel rendering

23 years agoMore g++ warning fixes. Fixes for CHAN_BITS==16, it seems to work.
Brian Paul [Thu, 8 Mar 2001 15:23:46 +0000 (15:23 +0000)]
More g++ warning fixes.  Fixes for CHAN_BITS==16, it seems to work.

23 years agoadded an assertion in the init code, just to be safe
Brian Paul [Wed, 7 Mar 2001 23:22:08 +0000 (23:22 +0000)]
added an assertion in the init code, just to be safe

23 years agoMisc build fixes
Jon Taylor [Wed, 7 Mar 2001 20:42:14 +0000 (20:42 +0000)]
Misc build fixes

23 years agoAdd missing copy in _mesa_noop_Color4fv().
Gareth Hughes [Wed, 7 Mar 2001 18:16:40 +0000 (18:16 +0000)]
Add missing copy in _mesa_noop_Color4fv().

23 years agofixed a bunch of g++ warnings/errors. Compiling with g++ can help find lots of poten...
Brian Paul [Wed, 7 Mar 2001 05:06:11 +0000 (05:06 +0000)]
fixed a bunch of g++ warnings/errors.  Compiling with g++ can help find lots of potential problems

23 years ago_MinMagThresh[] should be GLfloat
Brian Paul [Wed, 7 Mar 2001 04:50:49 +0000 (04:50 +0000)]
_MinMagThresh[] should be GLfloat

23 years agoadded some casts in the 16-bit GLchan macros, just to be safe
Brian Paul [Wed, 7 Mar 2001 03:20:38 +0000 (03:20 +0000)]
added some casts in the 16-bit GLchan macros, just to be safe

23 years agoadded Driver.BlendColor() function, for completeness
Brian Paul [Wed, 7 Mar 2001 00:21:32 +0000 (00:21 +0000)]
added Driver.BlendColor() function, for completeness

23 years agofixed segfaults when tex unit 1 enabled, but not unit 0 (conform)
Brian Paul [Mon, 5 Mar 2001 22:40:10 +0000 (22:40 +0000)]
fixed segfaults when tex unit 1 enabled, but not unit 0 (conform)

23 years agoadded missing ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH() macros
Brian Paul [Mon, 5 Mar 2001 22:18:23 +0000 (22:18 +0000)]
added missing ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH() macros

23 years agoDO_POINT renamed DO_POINTS
Keith Whitwell [Mon, 5 Mar 2001 19:54:03 +0000 (19:54 +0000)]
DO_POINT renamed DO_POINTS

23 years agoChanges for ffb
Keith Whitwell [Mon, 5 Mar 2001 18:52:18 +0000 (18:52 +0000)]
Changes for ffb

23 years agoFix typo
Keith Whitwell [Mon, 5 Mar 2001 18:04:38 +0000 (18:04 +0000)]
Fix typo

23 years agoGL_EXT_secondary_color test
Brian Paul [Mon, 5 Mar 2001 17:50:35 +0000 (17:50 +0000)]
GL_EXT_secondary_color test

23 years agoGL_EXT_fog_coord test
Brian Paul [Mon, 5 Mar 2001 17:31:57 +0000 (17:31 +0000)]
GL_EXT_fog_coord test

23 years agoAdd missing cases for viewport transform. Remove INVALIDATE_STORED_VERTICS
Keith Whitwell [Mon, 5 Mar 2001 16:41:47 +0000 (16:41 +0000)]
Add missing cases for viewport transform.  Remove INVALIDATE_STORED_VERTICS
macro

23 years agoreplaced gl_test_os_katmai*() with _mesa_test_os_katmai*()
Brian Paul [Mon, 5 Mar 2001 15:57:59 +0000 (15:57 +0000)]
replaced gl_test_os_katmai*() with _mesa_test_os_katmai*()

23 years agomore clean-ups
Brian Paul [Sat, 3 Mar 2001 21:11:32 +0000 (21:11 +0000)]
more clean-ups

23 years agoused indent to clean-up the code
Brian Paul [Sat, 3 Mar 2001 20:59:06 +0000 (20:59 +0000)]
used indent to clean-up the code

23 years agomore namespace clean-ups
Brian Paul [Sat, 3 Mar 2001 20:56:59 +0000 (20:56 +0000)]
more namespace clean-ups

23 years agolots of gl_*() to _mesa_*() namespace clean-up
Brian Paul [Sat, 3 Mar 2001 20:33:27 +0000 (20:33 +0000)]
lots of gl_*() to _mesa_*() namespace clean-up

23 years agooptimized lambda calculation (Klaus Niederkrueger)
Brian Paul [Sat, 3 Mar 2001 00:37:27 +0000 (00:37 +0000)]
optimized lambda calculation (Klaus Niederkrueger)

23 years agochanged AlphaFunc() ref from GLclampf to GLchan
Brian Paul [Sat, 3 Mar 2001 00:12:47 +0000 (00:12 +0000)]
changed AlphaFunc() ref from GLclampf to GLchan

23 years agofixed _mesa_getenv() weirdness
Brian Paul [Fri, 2 Mar 2001 16:01:22 +0000 (16:01 +0000)]
fixed _mesa_getenv() weirdness

23 years agofixed mistake in alpha buffer clear test
Brian Paul [Thu, 1 Mar 2001 18:30:47 +0000 (18:30 +0000)]
fixed mistake in alpha buffer clear test

23 years agoUncomment some defaults.
Keith Whitwell [Thu, 1 Mar 2001 18:18:05 +0000 (18:18 +0000)]
Uncomment some defaults.

23 years agoBugfixes for vertex format, templates
Keith Whitwell [Thu, 1 Mar 2001 17:40:14 +0000 (17:40 +0000)]
Bugfixes for vertex format, templates

23 years agoadded s/w alpha buffer clearing
Brian Paul [Thu, 1 Mar 2001 00:05:05 +0000 (00:05 +0000)]
added s/w alpha buffer clearing

23 years agoremoved some bogus error checks
Brian Paul [Wed, 28 Feb 2001 19:31:39 +0000 (19:31 +0000)]
removed some bogus error checks

23 years agoNow there's four possible display modes:
Brian Paul [Wed, 28 Feb 2001 18:41:50 +0000 (18:41 +0000)]
Now there's four possible display modes:
1. normal, shadowed rendering
2. display depth texture image
3. display depth texture mapped onto scene
4. render grayscale scene where gray level = distance from light source

23 years agoTemplates are in working order.
Keith Whitwell [Wed, 28 Feb 2001 18:19:27 +0000 (18:19 +0000)]
Templates are in working order.

23 years agoGLvisual inside GLframebuffer is no longer a pointer, copy the struct instead.
Brian Paul [Wed, 28 Feb 2001 00:27:48 +0000 (00:27 +0000)]
GLvisual inside GLframebuffer is no longer a pointer, copy the struct instead.
Added context/drawbuffer visual config sanity checking in _mesa_make_current2().
Added some 'const' keywords.