mesa.git
17 years agoFor glGetTexImage(), move the _mesa_validate_pbo_access() error check into
Brian Paul [Wed, 19 Jul 2006 16:13:15 +0000 (16:13 +0000)]
For glGetTexImage(), move the _mesa_validate_pbo_access() error check into
_mesa_GetTexImage() so it's not needed in the fallback or driver functions.

17 years agoSeveral loops over the map1/2 evaluator arrays were incorrect.
Brian Paul [Wed, 19 Jul 2006 15:28:29 +0000 (15:28 +0000)]
Several loops over the map1/2 evaluator arrays were incorrect.
There's only 16 evaluator maps.  Define new _TNL_NUM_EVAL constant for
those loops.
Also, fix priority of GL_NV_vertex_program generic maps - they override the
conventional maps.
See bug 7564.

17 years agomore 6.5.1 additions
Brian Paul [Wed, 19 Jul 2006 15:09:42 +0000 (15:09 +0000)]
more 6.5.1 additions

17 years agoindentation fix
Brian Paul [Tue, 18 Jul 2006 22:33:14 +0000 (22:33 +0000)]
indentation fix

17 years agoadd missing 'return' after a few _mesa_error() calls in _mesa_GetTexImage()
Brian Paul [Tue, 18 Jul 2006 22:27:02 +0000 (22:27 +0000)]
add missing 'return' after a few _mesa_error() calls in _mesa_GetTexImage()

17 years agoCompute ctx->Color._LogicOpEnabled in one place instead of four places!
Brian Paul [Tue, 18 Jul 2006 19:15:40 +0000 (19:15 +0000)]
Compute ctx->Color._LogicOpEnabled in one place instead of four places!

17 years agofix a memleak (that code block has been commented out for years for unknown reasons)
Tilman Sauerbeck [Sat, 15 Jul 2006 12:09:27 +0000 (12:09 +0000)]
fix a memleak (that code block has been commented out for years for unknown reasons)

17 years agoA small logic error.
Rune Petersen [Sat, 15 Jul 2006 10:44:25 +0000 (10:44 +0000)]
A small logic error.

We need to call do_swizzle() when the scaler _or_ vector unit have a
swizzle other 000/ZERO/111/ONE.

This ensures that the gloss on banners in ut2004 is not angel-dependent
(since when was banners glossy?).

17 years agodefine FLT_MAX_EXP to 128 if undefined
Brian Paul [Thu, 13 Jul 2006 20:21:44 +0000 (20:21 +0000)]
define FLT_MAX_EXP to 128 if undefined

17 years agoMove initialization of server_support from __glXProcessServerString to
Ian Romanick [Thu, 13 Jul 2006 15:27:37 +0000 (15:27 +0000)]
Move initialization of server_support from __glXProcessServerString to
__glXCalcualteUsableExtensions.  By having both callers of
__glXProcessServerString initialize the bit-fields passed in, we guarantee
that the correct amount of data is initialized:

This fixes bugzilla #7353.

17 years agoLIB_DIR is now just 'lib' or 'lib64'
Brian Paul [Thu, 13 Jul 2006 02:50:27 +0000 (02:50 +0000)]
LIB_DIR is now just 'lib' or 'lib64'
Replaced $(LIB_DIR) with $(TOP)/$(LIB_DIR), use LIB_DIR in install targets.
Patch by Hanno Böck.

17 years agodownload/install updates
Brian Paul [Wed, 12 Jul 2006 20:14:43 +0000 (20:14 +0000)]
download/install updates

17 years agoNew config var DRI_DRIVER_SEARCH_DIR to specify where libGL should search
Brian Paul [Wed, 12 Jul 2006 19:40:59 +0000 (19:40 +0000)]
New config var DRI_DRIVER_SEARCH_DIR to specify where libGL should search
(at runtime) for the DRI drivers.
See bug 2372.

17 years agofix another memleak
Tilman Sauerbeck [Wed, 12 Jul 2006 17:06:49 +0000 (17:06 +0000)]
fix another memleak

