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

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

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

17 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

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

17 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).

17 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

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

17 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

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

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

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

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

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

17 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

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

17 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
 ----------------------------------------------------------------------

17 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

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

17 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

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

17 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

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

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

17 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*

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

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

17 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

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

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

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

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

17 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

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

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

17 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/

17 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()

17 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

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

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

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

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

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

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

17 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

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

17 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

17 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

17 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

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

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

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

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

17 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

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

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

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

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

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

17 years agoadded info about prerequisites for building DRI drivers
Brian Paul [Thu, 8 Jun 2006 23:42:07 +0000 (23:42 +0000)]
added info about prerequisites for building DRI drivers

17 years agofix glBegin error test
Brian Paul [Thu, 8 Jun 2006 23:12:58 +0000 (23:12 +0000)]
fix glBegin error test

17 years agocheck for invalid mode in glBegin(), bug 7142
Brian Paul [Thu, 8 Jun 2006 23:11:35 +0000 (23:11 +0000)]
check for invalid mode in glBegin(), bug 7142

17 years agoinclude tnl/tnl.h for _tnl_program_string()
Tilman Sauerbeck [Thu, 8 Jun 2006 21:17:08 +0000 (21:17 +0000)]
include tnl/tnl.h for _tnl_program_string()

17 years agomark ARL operand as scalar (Roland Scheidegger)
Tilman Sauerbeck [Thu, 8 Jun 2006 21:12:21 +0000 (21:12 +0000)]
mark ARL operand as scalar (Roland Scheidegger)

17 years agostruct op_names: get rid of the 'output operands' field as it's not used (Roland...
Tilman Sauerbeck [Thu, 8 Jun 2006 21:09:17 +0000 (21:09 +0000)]
struct op_names: get rid of the 'output operands' field as it's not used (Roland Scheidegger)

17 years agolinks to ClosedGL and S3TC library
Brian Paul [Thu, 8 Jun 2006 19:59:41 +0000 (19:59 +0000)]
links to ClosedGL and S3TC library

17 years agoImprove slightly wrong CMP_SRCS test to avoid unencessary instructions. Clean up...
Roland Scheidegger [Thu, 8 Jun 2006 17:46:21 +0000 (17:46 +0000)]
Improve slightly wrong CMP_SRCS test to avoid unencessary instructions. Clean up the r200 vertex program code a bit.

17 years agoupdated Pixmap vs. XImage info
Brian Paul [Wed, 7 Jun 2006 14:01:31 +0000 (14:01 +0000)]
updated Pixmap vs. XImage info

17 years agoprevent possible program mix up with sw vps (Roland Scheidegger)
Aapo Tahkola [Tue, 6 Jun 2006 23:44:05 +0000 (23:44 +0000)]
prevent possible program mix up with sw vps (Roland Scheidegger)

17 years agoprevent run_arb_vertex_program from running tnl programs unless ctx->_MaintainTnlProg...
Aapo Tahkola [Tue, 6 Jun 2006 22:24:12 +0000 (22:24 +0000)]
prevent run_arb_vertex_program from running tnl programs unless ctx->_MaintainTnlProgram is set

17 years agomake sure tex format is supported.
Aapo Tahkola [Tue, 6 Jun 2006 18:37:45 +0000 (18:37 +0000)]
make sure tex format is supported.

17 years agovarious fixes (Roland Scheidegger)
Aapo Tahkola [Tue, 6 Jun 2006 18:25:47 +0000 (18:25 +0000)]
various fixes (Roland Scheidegger)

17 years agoAdded simple lookup_bufferobj() function to wrap the _mesa_HashLookup() call
Brian Paul [Sat, 3 Jun 2006 15:32:27 +0000 (15:32 +0000)]
Added simple lookup_bufferobj() function to wrap the _mesa_HashLookup() call
and cast.  Simplifies the code a little bit elsewhere.

17 years agoupdates for using libdrm (Hanno Bock)
Brian Paul [Sat, 3 Jun 2006 15:17:07 +0000 (15:17 +0000)]
updates for using libdrm (Hanno Bock)

17 years agominor clean-ups
Brian Paul [Fri, 2 Jun 2006 22:51:45 +0000 (22:51 +0000)]
minor clean-ups

17 years agoimplement arb_vertex_program in hw for r200. Code contains still some hacks, generic...
Roland Scheidegger [Fri, 2 Jun 2006 22:47:31 +0000 (22:47 +0000)]
implement arb_vertex_program in hw for r200. Code contains still some hacks, generic attribs cause a fallback, but otherwise it seems to work quite well. Passes all glean vertProg1 tests with the exception of the degnerated LIT case (which is a hw limitation), as well as runs the r200 render path of doom3/quake4 (1.1 patch needed for quake4). The code is heavily borrowed from the r300 driver as vertex programs encoding is almost identical. arb_vertex_program is not yet announced by default and still needs to be enabled via driconf.

17 years agoThomas Sondergaard's API tracer
Brian Paul [Fri, 2 Jun 2006 14:50:28 +0000 (14:50 +0000)]
Thomas Sondergaard's API tracer

17 years agoset per-context GL_DRAW_BUFFER state regardless of currently bound FBO
Brian Paul [Fri, 2 Jun 2006 12:51:56 +0000 (12:51 +0000)]
set per-context GL_DRAW_BUFFER state regardless of currently bound FBO

