mesa.git
17 years agoFix the fifo debugging feature.
Stephane Marchesin [Sun, 19 Nov 2006 21:29:41 +0000 (21:29 +0000)]
Fix the fifo debugging feature.

17 years agoNew swtcl implementation. It's simpler than the previous one (doesn't use
Stephane Marchesin [Sun, 19 Nov 2006 20:18:45 +0000 (20:18 +0000)]
New swtcl implementation. It's simpler than the previous one (doesn't use
    templates) and it is probably faster as well

17 years agoDon't bother touching lighting stuff if shaders are in use
Ben Skeggs [Sun, 19 Nov 2006 16:05:59 +0000 (16:05 +0000)]
Don't bother touching lighting stuff if shaders are in use

17 years agoFix nv30LineWidth, hw expects a ubyte.
Ben Skeggs [Sun, 19 Nov 2006 15:52:18 +0000 (15:52 +0000)]
Fix nv30LineWidth, hw expects a ubyte.

17 years agoAvoid sharing subchannels with the ddx until context switching is done
Ben Skeggs [Sun, 19 Nov 2006 15:46:31 +0000 (15:46 +0000)]
Avoid sharing subchannels with the ddx until context switching is done
    properly..

17 years agoMore FIFO fixes.
Ben Skeggs [Sun, 19 Nov 2006 15:45:36 +0000 (15:45 +0000)]
More FIFO fixes.

17 years agoStupid bug..
Ben Skeggs [Sun, 19 Nov 2006 14:10:54 +0000 (14:10 +0000)]
Stupid bug..

17 years agopoke the correct FIFO regs
Ben Skeggs [Sun, 19 Nov 2006 12:00:59 +0000 (12:00 +0000)]
poke the correct FIFO regs

17 years agomove fix-up code into new slang_fixup_save() function
Brian Paul [Sat, 18 Nov 2006 17:45:01 +0000 (17:45 +0000)]
move fix-up code into new slang_fixup_save() function

17 years agodelete shader objects when destroying shared context state
Brian Paul [Sat, 18 Nov 2006 17:44:28 +0000 (17:44 +0000)]
delete shader objects when destroying shared context state

17 years agocomments
Brian Paul [Sat, 18 Nov 2006 17:23:30 +0000 (17:23 +0000)]
comments

17 years agoreindent
Brian Paul [Sat, 18 Nov 2006 17:22:44 +0000 (17:22 +0000)]
reindent

17 years agoadditional fixes for mipmap building (Greg McGarragh)
Brian Paul [Sat, 18 Nov 2006 16:58:14 +0000 (16:58 +0000)]
additional fixes for mipmap building (Greg McGarragh)

17 years agoname mangling update/fix
Brian Paul [Sat, 18 Nov 2006 16:44:30 +0000 (16:44 +0000)]
name mangling update/fix

17 years agoneed to specify Xlibs with APP_LIB_DEPS
Brian Paul [Sat, 18 Nov 2006 16:43:13 +0000 (16:43 +0000)]
need to specify Xlibs with APP_LIB_DEPS

17 years agofix mgl name mangling problem
Brian Paul [Sat, 18 Nov 2006 16:40:09 +0000 (16:40 +0000)]
fix mgl name mangling problem

17 years agoMore state functions
Stephane Marchesin [Sat, 18 Nov 2006 00:36:22 +0000 (00:36 +0000)]
More state functions

17 years agoAdd nv20_state.c ; hook nv10_state.c into the build ; do the renaming
Stephane Marchesin [Sat, 18 Nov 2006 00:19:22 +0000 (00:19 +0000)]
Add nv20_state.c ; hook nv10_state.c into the build ; do the renaming
    required by the renouveau changes.

17 years agoSmall unneeded nv03 fix
Stephane Marchesin [Fri, 17 Nov 2006 22:11:13 +0000 (22:11 +0000)]
Small unneeded nv03 fix

17 years agoUse RENDERINPUTS macros to access render_inputs_bitset
Ben Skeggs [Fri, 17 Nov 2006 21:58:02 +0000 (21:58 +0000)]
Use RENDERINPUTS macros to access render_inputs_bitset

17 years agofragment.position support
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.

17 years agor300_select_vertex_shader4:
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.

17 years agoreindent, doxygen-style comments
Brian Paul [Fri, 17 Nov 2006 19:06:32 +0000 (19:06 +0000)]
reindent, doxygen-style comments

17 years agoComment and indent the atom functions.
Michal Krol [Fri, 17 Nov 2006 18:55:34 +0000 (18:55 +0000)]
Comment and indent the atom functions.