17 years agofix a memleak
Tilman Sauerbeck [Wed, 12 Jul 2006 16:49:07 +0000 (16:49 +0000)]
fix a memleak

17 years agodestroy window upon exit, remove CVS log comment
Brian Paul [Wed, 12 Jul 2006 02:34:43 +0000 (02:34 +0000)]
destroy window upon exit, remove CVS log comment

17 years agocall glutDestroyWindow() to allow checking for mem leaks upon exit
Brian Paul [Wed, 12 Jul 2006 02:32:21 +0000 (02:32 +0000)]
call glutDestroyWindow() to allow checking for mem leaks upon exit

17 years agofree array objects properly (bug 7493)
Brian Paul [Tue, 11 Jul 2006 21:56:43 +0000 (21:56 +0000)]
free array objects properly (bug 7493)

17 years agofree GL2Objects unconditionally
Tilman Sauerbeck [Tue, 11 Jul 2006 20:13:28 +0000 (20:13 +0000)]
free GL2Objects unconditionally

17 years agofree the ArrayObjects hash table
Tilman Sauerbeck [Tue, 11 Jul 2006 19:36:27 +0000 (19:36 +0000)]
free the ArrayObjects hash table

17 years agoonly access ss->BufferObjects if it's declared
Tilman Sauerbeck [Tue, 11 Jul 2006 19:03:21 +0000 (19:03 +0000)]
only access ss->BufferObjects if it's declared

17 years ago_mesa_destroy_context() frees radeon->glCtx so we must not access it afterwards
Tilman Sauerbeck [Tue, 11 Jul 2006 18:35:24 +0000 (18:35 +0000)]
_mesa_destroy_context() frees radeon->glCtx so we must not access it afterwards

17 years agoRevert the SiS and Unichrome DRM version check changes.
Thomas Hellström [Tue, 11 Jul 2006 14:56:20 +0000 (14:56 +0000)]
Revert the SiS and Unichrome DRM version check changes.

17 years agoThe SiS and Unichrome drivers assume that the handle to the
Thomas Hellström [Mon, 10 Jul 2006 12:20:24 +0000 (12:20 +0000)]
The SiS and Unichrome drivers assume that the handle to the
AGP map is equivalent to the AGP physical address. Fix this.

17 years agoFix #7195
Aapo Tahkola [Sun, 9 Jul 2006 00:04:06 +0000 (00:04 +0000)]
Fix #7195

17 years agoupdate comment, APP_LIB_DEPS
Brian Paul [Fri, 7 Jul 2006 14:32:47 +0000 (14:32 +0000)]
update comment, APP_LIB_DEPS

17 years agofixup OSMESA_LIBS and make clean target
Brian Paul [Fri, 7 Jul 2006 14:32:02 +0000 (14:32 +0000)]
fixup OSMESA_LIBS and make clean target

17 years agoremove GLUT dependency
Brian Paul [Fri, 7 Jul 2006 14:31:28 +0000 (14:31 +0000)]
remove GLUT dependency

17 years agoremove dependency on GLUT
Brian Paul [Fri, 7 Jul 2006 14:12:04 +0000 (14:12 +0000)]
remove dependency on GLUT

17 years agoDon't include unused header files.
Kristian Høgsberg [Thu, 6 Jul 2006 07:28:25 +0000 (07:28 +0000)]
Don't include unused header files.

17 years agoR300_RR_ROUTE_1 still needs to be initialized.
Aapo Tahkola [Wed, 5 Jul 2006 13:28:01 +0000 (13:28 +0000)]
R300_RR_ROUTE_1 still needs to be initialized.

17 years agoNew animated engine demo.
Brian Paul [Tue, 4 Jul 2006 21:43:21 +0000 (21:43 +0000)]
New animated engine demo.

17 years agoAdd R300_VAP_CNTL 0x2140 and cosmetic cleanup.
Jerome Glisse [Tue, 4 Jul 2006 20:50:49 +0000 (20:50 +0000)]
Add R300_VAP_CNTL 0x2140 and cosmetic cleanup.

17 years agoadded linux-osmesa
Brian Paul [Tue, 4 Jul 2006 16:49:58 +0000 (16:49 +0000)]
added linux-osmesa

