mesa.git
20 years agoremove redundant macros (also in m_matrix.h)
Brian Paul [Mon, 8 Mar 2004 18:30:45 +0000 (18:30 +0000)]
remove redundant macros (also in m_matrix.h)

20 years agoVoodoo Rush fixes
Daniel Borca [Mon, 8 Mar 2004 07:52:18 +0000 (07:52 +0000)]
Voodoo Rush fixes

20 years agoSwapout textures who's space is claimed by a new texture. Don't destroy.
Felix Kuehling [Mon, 8 Mar 2004 00:34:43 +0000 (00:34 +0000)]
Swapout textures who's space is claimed by a new texture. Don't destroy.
This finally really fixes assertion failures in savageBindTexture.
I think the same situation with several contexts is still broken though.

20 years agoFixed texture tiling format for 8bit texels on ProSavage and Twister.
Felix Kuehling [Sun, 7 Mar 2004 23:32:31 +0000 (23:32 +0000)]
Fixed texture tiling format for 8bit texels on ProSavage and Twister.

20 years agoRewrote tiled texture upload. Small mipmap levels work correctly now.
Felix Kuehling [Sun, 7 Mar 2004 20:41:42 +0000 (20:41 +0000)]
Rewrote tiled texture upload. Small mipmap levels work correctly now.

20 years agoFixed two small problems in the vertex setup.
Felix Kuehling [Sun, 7 Mar 2004 01:36:50 +0000 (01:36 +0000)]
Fixed two small problems in the vertex setup.
 - make sure that vertex setup is initialized
 - Savage seems to need the W coordinate for smooth shading

20 years agoSmall texture management fixes. Should get rid of assertions some people were getting...
Felix Kuehling [Thu, 4 Mar 2004 22:11:38 +0000 (22:11 +0000)]
Small texture management fixes. Should get rid of assertions some people were getting in savageBindTexture.

20 years agoplug in _mesa_BlendFunc into dispatch table
Brian Paul [Thu, 4 Mar 2004 17:14:08 +0000 (17:14 +0000)]
plug in _mesa_BlendFunc into dispatch table

20 years agoa bunch of assorted clean-ups, etc to fix warnings, etc
Brian Paul [Thu, 4 Mar 2004 16:22:01 +0000 (16:22 +0000)]
a bunch of assorted clean-ups, etc to fix warnings, etc

20 years agoremove some unneeded macros
Brian Paul [Thu, 4 Mar 2004 16:20:38 +0000 (16:20 +0000)]
remove some unneeded macros

20 years agocasts to silence warnings
Brian Paul [Thu, 4 Mar 2004 14:56:34 +0000 (14:56 +0000)]
casts to silence warnings

20 years agosilence warnings
Brian Paul [Thu, 4 Mar 2004 14:52:59 +0000 (14:52 +0000)]
silence warnings

20 years agoyet another take on VBO deleting and reference counting
Brian Paul [Thu, 4 Mar 2004 14:46:00 +0000 (14:46 +0000)]
yet another take on VBO deleting and reference counting

20 years agoInitial changes after moving from src/mesa/main/.
Michal Krol [Thu, 4 Mar 2004 13:15:32 +0000 (13:15 +0000)]
Initial changes after moving from src/mesa/main/.
Needs testing - it havent been even compiled yet.

20 years agoAdded missing Copyrights.
Michal Krol [Thu, 4 Mar 2004 13:07:52 +0000 (13:07 +0000)]
Added missing Copyrights.

20 years agoClearing rectangle was one too big in each direction.
Felix Kuehling [Thu, 4 Mar 2004 00:27:36 +0000 (00:27 +0000)]
Clearing rectangle was one too big in each direction.

20 years agoGrammar package supporting 8-bit registers.
Michal Krol [Wed, 3 Mar 2004 18:10:40 +0000 (18:10 +0000)]
Grammar package supporting 8-bit registers.