17 years agogluBuild2DMipmaps() fixes
Brian Paul [Fri, 17 Nov 2006 15:59:19 +0000 (15:59 +0000)]
gluBuild2DMipmaps() fixes

17 years agofix some gluBuild2DMipmap bugs (Greg McGarragh)
Brian Paul [Fri, 17 Nov 2006 15:57:31 +0000 (15:57 +0000)]
fix some gluBuild2DMipmap bugs (Greg McGarragh)

17 years agoadd STATE_INTERNAL_DRIVER, etc (Rune Petersen)
Brian Paul [Fri, 17 Nov 2006 15:23:32 +0000 (15:23 +0000)]
add STATE_INTERNAL_DRIVER, etc (Rune Petersen)

17 years agoAdapt FIFO code to deal with cases where the base GET/PUT value isn't 0.
Ben Skeggs [Fri, 17 Nov 2006 04:50:37 +0000 (04:50 +0000)]
Adapt FIFO code to deal with cases where the base GET/PUT value isn't 0.

17 years agojkolb pointed out that face can also be FRONT_AND_BACK. Added stencil funcs
Ben Skeggs [Thu, 16 Nov 2006 23:43:39 +0000 (23:43 +0000)]
jkolb pointed out that face can also be FRONT_AND_BACK. Added stencil funcs

17 years agorevert prev check-in
Brian Paul [Thu, 16 Nov 2006 23:34:02 +0000 (23:34 +0000)]
revert prev check-in

17 years agoAdd nv30InitStateFuncs
Ben Skeggs [Thu, 16 Nov 2006 23:24:20 +0000 (23:24 +0000)]
Add nv30InitStateFuncs

17 years agoAdd a lot of const qualifiers for const-correctness.
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.

17 years agoreindent
Brian Paul [Thu, 16 Nov 2006 21:58:35 +0000 (21:58 +0000)]
reindent

17 years agoremove unused imesa local var to silence warnings
Brian Paul [Thu, 16 Nov 2006 21:40:54 +0000 (21:40 +0000)]
remove unused imesa local var to silence warnings

17 years agoInitial implementation work for CAL, RET, and BRA instructions for fragment
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.

17 years agodisable yesterday's _mesa_add_named_constant() change for now
Brian Paul [Thu, 16 Nov 2006 20:59:11 +0000 (20:59 +0000)]
disable yesterday's _mesa_add_named_constant() change for now

17 years agofix bug 9046
Brian Paul [Thu, 16 Nov 2006 20:58:26 +0000 (20:58 +0000)]
fix bug 9046

17 years agonv10 state copy/pasted from nv30 state
Patrice Mandin [Thu, 16 Nov 2006 19:50:56 +0000 (19:50 +0000)]
nv10 state copy/pasted from nv30 state

17 years agoregenerate from gl.h
Brian Paul [Thu, 16 Nov 2006 16:13:55 +0000 (16:13 +0000)]
regenerate from gl.h

17 years agoremove obsolete GL_MESA_trace stuff
Brian Paul [Thu, 16 Nov 2006 16:13:43 +0000 (16:13 +0000)]
remove obsolete GL_MESA_trace stuff

17 years agouse LONGSTRING to silence warning
Brian Paul [Thu, 16 Nov 2006 16:12:10 +0000 (16:12 +0000)]
use LONGSTRING to silence warning

17 years agofix glDrawPixels(GL_COLOR_INDEX, GL_BITMAP) bug 9044
Brian Paul [Thu, 16 Nov 2006 14:44:23 +0000 (14:44 +0000)]
fix glDrawPixels(GL_COLOR_INDEX, GL_BITMAP) bug 9044

17 years agoMake sure vbo's are mapped before accessing their contents in
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.

17 years agoreindent, clean-up
Brian Paul [Thu, 16 Nov 2006 00:58:44 +0000 (00:58 +0000)]
reindent, clean-up

17 years agoAdd a size parameter to _mesa_add_unnamed_constant() and
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...

17 years agoAdd new _mesa_lookup_parameter_constant() to search for a GLfloat4 constant
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.

17 years agoreindent, add some comments
Brian Paul [Wed, 15 Nov 2006 21:52:20 +0000 (21:52 +0000)]
reindent, add some comments

17 years agoreindent
Brian Paul [Wed, 15 Nov 2006 21:41:24 +0000 (21:41 +0000)]
reindent

17 years agoindent, comments
Brian Paul [Wed, 15 Nov 2006 21:39:57 +0000 (21:39 +0000)]
indent, comments