17 years agosimple libOSMesa.so-only config, no X
Brian Paul [Tue, 4 Jul 2006 16:49:41 +0000 (16:49 +0000)]
simple libOSMesa.so-only config, no X

17 years agoenable hw antialiasing (Martijn van Oosterhout)
Brian Paul [Tue, 4 Jul 2006 13:37:19 +0000 (13:37 +0000)]
enable hw antialiasing (Martijn van Oosterhout)

17 years agofix linking bug (bug 7405)
Brian Paul [Mon, 3 Jul 2006 23:12:16 +0000 (23:12 +0000)]
fix linking bug (bug 7405)

17 years agoadditional clipping/viewport fixes (Martijn van Oosterhout)
Brian Paul [Mon, 3 Jul 2006 23:08:33 +0000 (23:08 +0000)]
additional clipping/viewport fixes (Martijn van Oosterhout)

17 years agosome minor simplifications (same as in r300 driver) since mesa's internally used...
Roland Scheidegger [Mon, 3 Jul 2006 22:14:54 +0000 (22:14 +0000)]
some minor simplifications (same as in r300 driver) since mesa's internally used swizzle and writemask flags are identical to the bits used on the hardware, use a macro to error out if these assumptions are no longer true.

17 years agocheck if radeon_drm.h from libdrm is new enough, otherwise print an error to make...
Roland Scheidegger [Mon, 3 Jul 2006 22:11:44 +0000 (22:11 +0000)]
check if radeon_drm.h from libdrm is new enough, otherwise print an error to make it easier to figure out why it won't compile...

17 years agoAdd copyright header and minor cleanup.
Jerome Glisse [Mon, 3 Jul 2006 21:35:07 +0000 (21:35 +0000)]
Add copyright header and minor cleanup.

17 years agodisable a new mem leak check until we're sure it's valid
Brian Paul [Mon, 3 Jul 2006 13:20:32 +0000 (13:20 +0000)]
disable a new mem leak check until we're sure it's valid

17 years agofix clipping bug on context change (Martijn van Oosterhout)
Brian Paul [Mon, 3 Jul 2006 13:17:00 +0000 (13:17 +0000)]
fix clipping bug on context change (Martijn van Oosterhout)

17 years agoinitialize offset to avoid bogus warnings from valgrind
Tilman Sauerbeck [Sat, 1 Jul 2006 21:27:34 +0000 (21:27 +0000)]
initialize offset to avoid bogus warnings from valgrind

17 years agoVertex/fragment program patches (Rune Petersen)
Brian Paul [Fri, 30 Jun 2006 17:56:50 +0000 (17:56 +0000)]
Vertex/fragment program patches (Rune Petersen)

17 years agoclipping fixes (Martijn van Oosterhout)
Brian Paul [Fri, 30 Jun 2006 17:21:32 +0000 (17:21 +0000)]
clipping fixes (Martijn van Oosterhout)

17 years agoclean-ups
Brian Paul [Fri, 30 Jun 2006 16:55:39 +0000 (16:55 +0000)]
clean-ups

17 years agouse _mesa_HashDeleteAll()
Brian Paul [Fri, 30 Jun 2006 15:58:53 +0000 (15:58 +0000)]
use _mesa_HashDeleteAll()

17 years agoremove occlude.c demo since GL_HP_occlusion_test no longer available
Brian Paul [Fri, 30 Jun 2006 15:57:05 +0000 (15:57 +0000)]
remove occlude.c demo since GL_HP_occlusion_test no longer available

17 years agoIn free_shared_state(), use new _mesa_HashDeleteAll() function to delete
Brian Paul [Fri, 30 Jun 2006 15:44:30 +0000 (15:44 +0000)]
In free_shared_state(), use new _mesa_HashDeleteAll() function to delete
textures, display lists, programs, VBOs, etc.  Less code and more efficient.

17 years agoAdded _mesa_delete_list() to delete a display list, but don't remove from
Brian Paul [Fri, 30 Jun 2006 15:41:55 +0000 (15:41 +0000)]
Added _mesa_delete_list() to delete a display list, but don't remove from
hash table.  Make _mesa_destroy_list() static.

