mesa.git
23 years agoadded missing 'break' in _mesa_TexEnvfv(), better error messages
Brian Paul [Mon, 16 Apr 2001 21:06:54 +0000 (21:06 +0000)]
added missing 'break' in _mesa_TexEnvfv(), better error messages

23 years agoadded a work-around in _swrast_copy_texsubimage[123]d() to fix alpha channel problem...
Brian Paul [Fri, 13 Apr 2001 00:13:51 +0000 (00:13 +0000)]
added a work-around in _swrast_copy_texsubimage[123]d() to fix alpha channel problem in some DRI drivers (see comments)

23 years agob-key toggles between textures w/ and w/out border
Brian Paul [Thu, 12 Apr 2001 20:50:26 +0000 (20:50 +0000)]
b-key toggles between textures w/ and w/out border

23 years agoMoved FRAC macro out of mmath.h into s_texture.c since it's only used there
Brian Paul [Thu, 12 Apr 2001 15:18:07 +0000 (15:18 +0000)]
Moved FRAC macro out of mmath.h into s_texture.c since it's only used there
and doesn't do what one might expect for negative values.
Reimplemented FRAC in terms of floor() to fix glitches seen in tests/texwrap.c.
Minor fix for problem with GL_CLAMP_TO_BORDER_ARB with GL_NEAREST sampling.

23 years agoReimplemented glPopAttrib code for GL_TEXTURE_BIT. It now calls the
Brian Paul [Wed, 11 Apr 2001 23:22:20 +0000 (23:22 +0000)]
Reimplemented glPopAttrib code for GL_TEXTURE_BIT. It now calls the
various texture API functions to restore state.  Before, the device
drivers weren't getting notified of important texture state changes.

23 years agofixed some divide by zero conformance problems
Brian Paul [Tue, 10 Apr 2001 15:46:51 +0000 (15:46 +0000)]
fixed some divide by zero conformance problems

23 years agoAdded IROUND_POS() macro to mmath.h and use where appropriate. (Klaus Niederkrueger)
Brian Paul [Tue, 10 Apr 2001 15:25:45 +0000 (15:25 +0000)]
Added IROUND_POS() macro to mmath.h and use where appropriate. (Klaus Niederkrueger)

23 years agoremove a HAVE_ELTS that I'd stuck before.
Alan Hourihane [Mon, 9 Apr 2001 15:41:11 +0000 (15:41 +0000)]
remove a HAVE_ELTS that I'd stuck before.

23 years agoPerform fixup on material values
Keith Whitwell [Mon, 9 Apr 2001 14:47:34 +0000 (14:47 +0000)]
Perform fixup on material values

23 years agofix use of projected vertices with notex vertices when DO_PTEX isn't set.
Alan Hourihane [Mon, 9 Apr 2001 10:16:01 +0000 (10:16 +0000)]
fix use of projected vertices with notex vertices when DO_PTEX isn't set.

23 years agoAdd quad and quad_strip
Alan Hourihane [Sat, 7 Apr 2001 16:16:58 +0000 (16:16 +0000)]
Add quad and quad_strip

23 years agoadd FINISH function at end of each render_* function
Alan Hourihane [Fri, 6 Apr 2001 16:26:41 +0000 (16:26 +0000)]
add FINISH function at end of each render_* function
fix typo.

23 years agoreplaced IntFormat GL_BGRA with GL_RGBA, fixes problems calling _mesa_base_texture_fo...
Brian Paul [Wed, 4 Apr 2001 23:56:33 +0000 (23:56 +0000)]
replaced IntFormat GL_BGRA with GL_RGBA, fixes problems calling _mesa_base_texture_format()

23 years agoGL_INTENSITY case was incorrect in extract_float_rgba()
Brian Paul [Wed, 4 Apr 2001 23:22:38 +0000 (23:22 +0000)]
GL_INTENSITY case was incorrect in extract_float_rgba()