17 years agos/int/GLboolean/
Brian Paul [Wed, 15 Nov 2006 21:39:32 +0000 (21:39 +0000)]
s/int/GLboolean/

17 years agoimproved error mesages
Brian Paul [Wed, 15 Nov 2006 21:38:26 +0000 (21:38 +0000)]
improved error mesages

17 years agofix casts to silence warnings
Brian Paul [Wed, 15 Nov 2006 21:35:06 +0000 (21:35 +0000)]
fix casts to silence warnings

17 years ago#define LONGSTRING __extension__ in imports.h and use it to silence gcc
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.

17 years agoComments for operations.
Brian Paul [Wed, 15 Nov 2006 18:56:48 +0000 (18:56 +0000)]
Comments for operations.

17 years agoRemove use of GetBufferSize (depreciated).
Jerome Glisse [Wed, 15 Nov 2006 17:45:05 +0000 (17:45 +0000)]
Remove use of GetBufferSize (depreciated).

17 years agomore bug fixes
Brian Paul [Wed, 15 Nov 2006 14:59:05 +0000 (14:59 +0000)]
more bug fixes

17 years agoMake sure RENDER_FINISH is called on the zero pixel case. Reported by
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.

17 years agoEnable GLX_SGI_make_current_read for tdfx.
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.

17 years agoClean-up compiler warnings.
Ian Romanick [Mon, 13 Nov 2006 23:34:35 +0000 (23:34 +0000)]
Clean-up compiler warnings.

17 years agoImplement GL_ARB_occlusion_query.
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.

17 years agotdfxDDWriteDepthPixels can be called with mask == NULL.
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.

17 years agoMajor clean-up of tdfxDDGetString.
Ian Romanick [Mon, 13 Nov 2006 21:53:04 +0000 (21:53 +0000)]
Major clean-up of tdfxDDGetString.

17 years agoEliminate use of deprecated GetBufferSize interface.
Ian Romanick [Mon, 13 Nov 2006 21:21:40 +0000 (21:21 +0000)]
Eliminate use of deprecated GetBufferSize interface.

17 years agoFix "3D driver claims to not support visual ..." warnings.
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.

17 years agoFix segfault in nouveauCalcViewport
Ben Skeggs [Mon, 13 Nov 2006 16:01:03 +0000 (16:01 +0000)]
Fix segfault in nouveauCalcViewport

17 years agoAdd include guard.
Jeremy Kolb [Sun, 12 Nov 2006 18:18:02 +0000 (18:18 +0000)]
Add include guard.

17 years agoSome more nouveau_screen.c setup, not sure how correct it is yet though..
Ben Skeggs [Sun, 12 Nov 2006 08:38:44 +0000 (08:38 +0000)]
Some more nouveau_screen.c setup, not sure how correct it is yet though..

17 years agoWe need nmesa->driFd and friends setup before we call nouveauFifoInit
Ben Skeggs [Sun, 12 Nov 2006 02:06:30 +0000 (02:06 +0000)]
We need nmesa->driFd and friends setup before we call nouveauFifoInit

17 years agoDont call exit() from the DRI driver, with AIGLX this is particularly nasty
Ben Skeggs [Sun, 12 Nov 2006 02:05:40 +0000 (02:05 +0000)]
Dont call exit() from the DRI driver, with AIGLX this is particularly nasty

17 years agofix typo
Ben Skeggs [Sat, 11 Nov 2006 20:00:29 +0000 (20:00 +0000)]
fix typo

17 years agoSome nouveau_screen work for darktama
Stephane Marchesin [Sat, 11 Nov 2006 18:25:00 +0000 (18:25 +0000)]
Some nouveau_screen work for darktama

17 years agoFill in nv30PointSize and nv30Viewport.
Jeremy Kolb [Sat, 11 Nov 2006 16:48:14 +0000 (16:48 +0000)]
Fill in nv30PointSize and nv30Viewport.

17 years agoFix the texture init function name
Stephane Marchesin [Sat, 11 Nov 2006 12:01:48 +0000 (12:01 +0000)]
Fix the texture init function name

17 years agoAdd the GL_LIGHING enable
Stephane Marchesin [Sat, 11 Nov 2006 11:25:08 +0000 (11:25 +0000)]
Add the GL_LIGHING enable

17 years agoSome work on nv30 state, heavily based on jkolb's work
Stephane Marchesin [Sat, 11 Nov 2006 00:00:45 +0000 (00:00 +0000)]
Some work on nv30 state, heavily based on jkolb's work