TODO:
  - add checking for duplicate symbols (or is it done already?)
  - move all the statics (grammar objects list and last error message)
    to the GL context state; I think simple pointer initialized in a
    first call to ProgramString() is sufficent.
  - apply an optimized version of match() - this will be needed for
    glslang compiler.

20 years agoAdded support for ARB_fragment_program_shadow.
Michal Krol [Wed, 3 Mar 2004 18:01:58 +0000 (18:01 +0000)]
Added support for ARB_fragment_program_shadow.

20 years agoInitial registry for ARB_fragment_program and ARB_vertex_program.
Michal Krol [Wed, 3 Mar 2004 17:59:49 +0000 (17:59 +0000)]
Initial registry for ARB_fragment_program and ARB_vertex_program.

20 years agoadded clamping to polygon offset to prevent potential negative Z values and FP exceptions
Brian Paul [Wed, 3 Mar 2004 15:50:28 +0000 (15:50 +0000)]
added clamping to polygon offset to prevent potential negative Z values and FP exceptions

20 years agocomments, capitalization, misc-clean-ups
Brian Paul [Wed, 3 Mar 2004 15:36:53 +0000 (15:36 +0000)]
comments, capitalization, misc-clean-ups

20 years agos/_swrast_exec_nv_fragment_program/_swrast_exec_fragment_program/
Brian Paul [Wed, 3 Mar 2004 15:36:01 +0000 (15:36 +0000)]
s/_swrast_exec_nv_fragment_program/_swrast_exec_fragment_program/

20 years agomore changes to VBO reference counting and deletion
Brian Paul [Wed, 3 Mar 2004 15:35:08 +0000 (15:35 +0000)]
more changes to VBO reference counting and deletion

20 years ago_tnl_allow_*_fog(...)
Daniel Borca [Wed, 3 Mar 2004 09:07:43 +0000 (09:07 +0000)]
_tnl_allow_*_fog(...)

20 years agomade NASM opcodes consistent
Daniel Borca [Wed, 3 Mar 2004 09:03:40 +0000 (09:03 +0000)]
made NASM opcodes consistent

20 years agoCope with float colors in VERT_SET_RGBA and VERT_SET_SPEC macros.
Felix Kuehling [Tue, 2 Mar 2004 23:48:32 +0000 (23:48 +0000)]
Cope with float colors in VERT_SET_RGBA and VERT_SET_SPEC macros.

20 years agoFixed some small state tracking issues while hunting a different problem.
Felix Kuehling [Tue, 2 Mar 2004 23:45:40 +0000 (23:45 +0000)]
Fixed some small state tracking issues while hunting a different problem.

20 years agofixed linux-osmesa16-static. Added linux-static config
Brian Paul [Tue, 2 Mar 2004 17:28:56 +0000 (17:28 +0000)]
fixed linux-osmesa16-static.  Added linux-static config

20 years agoadded missing error check in _mesa_BeginQueryARB (Cedric Gautier). minor clean-ups.
Brian Paul [Tue, 2 Mar 2004 15:21:51 +0000 (15:21 +0000)]
added missing error check in _mesa_BeginQueryARB (Cedric Gautier).  minor clean-ups.

20 years agoworkaround for crash-upon-exit in verbose mode
Daniel Borca [Tue, 2 Mar 2004 08:15:24 +0000 (08:15 +0000)]
workaround for crash-upon-exit in verbose mode
fxMesa now uses grQueryResolution
minor fixes to X11 and DOS drivers

20 years agoFix calling fallback_drawarrays() with the wrong arguments
Roland Scheidegger [Mon, 1 Mar 2004 23:29:27 +0000 (23:29 +0000)]
Fix calling fallback_drawarrays() with the wrong arguments