17 years agoAdded _mesa_HashDeleteAll() to delete all entries in a hash table with a
Brian Paul [Fri, 30 Jun 2006 15:39:23 +0000 (15:39 +0000)]
Added _mesa_HashDeleteAll() to delete all entries in a hash table with a
callback function.
Added _mesa_HashWalk() to walk over all entries in a hash table with callback.

17 years agoFix typo.
Jerome Glisse [Thu, 29 Jun 2006 20:01:35 +0000 (20:01 +0000)]
Fix typo.

17 years agodestroy left-over VBOs on shutdown
Tilman Sauerbeck [Thu, 29 Jun 2006 18:36:51 +0000 (18:36 +0000)]
destroy left-over VBOs on shutdown

17 years agoinstead of messing with _TNL_LAST_GENERIC and _TNL_FIRST_GENERIC, use _TNL_NUM_GENERI...
Tilman Sauerbeck [Thu, 29 Jun 2006 16:48:45 +0000 (16:48 +0000)]
instead of messing with _TNL_LAST_GENERIC and _TNL_FIRST_GENERIC, use _TNL_NUM_GENERIC. this fixes an off-by-one error (we didn't handle the final attribute)

17 years agocleanup, avoid magic values
Tilman Sauerbeck [Thu, 29 Jun 2006 16:47:09 +0000 (16:47 +0000)]
cleanup, avoid magic values

17 years agoadded _TNL_NUM_GENERIC
Tilman Sauerbeck [Thu, 29 Jun 2006 16:45:57 +0000 (16:45 +0000)]
added _TNL_NUM_GENERIC

17 years agoonly assert front/back pitch if double-buffered (bug 7663)
Brian Paul [Thu, 29 Jun 2006 15:44:13 +0000 (15:44 +0000)]
only assert front/back pitch if double-buffered (bug 7663)

17 years agoadded src/glx/x11/depend to DEPEND_FILES
Brian Paul [Wed, 28 Jun 2006 21:58:47 +0000 (21:58 +0000)]
added src/glx/x11/depend to DEPEND_FILES

17 years agopropagate errors from parse_generic_attrib_num in parse_attrib_binding (-> don't...
Tilman Sauerbeck [Wed, 28 Jun 2006 16:26:20 +0000 (16:26 +0000)]
propagate errors from parse_generic_attrib_num in parse_attrib_binding (-> don't segfault when you're trying to access invalid generic attributes

17 years agoDon't use nested struct definitions in tnl_clipspace_fastpath.
Brian Paul [Tue, 27 Jun 2006 20:11:00 +0000 (20:11 +0000)]
Don't use nested struct definitions in tnl_clipspace_fastpath.
Make attr_type into a top-level type: tnl_attr_type
See bug 7340.

17 years agoRemove the extraneous GL_ prefix from the enums for GL_EXT_timer_query and
Ian Romanick [Tue, 27 Jun 2006 16:13:13 +0000 (16:13 +0000)]
Remove the extraneous GL_ prefix from the enums for GL_EXT_timer_query and
GL_EXT_framebuffer_blit.  Enumerants in the XML schema get the GL_ prefix
added to them automatically.  This resulted in things like
"GL_GL_TIME_ELAPSED_EXT" in enums.c.

17 years agoFix stencil clears that have caused problems with redbook/stencil, tests/stencilwrap...
Aapo Tahkola [Tue, 27 Jun 2006 01:46:11 +0000 (01:46 +0000)]
Fix stencil clears that have caused problems with redbook/stencil, tests/stencilwrap and ut2k4 adrenaline pills.

17 years agoFix generic vertex attribs (Rune Petersen)
Aapo Tahkola [Tue, 27 Jun 2006 01:26:47 +0000 (01:26 +0000)]
Fix generic vertex attribs (Rune Petersen)

17 years agouse trackball code for mouse rotation
Brian Paul [Mon, 26 Jun 2006 23:00:15 +0000 (23:00 +0000)]
use trackball code for mouse rotation

17 years agovirtual trackball code
Brian Paul [Mon, 26 Jun 2006 22:59:28 +0000 (22:59 +0000)]
virtual trackball code

17 years agolocking fixes (Martijn Van Oosterhout)
Brian Paul [Mon, 26 Jun 2006 19:59:38 +0000 (19:59 +0000)]
locking fixes (Martijn Van Oosterhout)

17 years agoUse $(LIB_DIR) instead of $(TOP)/lib since libraries sometimes go into lib64/.
Brian Paul [Mon, 26 Jun 2006 15:34:21 +0000 (15:34 +0000)]
Use $(LIB_DIR) instead of $(TOP)/lib since libraries sometimes go into lib64/.
Probably need to fix the install destinations too...

17 years agomore cleanups
Tilman Sauerbeck [Fri, 23 Jun 2006 16:47:08 +0000 (16:47 +0000)]
more cleanups

17 years agofix glut/freeglut links
Brian Paul [Fri, 23 Jun 2006 15:27:32 +0000 (15:27 +0000)]
fix glut/freeglut links

17 years agoNew 'install' targets in makefile. See bug 2372.
Brian Paul [Thu, 22 Jun 2006 22:50:48 +0000 (22:50 +0000)]
New 'install' targets in makefile.  See bug 2372.

17 years agoA bunch of tiny tests that I've found helpful bringing up drivers from
Keith Whitwell [Thu, 22 Jun 2006 16:32:19 +0000 (16:32 +0000)]
A bunch of tiny tests that I've found helpful bringing up drivers from
scratch.  These exercise single pieces of functionality and provide a
gentler ramp than trying to use the mesa demos to bring up drivers with.

18 years agoexercise min/max lod
Keith Whitwell [Wed, 21 Jun 2006 14:04:04 +0000 (14:04 +0000)]
exercise min/max lod

18 years agoexercise position invarient vertex program
Keith Whitwell [Wed, 21 Jun 2006 14:03:39 +0000 (14:03 +0000)]
exercise position invarient vertex program

18 years agoCheck for a valid context
Alan Hourihane [Wed, 21 Jun 2006 10:58:04 +0000 (10:58 +0000)]
Check for a valid context

18 years agorewrite gluErrorString() to be more legible
Brian Paul [Tue, 20 Jun 2006 15:30:26 +0000 (15:30 +0000)]
rewrite gluErrorString() to be more legible

18 years agoreorder a few token definitions
Brian Paul [Tue, 20 Jun 2006 14:52:22 +0000 (14:52 +0000)]
reorder a few token definitions

18 years agoAdd M32R architecture to test for USE_IEEE and friends (Kazuhiro Inaoka,
Michel Dänzer [Tue, 20 Jun 2006 09:39:32 +0000 (09:39 +0000)]
Add M32R architecture to test for USE_IEEE and friends (Kazuhiro Inaoka,
from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=374608).

18 years agofix span code compilation problems, bug 5858
Brian Paul [Tue, 20 Jun 2006 03:35:17 +0000 (03:35 +0000)]
fix span code compilation problems, bug 5858

18 years agoPrint the hex value of the errant input when an invalid stencil function is
Ian Romanick [Mon, 19 Jun 2006 16:39:49 +0000 (16:39 +0000)]
Print the hex value of the errant input when an invalid stencil function is
specified.

18 years agoIf DrawBuffer isn't set, return immediately
Alan Hourihane [Mon, 19 Jun 2006 09:27:04 +0000 (09:27 +0000)]
If DrawBuffer isn't set, return immediately

18 years agono need to handle ARL in a special way, it's a generic scalar operation. only tested...
Tilman Sauerbeck [Sun, 18 Jun 2006 14:07:10 +0000 (14:07 +0000)]
no need to handle ARL in a special way, it's a generic scalar operation. only tested on r300.

18 years agofix broken negate
Aapo Tahkola [Sun, 18 Jun 2006 12:50:27 +0000 (12:50 +0000)]
fix broken negate

18 years agofix broken address register reads
Aapo Tahkola [Sun, 18 Jun 2006 12:39:58 +0000 (12:39 +0000)]
fix broken address register reads

18 years agoThread safety for Win32. SourceForge bug #1507315.
Brian Paul [Fri, 16 Jun 2006 14:50:05 +0000 (14:50 +0000)]
Thread safety for Win32.  SourceForge bug #1507315.

18 years agoglPush/PopAttrib fix (bug 6891)
Brian Paul [Fri, 16 Jun 2006 13:45:29 +0000 (13:45 +0000)]
glPush/PopAttrib fix (bug 6891)

18 years agodon't create include/GLES yet
Brian Paul [Fri, 16 Jun 2006 13:41:05 +0000 (13:41 +0000)]
don't create include/GLES yet

18 years agoremove obsolete PointSizePtr
Brian Paul [Fri, 16 Jun 2006 13:40:06 +0000 (13:40 +0000)]
remove obsolete PointSizePtr

18 years ago OpenVMS compile support update
Jouk Jansen [Fri, 16 Jun 2006 13:14:35 +0000 (13:14 +0000)]
  OpenVMS compile support update

 Modified Files:
  Mesa/src/mesa/main/descrip.mms
 ----------------------------------------------------------------------

18 years agoadded some comments, braces in _mesa_BindTexture
Brian Paul [Thu, 15 Jun 2006 15:39:10 +0000 (15:39 +0000)]
added some comments, braces in _mesa_BindTexture

18 years agominor clean-ups
Brian Paul [Thu, 15 Jun 2006 15:36:06 +0000 (15:36 +0000)]
minor clean-ups

18 years agocomments for gl_array_object struct
Brian Paul [Thu, 15 Jun 2006 15:34:13 +0000 (15:34 +0000)]
comments for gl_array_object struct

18 years agoCall _mesa_resize_framebuffer() within intelWindowMoved(). Fixes
Keith Whitwell [Thu, 15 Jun 2006 12:47:29 +0000 (12:47 +0000)]
Call _mesa_resize_framebuffer() within intelWindowMoved().  Fixes
googleearth glitches.

18 years agoProtect _swrast_read_rgba_span with RENDER_START/FINISH
Keith Whitwell [Wed, 14 Jun 2006 10:48:09 +0000 (10:48 +0000)]
Protect _swrast_read_rgba_span with RENDER_START/FINISH

18 years agos/ATTRIBUTE/GENERIC/
Brian Paul [Wed, 14 Jun 2006 04:15:16 +0000 (04:15 +0000)]
s/ATTRIBUTE/GENERIC/

18 years agoA number of vertex buffer fields like NormalPtr, FogCoordPtr, etc are really
Brian Paul [Wed, 14 Jun 2006 04:05:17 +0000 (04:05 +0000)]
A number of vertex buffer fields like NormalPtr, FogCoordPtr, etc are really
just aliases for members of the VB->AttribPtr[] array.
Begin replacing FogCoordPtr with VB->AttribPtr[_TNL_ATTRIB_FOG], and similarly
for NormalPtr, TexCoordPtr, PointSizePtr, etc.

18 years agoRename _TNL_ATTRIB_ATTRIBUTE* to _TNL_ATTRIB_GENERIC*
Brian Paul [Wed, 14 Jun 2006 03:30:57 +0000 (03:30 +0000)]
Rename _TNL_ATTRIB_ATTRIBUTE* to _TNL_ATTRIB_GENERIC*

18 years agonew assertion
Brian Paul [Wed, 14 Jun 2006 03:29:08 +0000 (03:29 +0000)]
new assertion

18 years agoDo a cheesy implementation of glXWait/GetVideoSyncSGI() functions, but
Brian Paul [Tue, 13 Jun 2006 23:06:25 +0000 (23:06 +0000)]
Do a cheesy implementation of glXWait/GetVideoSyncSGI() functions, but
disable reporting the GLX_SGI_video_sync extension anyway.
Google Earth works now.

18 years agoGLX_BAD_CONTEXT checks in video-sync functions
Brian Paul [Tue, 13 Jun 2006 23:04:41 +0000 (23:04 +0000)]
GLX_BAD_CONTEXT checks in video-sync functions