17 years agoAdded information about added GLX_SGI_make_current_read support
Ian Romanick [Fri, 10 Nov 2006 21:11:39 +0000 (21:11 +0000)]
Added information about added GLX_SGI_make_current_read support

17 years agoBump driver date.
Ian Romanick [Fri, 10 Nov 2006 21:06:23 +0000 (21:06 +0000)]
Bump driver date.

17 years agoRefactor savageXMesaSet{Back,Front}ClipRects.
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.

17 years agoEnable GLX_SGI_make_current_read.
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.

17 years agofix -noprefix option for Solaris (bug 7722)
Brian Paul [Fri, 10 Nov 2006 12:47:56 +0000 (12:47 +0000)]
fix -noprefix option for Solaris (bug 7722)

17 years agoFix up texture compression at least Get and TexImage, not too sure about
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

17 years agoImplement GLX_SGI_make_current_read
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.

17 years agoRemove unnecessary setting of GetBufferSize to NULL.
Ian Romanick [Thu, 9 Nov 2006 22:28:09 +0000 (22:28 +0000)]
Remove unnecessary setting of GetBufferSize to NULL.

17 years agoFix some && (logical) that should clearly have been & (bitwise).
Adam Jackson [Thu, 9 Nov 2006 20:47:22 +0000 (20:47 +0000)]
Fix some && (logical) that should clearly have been & (bitwise).

17 years agoremove drm stuff from libGL, this is now in libdrm 2.3.0
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

17 years agoCommit a small nitpick
Stephane Marchesin [Tue, 7 Nov 2006 17:37:22 +0000 (17:37 +0000)]
Commit a small nitpick

17 years agofix vp lockups due to incorrectly set up / emitted attrib inputs.
Roland Scheidegger [Sun, 5 Nov 2006 23:13:19 +0000 (23:13 +0000)]
fix vp lockups due to incorrectly set up / emitted attrib inputs.

17 years agofix using VERT_ATTRIB_WEIGHT instead of VERT_BIT_WEIGHT when assigning vp 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.

17 years agoreindent
Brian Paul [Sun, 5 Nov 2006 15:30:41 +0000 (15:30 +0000)]
reindent

17 years agoArchitect the DRI :
Stephane Marchesin [Sun, 5 Nov 2006 13:46:48 +0000 (13:46 +0000)]
Architect the DRI :
- make use of the autogenerated nouveau_reg.h file
- add object creation to the DRI
- some work on screen and context creation

17 years agoAdd sin instruction to fragment program.
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.

17 years agoAdd cos instruction and remove left over debug.
Jerome Glisse [Sat, 4 Nov 2006 23:50:27 +0000 (23:50 +0000)]
Add cos instruction and remove left over debug.

17 years agoFix for glGetVertexAttribfvNV, bug 8883
Brian Paul [Sat, 4 Nov 2006 17:31:45 +0000 (17:31 +0000)]
Fix for glGetVertexAttribfvNV, bug 8883

17 years agofix error msg
Brian Paul [Sat, 4 Nov 2006 17:31:21 +0000 (17:31 +0000)]
fix error msg

17 years agofix for glGetVertexAttribfvARB, bug 8883
Brian Paul [Sat, 4 Nov 2006 17:28:38 +0000 (17:28 +0000)]
fix for glGetVertexAttribfvARB, bug 8883

17 years ago#define _glapi_Dispatch _mglapi_Dispatch when USE_MGL_NAMESPACE is set.
Brian Paul [Fri, 3 Nov 2006 23:43:14 +0000 (23:43 +0000)]
#define _glapi_Dispatch _mglapi_Dispatch when USE_MGL_NAMESPACE is set.

17 years agoFix _mesa_IsProgram() and _mesa_IsShader()
Brian Paul [Fri, 3 Nov 2006 23:32:30 +0000 (23:32 +0000)]
Fix _mesa_IsProgram() and _mesa_IsShader()

17 years agocheck for USE_MGL_NAMESPACE
Brian Paul [Fri, 3 Nov 2006 23:28:36 +0000 (23:28 +0000)]
check for USE_MGL_NAMESPACE

17 years agoimplement _mesa_GetShaderiv()
Brian Paul [Fri, 3 Nov 2006 22:23:47 +0000 (22:23 +0000)]
implement _mesa_GetShaderiv()

17 years agoimplement _mesa_GetProgramiv()
Brian Paul [Fri, 3 Nov 2006 22:15:43 +0000 (22:15 +0000)]
implement _mesa_GetProgramiv()