23 years agofixed tmpTexelSize computation bug
Brian Paul [Wed, 4 Apr 2001 22:41:23 +0000 (22:41 +0000)]
fixed tmpTexelSize computation bug

23 years agoMore texture image changes.
Brian Paul [Wed, 4 Apr 2001 21:54:20 +0000 (21:54 +0000)]
More texture image changes.
1. Added ctx->Driver.ChooseTextureFormat() function.  Examines user's
   internalFormat, format, type params and returns a gl_texture_format.
2. _mesa_store_teximage[123]d() calls ctx->Driver.ChooseTextureFormat(),
   allocates storage and transfers the image into the desired format.
3. _mesa_transfer_teximage() now takes a gl_texture_format to describe
   the destination format.  Any combination of input format/type and
   output gl_texture_format is accepted.  Uses optimized _mesa_convert_-
   texsubimage[123]d() functions when possible.
3. DRI driver's TexImage[123]D functions should be a lot simpler now.

23 years agoUpdated bug report info in _mesa_problem()
Brian Paul [Wed, 4 Apr 2001 13:38:51 +0000 (13:38 +0000)]
Updated bug report info in _mesa_problem()

23 years ago Committing in .
Jouk Jansen [Wed, 4 Apr 2001 12:02:12 +0000 (12:02 +0000)]
 Committing in .

 Modified Files:
  Mesa/src/descrip.mms

 Removed glapinoop

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

23 years agoanother fix to clear_32bit_ximage()
Brian Paul [Tue, 3 Apr 2001 17:35:54 +0000 (17:35 +0000)]
another fix to clear_32bit_ximage()

23 years agoinclude fxdrv.h before other headers (Ivan Kalvatchev)
Brian Paul [Tue, 3 Apr 2001 16:32:29 +0000 (16:32 +0000)]
include fxdrv.h before other headers (Ivan Kalvatchev)

23 years agofixed wglUseFontBitmapsA() bugs (Frank Warmerdam)
Brian Paul [Tue, 3 Apr 2001 16:25:54 +0000 (16:25 +0000)]
fixed wglUseFontBitmapsA() bugs (Frank Warmerdam)

23 years agoclear pixel value wasn't byteswapped for scissored clears in clear_32bit_ximage()
Brian Paul [Tue, 3 Apr 2001 16:19:54 +0000 (16:19 +0000)]
clear pixel value wasn't byteswapped for scissored clears in clear_32bit_ximage()

23 years agoapplied David's patch for parsing display's server:screen string
Brian Paul [Mon, 2 Apr 2001 22:45:07 +0000 (22:45 +0000)]
applied David's patch for parsing display's server:screen string

23 years agoquerying proxy texture image info was segfaulting because of NULL TexFormat pointer
Brian Paul [Fri, 30 Mar 2001 21:14:30 +0000 (21:14 +0000)]
querying proxy texture image info was segfaulting because of NULL TexFormat pointer

23 years agoadd texture border width to x/y/zoffset in gl[Copy]TexSubImage*D() functions to accom...
Brian Paul [Fri, 30 Mar 2001 21:12:15 +0000 (21:12 +0000)]
add texture border width to x/y/zoffset in gl[Copy]TexSubImage*D() functions to accomodate negative offsets correctly

23 years agotexImage->FetchTexel wasn't getting initialized in _mesa_CopyTexImage1/2D()
Brian Paul [Fri, 30 Mar 2001 15:31:44 +0000 (15:31 +0000)]
texImage->FetchTexel wasn't getting initialized in _mesa_CopyTexImage1/2D()

23 years agofixed compilation problems related to ctx->_Enabled removal
Brian Paul [Fri, 30 Mar 2001 15:16:12 +0000 (15:16 +0000)]
fixed compilation problems related to ctx->_Enabled removal

23 years agoRemove all traces of CULL_MASK_ACTIVE.
Gareth Hughes [Fri, 30 Mar 2001 14:44:43 +0000 (14:44 +0000)]
Remove all traces of CULL_MASK_ACTIVE.

