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

18 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.

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

18 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

18 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)

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

18 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)

18 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.

18 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...

18 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.

18 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

18 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)

18 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

18 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)

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

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

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

18 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

18 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.

18 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.

18 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.

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

18 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

18 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)

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

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

18 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)

18 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

18 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

18 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.

18 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.

18 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.

18 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)

18 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

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

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

18 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...

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

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

18 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.

18 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

18 years agoremove debug printf
Brian Paul [Tue, 13 Jun 2006 22:17:41 +0000 (22:17 +0000)]
remove debug printf

18 years agoclean-ups and new comments
Brian Paul [Tue, 13 Jun 2006 17:24:36 +0000 (17:24 +0000)]
clean-ups and new comments

18 years agofix glVertexAttribPointerARB's normalized behaviour
Brian Paul [Tue, 13 Jun 2006 17:17:32 +0000 (17:17 +0000)]
fix glVertexAttribPointerARB's normalized behaviour

18 years agoremove unused index_attr1fv()
Brian Paul [Tue, 13 Jun 2006 17:16:56 +0000 (17:16 +0000)]
remove unused index_attr1fv()

18 years agoRename some functions/macros to better reflect their behaviour:
Brian Paul [Tue, 13 Jun 2006 17:13:15 +0000 (17:13 +0000)]
Rename some functions/macros to better reflect their behaviour:
3F -> 3FN because integer types are normalized
4FC -> 3FN because we can normalize non-color attributes

18 years agoIn import_attrib(), use the from->Normalized flag to choose the right
Brian Paul [Tue, 13 Jun 2006 17:06:44 +0000 (17:06 +0000)]
In import_attrib(), use the from->Normalized flag to choose the right
translation function.
Before this fix the 'normalized' flag to glVertexAttribPointerARB() was ignored.

18 years agos/0/NULL/
Brian Paul [Tue, 13 Jun 2006 17:04:26 +0000 (17:04 +0000)]
s/0/NULL/

18 years agoWhen using an ARB vertex program, the generic vertex arrays do not alias the
Brian Paul [Tue, 13 Jun 2006 17:03:25 +0000 (17:03 +0000)]
When using an ARB vertex program, the generic vertex arrays do not alias the
conventional arrays.
Typo: s/writeable/writable/

18 years agofix size assertions in _mesa_init_teximage_fields()
Brian Paul [Tue, 13 Jun 2006 16:45:28 +0000 (16:45 +0000)]
fix size assertions in _mesa_init_teximage_fields()

18 years agominor simplification in texcoord array import
Brian Paul [Tue, 13 Jun 2006 14:50:44 +0000 (14:50 +0000)]
minor simplification in texcoord array import

18 years agoFix command line parsing.
Michel Dänzer [Tue, 13 Jun 2006 08:37:03 +0000 (08:37 +0000)]
Fix command line parsing.

18 years agoremove some unneeded #includes
Brian Paul [Tue, 13 Jun 2006 03:29:02 +0000 (03:29 +0000)]
remove some unneeded #includes

18 years agoFix a few conversion bugs. For example, GLshort->GLfloat conversion
Brian Paul [Tue, 13 Jun 2006 03:22:52 +0000 (03:22 +0000)]
Fix a few conversion bugs.  For example, GLshort->GLfloat conversion
didn't work for color arrays.

18 years agoFix all instances of calling __glXSetupForCommand before GetReqExtra.
Kristian Høgsberg [Tue, 13 Jun 2006 01:41:18 +0000 (01:41 +0000)]
Fix all instances of calling __glXSetupForCommand before GetReqExtra.

18 years agoremoved incorrect const qualifier
Brian Paul [Tue, 13 Jun 2006 01:14:48 +0000 (01:14 +0000)]
removed incorrect const qualifier

18 years agoMake r300 driver build with GL_APPLE_vertex_array_object changes.
Ian Romanick [Mon, 12 Jun 2006 22:39:49 +0000 (22:39 +0000)]
Make r300 driver build with GL_APPLE_vertex_array_object changes.
Sorry for the breakage.  These changes are only build tested.

18 years agoGL_APPLE_vertex_array_object is new
Brian Paul [Mon, 12 Jun 2006 20:02:45 +0000 (20:02 +0000)]
GL_APPLE_vertex_array_object is new

18 years agos/buffer/arrays/
Brian Paul [Mon, 12 Jun 2006 20:02:11 +0000 (20:02 +0000)]
s/buffer/arrays/

18 years agomake do_vertex_attrib_enable() static
Brian Paul [Mon, 12 Jun 2006 19:59:34 +0000 (19:59 +0000)]
make do_vertex_attrib_enable() static

18 years agoinclude glxclient.h to silence missing prototypes warning
Brian Paul [Mon, 12 Jun 2006 19:56:57 +0000 (19:56 +0000)]
include glxclient.h to silence missing prototypes warning

18 years agoremove const qualifier from glGenVertexArraysAPPLE() parameter
Brian Paul [Mon, 12 Jun 2006 19:47:44 +0000 (19:47 +0000)]
remove const qualifier from glGenVertexArraysAPPLE() parameter

18 years agoinclude arrayobj.h
Brian Paul [Mon, 12 Jun 2006 19:46:14 +0000 (19:46 +0000)]
include arrayobj.h

18 years agoremove unused var
Brian Paul [Mon, 12 Jun 2006 19:45:43 +0000 (19:45 +0000)]
remove unused var

18 years agoAdd support for GL_APPLE_vertex_array_object. Several test programs
Ian Romanick [Mon, 12 Jun 2006 16:26:29 +0000 (16:26 +0000)]
Add support for GL_APPLE_vertex_array_object.  Several test programs
and demos are also added.

Adding basic support to drivers should be as easy as just enabling the
extension, though thorough test would also be required.

18 years agofire vertices before context destruction.
Alan Hourihane [Mon, 12 Jun 2006 08:52:29 +0000 (08:52 +0000)]
fire vertices before context destruction.

18 years agodestroy the memory manager along with the context
Tilman Sauerbeck [Sun, 11 Jun 2006 09:12:27 +0000 (09:12 +0000)]
destroy the memory manager along with the context

18 years agoenable arb_vertex_program by default if drm is new enough. Do a fallback when it...
Roland Scheidegger [Sat, 10 Jun 2006 00:51:54 +0000 (00:51 +0000)]
enable arb_vertex_program by default if drm is new enough. Do a fallback when it's a nv_vp as there could be issues.

18 years agoAdded some notes about this implementation.
Claudio Ciccani [Fri, 9 Jun 2006 15:20:26 +0000 (15:20 +0000)]
Added some notes about this implementation.

18 years agoEnable setting invible cursors.
Claudio Ciccani [Fri, 9 Jun 2006 15:19:05 +0000 (15:19 +0000)]
Enable setting invible cursors.

18 years agoSeparated joystick pointer coordinates from mouse pointer coordinates.
Claudio Ciccani [Fri, 9 Jun 2006 15:18:04 +0000 (15:18 +0000)]
Separated joystick pointer coordinates from mouse pointer coordinates.

18 years agoshuffle some code to make some assertions in the _savage_texstore_a111xxxx functions...
Roland Scheidegger [Fri, 9 Jun 2006 00:28:53 +0000 (00:28 +0000)]
shuffle some code to make some assertions in the _savage_texstore_a111xxxx functions compile without error...