20 years agoAdd support for the new DRI driver interfaces to the radeon driver (patch ported...
Roland Scheidegger [Mon, 1 Mar 2004 17:49:59 +0000 (17:49 +0000)]
Add support for the new DRI driver interfaces to the radeon driver (patch ported from the r200 driver, r200_screen.c rev. 1.8 - 1.12)

20 years agoInline get_size as an interim measure to get rid of function call overhead.
Michel Dänzer [Mon, 1 Mar 2004 13:02:29 +0000 (13:02 +0000)]
Inline get_size as an interim measure to get rid of function call overhead.

20 years agoCorrected the maximum vertex size argument of _tnl_init_vertices.
Felix Kuehling [Sun, 29 Feb 2004 20:43:54 +0000 (20:43 +0000)]
Corrected the maximum vertex size argument of _tnl_init_vertices.

20 years agoReorganized hardware state data structures and state emission. Don't track
Felix Kuehling [Sun, 29 Feb 2004 20:42:22 +0000 (20:42 +0000)]
Reorganized hardware state data structures and state emission. Don't track
which registers changed in all the functions that change the state. Instead
check which registers changed in the end when the hardware state is updated.
Tried to avoid cosmetic (whitespace) changes in this commit.

20 years agoRemove clamp parameter from _mesa_unpack_color_span_float(). Pass the
Brian Paul [Sat, 28 Feb 2004 22:30:58 +0000 (22:30 +0000)]
Remove clamp parameter from _mesa_unpack_color_span_float().  Pass the
IMAGE_CLAMP_BIT if needed.
Added ClampVertexColors and ClampFragmentColors to GLcontext in anticipation
of upcoming extensions (not fully used yet).

20 years agominor clean-ups
Brian Paul [Sat, 28 Feb 2004 21:19:27 +0000 (21:19 +0000)]
minor clean-ups

20 years agoconsolidate image transfer operations in new _mesa_apply_rgba_transfer_ops() function
Brian Paul [Sat, 28 Feb 2004 21:10:19 +0000 (21:10 +0000)]
consolidate image transfer operations in new _mesa_apply_rgba_transfer_ops() function

20 years agorename some span pack/unpack functions for better uniformity
Brian Paul [Sat, 28 Feb 2004 20:35:57 +0000 (20:35 +0000)]
rename some span pack/unpack functions for better uniformity

20 years agomove _swrast_texture_table_lookup() to _mesa_lookup_rgba_chan()
Brian Paul [Sat, 28 Feb 2004 20:12:33 +0000 (20:12 +0000)]
move _swrast_texture_table_lookup() to _mesa_lookup_rgba_chan()

20 years agoconsolidate some code
Brian Paul [Sat, 28 Feb 2004 19:58:19 +0000 (19:58 +0000)]
consolidate some code

20 years agoreplace color table FloatTable boolean with Type enum
Brian Paul [Sat, 28 Feb 2004 19:34:05 +0000 (19:34 +0000)]
replace color table FloatTable boolean with Type enum

20 years agopaltex demo from recent texcombine changes. Minor clean-ups
Brian Paul [Sat, 28 Feb 2004 19:33:03 +0000 (19:33 +0000)]
paltex demo from recent texcombine changes.  Minor clean-ups

20 years agoOnly print message about disabling HW TCL if the chip supports it in the
Michel Dänzer [Sat, 28 Feb 2004 13:25:25 +0000 (13:25 +0000)]
Only print message about disabling HW TCL if the chip supports it in the
first place, and make the message a bit clearer.

+ Remove some extraneous whitespace.

20 years agoCreate all the right modes for 16-bit screens.
Ian Romanick [Fri, 27 Feb 2004 19:12:29 +0000 (19:12 +0000)]
Create all the right modes for 16-bit screens.

20 years agoFix a problem with 24-bit screens. Modes with 0 stencil bits were
Ian Romanick [Fri, 27 Feb 2004 19:11:08 +0000 (19:11 +0000)]
Fix a problem with 24-bit screens.  Modes with 0 stencil bits were
erroneously marked as GLX_SLOW_CONFIG.

20 years agomove _mesa_load_state_parameters() to state validation stage
Brian Paul [Fri, 27 Feb 2004 02:13:29 +0000 (02:13 +0000)]
move _mesa_load_state_parameters() to state validation stage

20 years agofix PK2H, UP2H, PK2US bugs
Brian Paul [Fri, 27 Feb 2004 01:28:24 +0000 (01:28 +0000)]
fix PK2H, UP2H, PK2US bugs

20 years agocheck for null paramList
Brian Paul [Thu, 26 Feb 2004 22:20:29 +0000 (22:20 +0000)]
check for null paramList

20 years agocheck for invalid fragment program in glDrawPixels, glCopyPixels and glBitmap
Brian Paul [Thu, 26 Feb 2004 22:13:32 +0000 (22:13 +0000)]
check for invalid fragment program in glDrawPixels, glCopyPixels and glBitmap

20 years agocheck for invalid vertex/fragment program in glBegin
Brian Paul [Thu, 26 Feb 2004 22:09:28 +0000 (22:09 +0000)]
check for invalid vertex/fragment program in glBegin

20 years agofix another glDrawArrays indexing bug, jump through _glapi_Dispatch functions
Brian Paul [Thu, 26 Feb 2004 22:09:05 +0000 (22:09 +0000)]
fix another glDrawArrays indexing bug, jump through _glapi_Dispatch functions

20 years agofix library naming glitches (bug 904867)
Brian Paul [Thu, 26 Feb 2004 15:21:41 +0000 (15:21 +0000)]
fix library naming glitches (bug 904867)

20 years agoFix C/C++ calling conventions problem (Bug 904854)
Brian Paul [Thu, 26 Feb 2004 14:58:11 +0000 (14:58 +0000)]
Fix C/C++ calling conventions problem (Bug 904854)

20 years agoSet ctx->Const.MaxTexture[Image/Coord]Units correctly. Fixes corruption in q3.
Felix Kuehling [Thu, 26 Feb 2004 13:22:16 +0000 (13:22 +0000)]
Set ctx->Const.MaxTexture[Image/Coord]Units correctly. Fixes corruption in q3.

20 years agoAdapt the VERT_SET/COPY/SAVE/RESTORE_RGBA/SPEC macros to copy with all savage vertex...
Felix Kuehling [Thu, 26 Feb 2004 12:19:41 +0000 (12:19 +0000)]
Adapt the VERT_SET/COPY/SAVE/RESTORE_RGBA/SPEC macros to copy with all savage vertex formats.

20 years agoForgot to remove savagevb.h in last commit.
Felix Kuehling [Thu, 26 Feb 2004 01:00:00 +0000 (01:00 +0000)]
Forgot to remove savagevb.h in last commit.

20 years agoConverted vertex setup to use t_vertex.[ch].
Felix Kuehling [Thu, 26 Feb 2004 00:59:00 +0000 (00:59 +0000)]
Converted vertex setup to use t_vertex.[ch].

20 years agoCreate all the right modes for 16-bit screens.
Ian Romanick [Thu, 26 Feb 2004 00:33:22 +0000 (00:33 +0000)]
Create all the right modes for 16-bit screens.

20 years agoadded _tnl_allow_vertex/pixel_fog() calls
Brian Paul [Thu, 26 Feb 2004 00:28:03 +0000 (00:28 +0000)]
added _tnl_allow_vertex/pixel_fog() calls

20 years agoCall _tnl_allow_pixel/vertex_fog in savageCreateContext. (Brian Paul)
Felix Kuehling [Wed, 25 Feb 2004 20:47:46 +0000 (20:47 +0000)]
Call _tnl_allow_pixel/vertex_fog in savageCreateContext. (Brian Paul)

20 years agouse ABS(Z) when computing blend factors
Brian Paul [Wed, 25 Feb 2004 16:14:16 +0000 (16:14 +0000)]
use ABS(Z) when computing blend factors

20 years agocall _tnl_allow_pixel/vertex_fog() funcs
Brian Paul [Tue, 24 Feb 2004 16:11:30 +0000 (16:11 +0000)]
call _tnl_allow_pixel/vertex_fog() funcs

20 years agoturns out we probably need a _tnl_allow_pixel_fog() function afterall
Brian Paul [Tue, 24 Feb 2004 16:10:52 +0000 (16:10 +0000)]
turns out we probably need a _tnl_allow_pixel_fog() function afterall

20 years agojump through dispatch table instead of calling gl functions directly
Brian Paul [Tue, 24 Feb 2004 15:08:22 +0000 (15:08 +0000)]
jump through dispatch table instead of calling gl functions directly

20 years agofix incorrect texcoord attribute index
Brian Paul [Tue, 24 Feb 2004 14:59:26 +0000 (14:59 +0000)]
fix incorrect texcoord attribute index

20 years agoadded some GLAPIENTRY keywords, minor clean-ups
Brian Paul [Tue, 24 Feb 2004 14:47:01 +0000 (14:47 +0000)]
added some GLAPIENTRY keywords, minor clean-ups

20 years agos/transform/tnl/
Brian Paul [Tue, 24 Feb 2004 04:57:48 +0000 (04:57 +0000)]
s/transform/tnl/

20 years agoupgraded to version 22
Brian Paul [Tue, 24 Feb 2004 03:01:27 +0000 (03:01 +0000)]
upgraded to version 22

20 years agoYet another revision of _ae_update_state(). Issue both conventional AND
Brian Paul [Tue, 24 Feb 2004 02:49:43 +0000 (02:49 +0000)]
Yet another revision of _ae_update_state().  Issue both conventional AND
generic vertex attribute commands, ignoring ctx->VertexProgram.Enabled
since this function may be used during display list compilation.

20 years agoadded some const keywords
Brian Paul [Tue, 24 Feb 2004 02:47:05 +0000 (02:47 +0000)]
added some const keywords

20 years agoglDrawArrays loop was wrong
Brian Paul [Tue, 24 Feb 2004 02:42:46 +0000 (02:42 +0000)]
glDrawArrays loop was wrong

20 years agoupdates from Erdi Chen
Brian Paul [Mon, 23 Feb 2004 21:07:12 +0000 (21:07 +0000)]
updates from Erdi Chen

20 years agofix typo (Matt Case)
Brian Paul [Mon, 23 Feb 2004 20:26:58 +0000 (20:26 +0000)]
fix typo (Matt Case)

20 years agoThe available GLX version is now logged in addition to the client
Ian Romanick [Mon, 23 Feb 2004 17:37:36 +0000 (17:37 +0000)]
The available GLX version is now logged in addition to the client
version and the server version.

20 years agodelete the textures
Dave Airlie [Mon, 23 Feb 2004 06:35:22 +0000 (06:35 +0000)]
delete the textures

20 years agoImported the Savage DRI driver from the savage-2-0-0-branch of DRI CVS
Felix Kuehling [Sun, 22 Feb 2004 16:11:12 +0000 (16:11 +0000)]
Imported the Savage DRI driver from the savage-2-0-0-branch of DRI CVS
with modifications to make it work with current Mesa 6.

20 years agosome minor tweaks
Brian Paul [Sat, 21 Feb 2004 18:08:41 +0000 (18:08 +0000)]
some minor tweaks

20 years agofixed some typos
Daniel Borca [Fri, 20 Feb 2004 09:47:42 +0000 (09:47 +0000)]
fixed some typos

20 years agoRefactored several variables out of XMesaVisual in favor of identical
Ian Romanick [Thu, 19 Feb 2004 00:57:04 +0000 (00:57 +0000)]
Refactored several variables out of XMesaVisual in favor of identical
fields in __GLcontextModes (the base type).  Removed the need to keep
the XMesaVisualInfo pointer when building inside the X-server.

20 years agorecent bug fixes/changes (fog, glArrayElement, triangle rasterization)
Brian Paul [Tue, 17 Feb 2004 23:38:05 +0000 (23:38 +0000)]
recent bug fixes/changes (fog, glArrayElement, triangle rasterization)

20 years agoA few more tweaks to fog code.
Brian Paul [Tue, 17 Feb 2004 22:14:18 +0000 (22:14 +0000)]
A few more tweaks to fog code.
Remove unneeded FABSF() macros.
Added blend factor clamping in a few spots.

20 years agocompute fog coord in eye space, not clip space
Brian Paul [Tue, 17 Feb 2004 22:00:45 +0000 (22:00 +0000)]
compute fog coord in eye space, not clip space

20 years agoA bit of an overhaul of the fog code.
Brian Paul [Tue, 17 Feb 2004 21:03:03 +0000 (21:03 +0000)]
A bit of an overhaul of the fog code.
glFogCoord didn't always work reliably.
ARB fragment program fog options work now.
Per-fragment fog computations are now perspective corrected.

20 years agodefine DO_FRAGMENT_FOG=1 to test fragment program fog option
Brian Paul [Tue, 17 Feb 2004 17:59:59 +0000 (17:59 +0000)]
define DO_FRAGMENT_FOG=1 to test fragment program fog option

20 years agoadded SPAN_W
Brian Paul [Tue, 17 Feb 2004 14:08:23 +0000 (14:08 +0000)]
added SPAN_W

20 years agojust some reformatting
Brian Paul [Tue, 17 Feb 2004 04:28:37 +0000 (04:28 +0000)]
just some reformatting

20 years agosome debug code
Brian Paul [Tue, 17 Feb 2004 04:26:42 +0000 (04:26 +0000)]
some debug code

20 years agoadded FogOption to fragment_program struct
Brian Paul [Tue, 17 Feb 2004 04:25:24 +0000 (04:25 +0000)]
added FogOption to fragment_program struct

20 years agoadded FixedToDouble() macro
Brian Paul [Tue, 17 Feb 2004 04:24:52 +0000 (04:24 +0000)]
added FixedToDouble() macro

20 years agoAdded TRIANGLE_WALK_DOUBLE to optionally walk triangle edges with GLdoubles
Brian Paul [Tue, 17 Feb 2004 03:51:47 +0000 (03:51 +0000)]
Added TRIANGLE_WALK_DOUBLE to optionally walk triangle edges with GLdoubles
instead of GLfixed. (Justin Novosad)

20 years agotexture env combine refactor (Andreas Stenglein), following the same principles as...
Roland Scheidegger [Mon, 16 Feb 2004 17:34:03 +0000 (17:34 +0000)]
texture env combine refactor (Andreas Stenglein), following the same principles as the refactored code already present in the R200 driver

20 years agoremove incorrect negation in fog coord computation
Brian Paul [Mon, 16 Feb 2004 16:44:40 +0000 (16:44 +0000)]
remove incorrect negation in fog coord computation

20 years agoAdd _tnl_set_attr() to complement existing get_attr() call.
Keith Whitwell [Mon, 16 Feb 2004 15:15:24 +0000 (15:15 +0000)]
Add _tnl_set_attr() to complement existing get_attr() call.

20 years agoglutInitWindowPosition
Keith Whitwell [Mon, 16 Feb 2004 14:45:56 +0000 (14:45 +0000)]
glutInitWindowPosition

20 years agocleanup and some WGL PIXELFORMAT issues
Daniel Borca [Mon, 16 Feb 2004 07:32:27 +0000 (07:32 +0000)]
cleanup and some WGL PIXELFORMAT issues

20 years agofog_coord demo
Daniel Borca [Mon, 16 Feb 2004 07:31:29 +0000 (07:31 +0000)]
fog_coord demo

20 years agosome code clean-ups
Brian Paul [Sun, 15 Feb 2004 17:45:17 +0000 (17:45 +0000)]
some code clean-ups

20 years agoMinor clean-ups of variable scopes, initializations, etc.
Brian Paul [Sun, 15 Feb 2004 16:21:07 +0000 (16:21 +0000)]
Minor clean-ups of variable scopes, initializations, etc.
New comments discussing FIXED_FRAC_BITS, SUB_PIXEL_BITS, max viewport size
and rasterization accuracy.

20 years agoRemove debug
Keith Whitwell [Sat, 14 Feb 2004 15:49:55 +0000 (15:49 +0000)]
Remove debug