23 years agoFix calculation of fog coordinate in translate_vertex().
Keith Whitwell [Fri, 30 Mar 2001 00:39:02 +0000 (00:39 +0000)]
Fix calculation of fog coordinate in translate_vertex().

23 years agoRemove ENABLE_* flags, ctx->_Enabled.
Keith Whitwell [Thu, 29 Mar 2001 21:16:25 +0000 (21:16 +0000)]
Remove ENABLE_* flags, ctx->_Enabled.
Replace with ctx->Texture._TexMatEnabled, ctx->Texture._TexGenEnabled.

23 years agosilence a compiler warning
Brian Paul [Thu, 29 Mar 2001 17:15:21 +0000 (17:15 +0000)]
silence a compiler warning

23 years agoRemoved DD_STENCIL, DD_FEEDBACK, DD_SELECT.
Keith Whitwell [Thu, 29 Mar 2001 17:08:26 +0000 (17:08 +0000)]
Removed DD_STENCIL, DD_FEEDBACK, DD_SELECT.
Added some switchable debug to s_context.c

23 years agoRemoved DD_Z_NEVER.
Brian Paul [Thu, 29 Mar 2001 16:50:31 +0000 (16:50 +0000)]
Removed DD_Z_NEVER.
Replaced SEPERATE with SEPARATE.
Renumbered _NEW_ flags.
Removed _NEW_COLORTABLE.

23 years agoConsolidation of asm code in 3.5
Gareth Hughes [Thu, 29 Mar 2001 06:46:15 +0000 (06:46 +0000)]
Consolidation of asm code in 3.5

23 years agoMake generation of matypes.h more transparent.
Gareth Hughes [Thu, 29 Mar 2001 03:41:39 +0000 (03:41 +0000)]
Make generation of matypes.h more transparent.

23 years agoAdd missing GEN_SOURCES definitions.
Gareth Hughes [Thu, 29 Mar 2001 03:14:48 +0000 (03:14 +0000)]
Add missing GEN_SOURCES definitions.

23 years agocompilation updates
Brian Paul [Wed, 28 Mar 2001 21:39:49 +0000 (21:39 +0000)]
compilation updates

23 years agoadjustment to coverage sample positions
Brian Paul [Wed, 28 Mar 2001 21:37:24 +0000 (21:37 +0000)]
adjustment to coverage sample positions

23 years ago- Restore texImage->IntFormat.
Gareth Hughes [Wed, 28 Mar 2001 21:36:31 +0000 (21:36 +0000)]
- Restore texImage->IntFormat.
- Fix FX driver texture image conversions.

23 years agocheck for startX off the right edge of the window
Brian Paul [Wed, 28 Mar 2001 21:36:31 +0000 (21:36 +0000)]
check for startX off the right edge of the window

23 years agouse Image[i]->TexFormat to check for mipmap consistency
Brian Paul [Wed, 28 Mar 2001 21:31:54 +0000 (21:31 +0000)]
use Image[i]->TexFormat to check for mipmap consistency

23 years agosimplify test for specific texture formats
Brian Paul [Wed, 28 Mar 2001 21:31:24 +0000 (21:31 +0000)]
simplify test for specific texture formats

23 years agoNew type system for assembly code. Asm files should now include
Gareth Hughes [Wed, 28 Mar 2001 20:44:43 +0000 (20:44 +0000)]
New type system for assembly code.  Asm files should now include
matypes.h, which includes assyntax.h and is generated from the core Mesa
header files.

23 years agoMore texture format updates. Drivers now need only plug an appropriate
Gareth Hughes [Wed, 28 Mar 2001 20:40:51 +0000 (20:40 +0000)]
More texture format updates.  Drivers now need only plug an appropriate
format into texImage->TexFormat, the rest is handled by core Mesa.

23 years agoMore informative display of texture parameters.
Gareth Hughes [Wed, 28 Mar 2001 20:25:14 +0000 (20:25 +0000)]
More informative display of texture parameters.