17 years agofix depth-format rectangular textures
Brian Paul [Fri, 2 Jun 2006 12:47:42 +0000 (12:47 +0000)]
fix depth-format rectangular textures

17 years agofix depth-component test to allow rectangular textures
Brian Paul [Fri, 2 Jun 2006 12:46:53 +0000 (12:46 +0000)]
fix depth-component test to allow rectangular textures

17 years agoremove code dealing with drmMinor version < 6 since all radeon drivers request at...
Roland Scheidegger [Fri, 2 Jun 2006 01:52:54 +0000 (01:52 +0000)]
remove code dealing with drmMinor version < 6 since all radeon drivers request at least drmMinor 6 anyway.

17 years agoretry on EBUSY instead of EAGAIN in radeonWaitIrq (it appears this was the intention...
Roland Scheidegger [Thu, 1 Jun 2006 23:21:43 +0000 (23:21 +0000)]
retry on EBUSY instead of EAGAIN in radeonWaitIrq (it appears this was the intention as drm seems to never return EAGAIN) in all radeon drivers.

17 years agoFix extended swizzling in vertex programs by introducing special swizzle instruction...
Roland Scheidegger [Thu, 1 Jun 2006 22:56:40 +0000 (22:56 +0000)]
Fix extended swizzling in vertex programs by introducing special swizzle instruction, extend the 2 bit rsw field to 3 bit like used in other places. While here, also fix up rsw (negation), dph and try to fix up rsq with negative values (doesn't work, bug seems elsewhere) in the sse codegen code.

17 years agodocument MESA_TEX/TNL_PROG env vars
Brian Paul [Thu, 1 Jun 2006 20:22:30 +0000 (20:22 +0000)]
document MESA_TEX/TNL_PROG env vars

18 years agofix extension_supported() function, added comments
Brian Paul [Wed, 31 May 2006 20:36:52 +0000 (20:36 +0000)]
fix extension_supported() function, added comments

18 years agoSWZ is nearly identical to MOV. the difference is that SWZ supports per-component...
Tilman Sauerbeck [Wed, 31 May 2006 17:57:14 +0000 (17:57 +0000)]
SWZ is nearly identical to MOV. the difference is that SWZ supports per-component negation, which MOV doesn't. as that's handled transparently, we can use the same code for them.

18 years agopass src->NegateBase as-is in t_src() now, as the flags are equivalent to r300's...
Tilman Sauerbeck [Wed, 31 May 2006 17:37:23 +0000 (17:37 +0000)]
pass src->NegateBase as-is in t_src() now, as the flags are equivalent to r300's VSF_FLAGs now

18 years agoUpdated config file.
Claudio Ciccani [Wed, 31 May 2006 17:06:05 +0000 (17:06 +0000)]
Updated config file.

18 years agoAdded some example progs using DirectFBGL.
Claudio Ciccani [Wed, 31 May 2006 17:05:11 +0000 (17:05 +0000)]
Added some example progs using DirectFBGL.

18 years agoAdded DirectFB GLUT implementation.
Claudio Ciccani [Wed, 31 May 2006 17:02:45 +0000 (17:02 +0000)]
Added DirectFB GLUT implementation.

18 years agoFixed bug with multiple contexts.
Claudio Ciccani [Wed, 31 May 2006 17:00:10 +0000 (17:00 +0000)]
Fixed bug with multiple contexts.
Added support for ARGB4444 and ARGB2554.
Added hardware accelerated Clear().

18 years agofix bug 7077 - mem leak
Brian Paul [Tue, 30 May 2006 22:26:21 +0000 (22:26 +0000)]
fix bug 7077 - mem leak

18 years agoDefine new NEGATE_* tokens for setting the src register's NegateBase field.
Brian Paul [Tue, 30 May 2006 22:17:35 +0000 (22:17 +0000)]
Define new NEGATE_* tokens for setting the src register's NegateBase field.
Before, we were using GL_TRUE/GL_FALSE in a few places.
Note: only the SWZ instruction can negate individual components.

18 years agoremove redundant 'const'
Brian Paul [Tue, 30 May 2006 22:15:24 +0000 (22:15 +0000)]
remove redundant 'const'

18 years agofree convolved image / fix mem leak (bug 7077)
Brian Paul [Tue, 30 May 2006 21:58:55 +0000 (21:58 +0000)]
free convolved image / fix mem leak (bug 7077)

18 years agominor code cleanup, no actual changes
Tilman Sauerbeck [Tue, 30 May 2006 18:49:20 +0000 (18:49 +0000)]
minor code cleanup, no actual changes

18 years agodon't generate GL_INVALID_ENUM if GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB, which...
Tilman Sauerbeck [Tue, 30 May 2006 16:57:52 +0000 (16:57 +0000)]
don't generate GL_INVALID_ENUM if GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB, which is actually handled

18 years agoAdd x86sse.h.
Michal Krol [Tue, 30 May 2006 09:59:05 +0000 (09:59 +0000)]
Add x86sse.h.

18 years agoRemove not needed forward declaration.
Michal Krol [Tue, 30 May 2006 09:45:33 +0000 (09:45 +0000)]
Remove not needed forward declaration.

18 years agoMake it running under Linux.
Michal Krol [Tue, 30 May 2006 09:38:16 +0000 (09:38 +0000)]
Make it running under Linux.