Keith Whitwell [Tue, 21 Nov 2006 13:22:34 +0000 (13:22 +0000)]
More fixes, glean seems to run now.
Alan Hourihane [Tue, 21 Nov 2006 10:59:31 +0000 (10:59 +0000)]
Don't define as const's to avoid compiler optimization & warning.
Keith Whitwell [Tue, 21 Nov 2006 10:50:01 +0000 (10:50 +0000)]
Fix more typos.
Keith Whitwell [Tue, 21 Nov 2006 10:43:16 +0000 (10:43 +0000)]
Gary Wong's patches for CopyPixels Logiop (enable) and Blend
(disallow). Slightly cleaned to disallow on all blend states for code
consiseness and turn a table lookup into a function to match other
code in the driver.
Keith Whitwell [Tue, 21 Nov 2006 10:16:37 +0000 (10:16 +0000)]
Gary Wong's fix for 64 bit cleanness of vertex program inputs bitmask.
Keith Whitwell [Tue, 21 Nov 2006 10:11:02 +0000 (10:11 +0000)]
Commit Gary Wong & Keith Packard's changes for bug 8867 -- adjust code
after repositioning of INDEX value in BRW_ATTRIB enum.
Sean D'Epagnier [Tue, 21 Nov 2006 09:35:49 +0000 (09:35 +0000)]
Added correct include files to files,
No longer modify cmap if the device is truecolor (messes up dual monitors
with vt switching)
Sean D'Epagnier [Tue, 21 Nov 2006 08:48:44 +0000 (08:48 +0000)]
glTexCoord3dv was not using third coordinate
Rune Petersen [Mon, 20 Nov 2006 19:57:10 +0000 (19:57 +0000)]
Disable fragment program debug messages.
Brian Paul [Mon, 20 Nov 2006 17:09:04 +0000 (17:09 +0000)]
added new 'sources' file to tarball (might not get used though)
Keith Whitwell [Mon, 20 Nov 2006 15:15:24 +0000 (15:15 +0000)]
Fix typos that meant vbos were never unmapped
Brian Paul [Mon, 20 Nov 2006 15:14:35 +0000 (15:14 +0000)]
fix glPopAttrib/color material bug #9091
Jouk Jansen [Mon, 20 Nov 2006 14:04:04 +0000 (14:04 +0000)]
Committing in .
Solve small definition problem for OpenVMS
Modified Files:
Mesa/src/mesa/shader/descrip.mms
Keith Whitwell [Mon, 20 Nov 2006 11:45:34 +0000 (11:45 +0000)]
Don't perform dangling attribute check on POS attribute. It can't by
definition dangle (every vertex has a position). However
save->currentsz isn't properly maintained for this attribute, as there
is no current position value to track. Reported by Haihao Xiang.
Brian Paul [Sat, 18 Nov 2006 17:45:01 +0000 (17:45 +0000)]
move fix-up code into new slang_fixup_save() function
Brian Paul [Sat, 18 Nov 2006 17:44:28 +0000 (17:44 +0000)]
delete shader objects when destroying shared context state
Brian Paul [Sat, 18 Nov 2006 17:23:30 +0000 (17:23 +0000)]
comments
Brian Paul [Sat, 18 Nov 2006 17:22:44 +0000 (17:22 +0000)]
reindent
Brian Paul [Sat, 18 Nov 2006 16:58:14 +0000 (16:58 +0000)]
additional fixes for mipmap building (Greg McGarragh)
Brian Paul [Sat, 18 Nov 2006 16:44:30 +0000 (16:44 +0000)]
name mangling update/fix
Brian Paul [Sat, 18 Nov 2006 16:43:13 +0000 (16:43 +0000)]
need to specify Xlibs with APP_LIB_DEPS
Brian Paul [Sat, 18 Nov 2006 16:40:09 +0000 (16:40 +0000)]
fix mgl name mangling problem
Rune Petersen [Fri, 17 Nov 2006 19:12:42 +0000 (19:12 +0000)]
fragment.position support
World position is calculated in the vertex shader and passed to the
fragment shader via an unused texcoord.
Rune Petersen [Fri, 17 Nov 2006 19:08:05 +0000 (19:08 +0000)]
r300_select_vertex_shader4:
Makes the vertex program output from the fragment input.
It makes the driver capable of catching output-input mismatches safely. Primarily
based on some of Aapo Tahkola's code.
Brian Paul [Fri, 17 Nov 2006 19:06:32 +0000 (19:06 +0000)]
reindent, doxygen-style comments
Michal Krol [Fri, 17 Nov 2006 18:55:34 +0000 (18:55 +0000)]
Comment and indent the atom functions.
Brian Paul [Fri, 17 Nov 2006 15:59:19 +0000 (15:59 +0000)]
gluBuild2DMipmaps() fixes
Brian Paul [Fri, 17 Nov 2006 15:57:31 +0000 (15:57 +0000)]
fix some gluBuild2DMipmap bugs (Greg McGarragh)
Brian Paul [Fri, 17 Nov 2006 15:23:32 +0000 (15:23 +0000)]
add STATE_INTERNAL_DRIVER, etc (Rune Petersen)
Brian Paul [Thu, 16 Nov 2006 23:34:02 +0000 (23:34 +0000)]
revert prev check-in
Brian Paul [Thu, 16 Nov 2006 22:31:34 +0000 (22:31 +0000)]
Add a lot of const qualifiers for const-correctness.
New comments, misc clean-ups.
Brian Paul [Thu, 16 Nov 2006 21:58:35 +0000 (21:58 +0000)]
reindent
Brian Paul [Thu, 16 Nov 2006 21:40:54 +0000 (21:40 +0000)]
remove unused imesa local var to silence warnings
Brian Paul [Thu, 16 Nov 2006 21:28:35 +0000 (21:28 +0000)]
Initial implementation work for CAL, RET, and BRA instructions for fragment
programs.
Brian Paul [Thu, 16 Nov 2006 20:59:11 +0000 (20:59 +0000)]
disable yesterday's _mesa_add_named_constant() change for now
Brian Paul [Thu, 16 Nov 2006 20:58:26 +0000 (20:58 +0000)]
fix bug 9046
Brian Paul [Thu, 16 Nov 2006 16:13:55 +0000 (16:13 +0000)]
regenerate from gl.h
Brian Paul [Thu, 16 Nov 2006 16:13:43 +0000 (16:13 +0000)]
remove obsolete GL_MESA_trace stuff
Brian Paul [Thu, 16 Nov 2006 16:12:10 +0000 (16:12 +0000)]
use LONGSTRING to silence warning
Brian Paul [Thu, 16 Nov 2006 14:44:23 +0000 (14:44 +0000)]
fix glDrawPixels(GL_COLOR_INDEX, GL_BITMAP) bug 9044
Keith Whitwell [Thu, 16 Nov 2006 02:33:38 +0000 (02:33 +0000)]
Make sure vbo's are mapped before accessing their contents in
api_arrayelt.c. Reported by Haihao Xiang.
Brian Paul [Thu, 16 Nov 2006 00:58:44 +0000 (00:58 +0000)]
reindent, clean-up
Brian Paul [Wed, 15 Nov 2006 23:38:02 +0000 (23:38 +0000)]
Add a size parameter to _mesa_add_unnamed_constant() and
_mesa_add_named_constant() to indicate vector size (1, 2, 3 or 4).
Always 4 for now...
Brian Paul [Wed, 15 Nov 2006 23:19:52 +0000 (23:19 +0000)]
Add new _mesa_lookup_parameter_constant() to search for a GLfloat4 constant
in a parameter list.
Use it in _mesa_add_named_constant() and _mesa_add_unnamed_constant() to
avoid duplication of identical constants.
Brian Paul [Wed, 15 Nov 2006 21:52:20 +0000 (21:52 +0000)]
reindent, add some comments
Brian Paul [Wed, 15 Nov 2006 21:41:24 +0000 (21:41 +0000)]
reindent
Brian Paul [Wed, 15 Nov 2006 21:39:57 +0000 (21:39 +0000)]
indent, comments
Brian Paul [Wed, 15 Nov 2006 21:39:32 +0000 (21:39 +0000)]
s/int/GLboolean/
Brian Paul [Wed, 15 Nov 2006 21:38:26 +0000 (21:38 +0000)]
improved error mesages
Brian Paul [Wed, 15 Nov 2006 21:35:06 +0000 (21:35 +0000)]
fix casts to silence warnings
Brian Paul [Wed, 15 Nov 2006 19:54:25 +0000 (19:54 +0000)]
#define LONGSTRING __extension__ in imports.h and use it to silence gcc
warnings about long string literals.
Brian Paul [Wed, 15 Nov 2006 18:56:48 +0000 (18:56 +0000)]
Comments for operations.
Jerome Glisse [Wed, 15 Nov 2006 17:45:05 +0000 (17:45 +0000)]
Remove use of GetBufferSize (depreciated).
Brian Paul [Wed, 15 Nov 2006 14:59:05 +0000 (14:59 +0000)]
more bug fixes
Keith Whitwell [Tue, 14 Nov 2006 14:22:43 +0000 (14:22 +0000)]
Make sure RENDER_FINISH is called on the zero pixel case. Reported by
Haihao Xiang.
Ian Romanick [Tue, 14 Nov 2006 00:10:34 +0000 (00:10 +0000)]
Enable GLX_SGI_make_current_read for tdfx.
Implement GLX_SGI_make_current_read for tdfx. Remove annoying debug
printf in tdfxSwapBuffers. Updated a comment in drirenderbuffer.h to
note that the tdfx driver uses a flag that was previously only used by
s3v.
This code was tested with glxgears, wincopy, and manywin.
Ian Romanick [Mon, 13 Nov 2006 23:34:35 +0000 (23:34 +0000)]
Clean-up compiler warnings.
Ian Romanick [Mon, 13 Nov 2006 22:54:43 +0000 (22:54 +0000)]
Implement GL_ARB_occlusion_query.
Based on the old code that implemented GL_HP_occlusion_test, implement
GL_ARB_occlusion_query. This code passes progs/demo/arbocclude.
Ian Romanick [Mon, 13 Nov 2006 22:51:11 +0000 (22:51 +0000)]
tdfxDDWriteDepthPixels can be called with mask == NULL.
Via depth_test_pixels (swrast/s_depth.c), tdfxDDWriteDepthPixels can
be called with mask == NULL. Test for this condition in the places
where mask might be dereference. This matches the behavior of several
other functions in this file with a 'const GLubyte mask[]' parameter.
Ian Romanick [Mon, 13 Nov 2006 21:53:04 +0000 (21:53 +0000)]
Major clean-up of tdfxDDGetString.
Ian Romanick [Mon, 13 Nov 2006 21:21:40 +0000 (21:21 +0000)]
Eliminate use of deprecated GetBufferSize interface.
Ian Romanick [Mon, 13 Nov 2006 20:54:51 +0000 (20:54 +0000)]
Fix "3D driver claims to not support visual ..." warnings.
In 16-bit color modes the 3D driver was erroneously creating fbconfigs
with 16-bits of accumulation alpha. Since the 2D driver always
generates modes with zero bits of alpha, the lists of fbconfigs did
not match and warnings were generated by libGL.
Ian Romanick [Fri, 10 Nov 2006 21:11:39 +0000 (21:11 +0000)]
Added information about added GLX_SGI_make_current_read support
Ian Romanick [Fri, 10 Nov 2006 21:06:23 +0000 (21:06 +0000)]
Bump driver date.
Ian Romanick [Fri, 10 Nov 2006 18:57:30 +0000 (18:57 +0000)]
Refactor savageXMesaSet{Back,Front}ClipRects.
Refactor savageXMesaSetBackClipRects and savageXMesaSetFrontClipRects
into a single new routine called savageXMesaSetClipRects. This allows
a few cleanups in the code.
Ian Romanick [Fri, 10 Nov 2006 18:47:22 +0000 (18:47 +0000)]
Enable GLX_SGI_make_current_read.
Eliminate use of deprecated GetBufferSize interface. Keep framebuffer
state associated with the read-drawable and the draw-drawable up to
date.
Tested with progs/demos/wincopy.
Brian Paul [Fri, 10 Nov 2006 12:47:56 +0000 (12:47 +0000)]
fix -noprefix option for Solaris (bug 7722)
Dave Airlie [Fri, 10 Nov 2006 00:32:35 +0000 (00:32 +0000)]
Fix up texture compression at least Get and TexImage, not too sure about
how to fix SubTexImage with compressed textures
Ian Romanick [Fri, 10 Nov 2006 00:14:30 +0000 (00:14 +0000)]
Implement GLX_SGI_make_current_read
Discontinue use of the old GetBuffeSize interface. Track both the
current read-drawable and the current draw-drawable. After moving
some context state to via_rednerbuffer, GLX_SGI_make_current_read can
be enabled.
The extension works, but the wincopy test prodcues a black window for
the destination window. After messing around with the window and
looking at the code, I believe the problem is in the handling of
buffer swap requests on a drawable that isn't the current draw-drawable.
Ian Romanick [Thu, 9 Nov 2006 22:28:09 +0000 (22:28 +0000)]
Remove unnecessary setting of GetBufferSize to NULL.
Adam Jackson [Thu, 9 Nov 2006 20:47:22 +0000 (20:47 +0000)]
Fix some && (logical) that should clearly have been & (bitwise).
Dave Airlie [Wed, 8 Nov 2006 22:25:52 +0000 (22:25 +0000)]
remove drm stuff from libGL, this is now in libdrm 2.3.0
Roland Scheidegger [Sun, 5 Nov 2006 23:13:19 +0000 (23:13 +0000)]
fix vp lockups due to incorrectly set up / emitted attrib inputs.
Roland Scheidegger [Sun, 5 Nov 2006 22:21:11 +0000 (22:21 +0000)]
fix using VERT_ATTRIB_WEIGHT instead of VERT_BIT_WEIGHT when assigning vp inputs.
Brian Paul [Sun, 5 Nov 2006 15:30:41 +0000 (15:30 +0000)]
reindent
Jerome Glisse [Sun, 5 Nov 2006 00:47:27 +0000 (00:47 +0000)]
Add sin instruction to fragment program.
There is a bug somewhere in fragment program.
tri-cos and tri-sin show the bug. Also we
should not emit multiple time the same constant.
for sin,cos,lit have to fix that.
Jerome Glisse [Sat, 4 Nov 2006 23:50:27 +0000 (23:50 +0000)]
Add cos instruction and remove left over debug.
Brian Paul [Sat, 4 Nov 2006 17:31:45 +0000 (17:31 +0000)]
Fix for glGetVertexAttribfvNV, bug 8883
Brian Paul [Sat, 4 Nov 2006 17:31:21 +0000 (17:31 +0000)]
fix error msg
Brian Paul [Sat, 4 Nov 2006 17:28:38 +0000 (17:28 +0000)]
fix for glGetVertexAttribfvARB, bug 8883
Brian Paul [Fri, 3 Nov 2006 23:43:14 +0000 (23:43 +0000)]
#define _glapi_Dispatch _mglapi_Dispatch when USE_MGL_NAMESPACE is set.
Brian Paul [Fri, 3 Nov 2006 23:32:30 +0000 (23:32 +0000)]
Fix _mesa_IsProgram() and _mesa_IsShader()
Brian Paul [Fri, 3 Nov 2006 23:28:36 +0000 (23:28 +0000)]
check for USE_MGL_NAMESPACE
Brian Paul [Fri, 3 Nov 2006 22:23:47 +0000 (22:23 +0000)]
implement _mesa_GetShaderiv()
Brian Paul [Fri, 3 Nov 2006 22:15:43 +0000 (22:15 +0000)]
implement _mesa_GetProgramiv()
Brian Paul [Fri, 3 Nov 2006 21:51:58 +0000 (21:51 +0000)]
Simplify GET_CURRENT_LINKED_PROGRAM() macro and calling code.
Brian Paul [Fri, 3 Nov 2006 21:30:16 +0000 (21:30 +0000)]
Use inlined uniform() helper function in all the glUniform*() function to
reduce duplicated code.
Finish up _program_ReadUniform() for non-float types.
Implement _mesa_GetUniformivARB().
Simplify the _program_WriteUniform() function a bit.
Brian Paul [Fri, 3 Nov 2006 20:25:44 +0000 (20:25 +0000)]
plug in 2.0, 2.1 functions
Brian Paul [Fri, 3 Nov 2006 20:20:28 +0000 (20:20 +0000)]
Added OpenGL 2.1 entrypoints.
Brian Paul [Fri, 3 Nov 2006 19:55:01 +0000 (19:55 +0000)]
Set DO_DEBUG=0
Brian Paul [Fri, 3 Nov 2006 19:54:40 +0000 (19:54 +0000)]
only enabled memcpy timing if DO_DEBUG=1
Brian Paul [Fri, 3 Nov 2006 18:35:52 +0000 (18:35 +0000)]
replace CONFIG_H with MESA_CONFIG_H_INCLUDED
Brian Paul [Fri, 3 Nov 2006 18:29:39 +0000 (18:29 +0000)]
added 1.3/1.4 function mangling
Brian Paul [Fri, 3 Nov 2006 17:43:20 +0000 (17:43 +0000)]
assorted updates for 6.5.2
Brian Paul [Fri, 3 Nov 2006 17:29:31 +0000 (17:29 +0000)]
Added OpenGL 2.1 glUniformMatrix* functions.
Refactor the _mesa_UniformMatrix() functions to use a helper function.
Implement GetUniformfv function (might need more work someday).
Brian Paul [Fri, 3 Nov 2006 17:18:05 +0000 (17:18 +0000)]
reformat comments in Doxygen style
Brian Paul [Fri, 3 Nov 2006 16:50:22 +0000 (16:50 +0000)]
reindent
Brian Paul [Fri, 3 Nov 2006 15:18:17 +0000 (15:18 +0000)]
Minor changes to get ready for OpenGL 2.1.
Roland Scheidegger [Fri, 3 Nov 2006 12:48:18 +0000 (12:48 +0000)]
enable generic arrays for r200 hw vertex programs by assigning unused color and texture inputs to them. Not widely tested yet. This should eliminate all fallbacks due to vertex programs, except writes to back facing colors, or when exceeding a hw limit (12 temps, 12 attribs etc.).
Roland Scheidegger [Fri, 3 Nov 2006 02:07:34 +0000 (02:07 +0000)]
remove setting some driver funcs explicitly to NULL, as they are no longer set up later. Thix fixes a segfault in _mesa_Bitmap().