23 years agoDelete libGLU.so* from ../lib before installing it.
Gareth Hughes [Wed, 28 Mar 2001 20:17:55 +0000 (20:17 +0000)]
Delete libGLU.so* from ../lib before installing it.

23 years agoremoved a debug message
Brian Paul [Wed, 28 Mar 2001 17:39:12 +0000 (17:39 +0000)]
removed a debug message

23 years agoremove TEST_L and JZ instructions; always jump through the _glapi_Dispatch pointer
Brian Paul [Wed, 28 Mar 2001 17:22:11 +0000 (17:22 +0000)]
remove TEST_L and JZ instructions; always jump through the _glapi_Dispatch pointer

23 years agoNew mechanism for thread-safe GL API dispatch. C-based dispatch is faster.
Brian Paul [Wed, 28 Mar 2001 17:19:58 +0000 (17:19 +0000)]
New mechanism for thread-safe GL API dispatch.  C-based dispatch is faster.
Folded glapinoop.c code into glapi.c.
Added code to glapitemp.h to fill in dispatch tables.
Updated Makefiles.

23 years agopass dst and src to CONVERT_TEXEL() macros to fix non-ANSI problems
Brian Paul [Tue, 27 Mar 2001 20:32:24 +0000 (20:32 +0000)]
pass dst and src to CONVERT_TEXEL() macros to fix non-ANSI problems

23 years agofixed RGBA/RGB typo
Brian Paul [Tue, 27 Mar 2001 20:26:37 +0000 (20:26 +0000)]
fixed RGBA/RGB typo

23 years agotexFormat was a random value in _mesa_store_teximage3d(), fix by undoing last changes
Brian Paul [Tue, 27 Mar 2001 20:26:10 +0000 (20:26 +0000)]
texFormat was a random value in _mesa_store_teximage3d(), fix by undoing last changes

23 years agoUpdates required for DRI drivers on mesa-3-5-branch.
Gareth Hughes [Tue, 27 Mar 2001 19:18:02 +0000 (19:18 +0000)]
Updates required for DRI drivers on mesa-3-5-branch.

23 years agoadded rules for readtex.c and readtex.h
Brian Paul [Tue, 27 Mar 2001 17:44:35 +0000 (17:44 +0000)]
added rules for readtex.c and readtex.h

23 years agodouble buffer by default. if drawSmooth, use 50% alpha at top of polygon
Brian Paul [Tue, 27 Mar 2001 17:38:28 +0000 (17:38 +0000)]
double buffer by default.  if drawSmooth, use 50% alpha at top of polygon

23 years agoset initial window pos
Brian Paul [Tue, 27 Mar 2001 17:35:26 +0000 (17:35 +0000)]
set initial window pos

23 years agoclean-up of tunnel demos
Brian Paul [Tue, 27 Mar 2001 17:30:51 +0000 (17:30 +0000)]
clean-up of tunnel demos

23 years agomoved shadow code into teapot.c
Brian Paul [Tue, 27 Mar 2001 17:08:20 +0000 (17:08 +0000)]
moved shadow code into teapot.c

23 years agosilence compiler warnings
Brian Paul [Tue, 27 Mar 2001 16:42:37 +0000 (16:42 +0000)]
silence compiler warnings

23 years agoremoved DO_GEOMETRY
Brian Paul [Mon, 26 Mar 2001 23:36:51 +0000 (23:36 +0000)]
removed DO_GEOMETRY

23 years agochange glTexImage3D() internalFormat to GLenum to match other OpenGLs
Brian Paul [Mon, 26 Mar 2001 20:02:38 +0000 (20:02 +0000)]
change glTexImage3D() internalFormat to GLenum to match other OpenGLs

23 years agotest texture wrap modes
Brian Paul [Mon, 26 Mar 2001 19:45:57 +0000 (19:45 +0000)]
test texture wrap modes

23 years agoadded GL_ARB_texture_border_clamp
Brian Paul [Mon, 26 Mar 2001 19:42:40 +0000 (19:42 +0000)]
added GL_ARB_texture_border_clamp

23 years ago- Minor cleanups of ctx->Driver.Current*Primitive usage.
Gareth Hughes [Sat, 24 Mar 2001 06:01:27 +0000 (06:01 +0000)]
- Minor cleanups of ctx->Driver.Current*Primitive usage.
- Remove unused gl_reduce_prim array.

23 years agoFix ASSERT_OUTSIDE_SAVE_BEGIN_END() macro as well.
Gareth Hughes [Sat, 24 Mar 2001 05:23:46 +0000 (05:23 +0000)]
Fix ASSERT_OUTSIDE_SAVE_BEGIN_END() macro as well.

23 years agoadded glxgears
Brian Paul [Fri, 23 Mar 2001 22:48:35 +0000 (22:48 +0000)]
added glxgears

23 years agogears using GLX instead of GLUT
Brian Paul [Fri, 23 Mar 2001 22:46:26 +0000 (22:46 +0000)]
gears using GLX instead of GLUT

23 years agoadded silly mesa_hack() function and -b option
Brian Paul [Fri, 23 Mar 2001 21:41:44 +0000 (21:41 +0000)]
added silly mesa_hack() function and -b option

23 years agominor tweak to visual setup for accum buffers
Brian Paul [Fri, 23 Mar 2001 21:37:05 +0000 (21:37 +0000)]
minor tweak to visual setup for accum buffers

23 years agofixed Min/Max lod clamp bug
Brian Paul [Fri, 23 Mar 2001 18:53:26 +0000 (18:53 +0000)]
fixed Min/Max lod clamp bug

23 years agoSome more minor cleanups of macros.
Gareth Hughes [Fri, 23 Mar 2001 06:07:31 +0000 (06:07 +0000)]
Some more minor cleanups of macros.

23 years agoRemove compiler warnings about ASSERT_OUTSIDE_BEGIN_END() macro.
Gareth Hughes [Fri, 23 Mar 2001 06:01:03 +0000 (06:01 +0000)]
Remove compiler warnings about ASSERT_OUTSIDE_BEGIN_END() macro.

23 years agoInitial demo of GL_EXT_texture_filter_anisotropic extension.
Gareth Hughes [Thu, 22 Mar 2001 15:24:15 +0000 (15:24 +0000)]
Initial demo of GL_EXT_texture_filter_anisotropic extension.

23 years agoenable GL_ARB_texture_env_combine and GL_ARB_texture_env_dot3 in _mesa_enable_sw_exte...
Brian Paul [Thu, 22 Mar 2001 14:42:24 +0000 (14:42 +0000)]
enable GL_ARB_texture_env_combine and GL_ARB_texture_env_dot3 in _mesa_enable_sw_extensions()

23 years ago Modified Files:
Jouk Jansen [Thu, 22 Mar 2001 11:41:40 +0000 (11:41 +0000)]
 Modified Files:
  Mesa/si-glu/libnurbs/nurbtess/monoTriangulation.cc
  Mesa/si-glu/libnurbs/nurbtess/sampleCompRight.cc

 gluos.h included in order to bypass compiler warnings on unreachable code on
 VMS systems.
----------------------------------------------------------------------

23 years ago Modified Files:
Jouk Jansen [Thu, 22 Mar 2001 11:38:36 +0000 (11:38 +0000)]
 Modified Files:
  Mesa/descrip.mms Mesa/mms-config Mesa/demos/descrip.mms
  Mesa/si-glu/include/gluos.h
  Mesa/si-glu/libnurbs/internals/bufpool.h
  Mesa/si-glu/libnurbs/internals/mysetjmp.h
  Mesa/src-glut/descrip.mms
 Added Files:
  Mesa/si-glu/descrip.mms Mesa/si-glu/mesaglu.opt

 changes needed to compile SI-GLU on VMS.

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

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.