platform/upstream/mesa.git
18 years agoremove unused ctx var
Brian Paul [Fri, 16 Sep 2005 18:18:47 +0000 (18:18 +0000)]
remove unused ctx var

18 years agouse mesa import wrappers, bug 4468
Brian Paul [Fri, 16 Sep 2005 18:14:24 +0000 (18:14 +0000)]
use mesa import wrappers, bug 4468

18 years agoalphabetize
Brian Paul [Fri, 16 Sep 2005 04:18:09 +0000 (04:18 +0000)]
alphabetize

18 years agoRework the texture filtering functions a bit.
Brian Paul [Fri, 16 Sep 2005 04:16:48 +0000 (04:16 +0000)]
Rework the texture filtering functions a bit.
No need to pass the texture unit number as an argument.

18 years agoreplace a couple macros with inlined functions
Brian Paul [Fri, 16 Sep 2005 01:42:07 +0000 (01:42 +0000)]
replace a couple macros with inlined functions

18 years agomore GLuint->GLbitfield changes
Brian Paul [Fri, 16 Sep 2005 01:41:03 +0000 (01:41 +0000)]
more GLuint->GLbitfield changes

18 years agoReplace GLuint with GLbitfield where appropriate. Also replace GLuint
Brian Paul [Thu, 15 Sep 2005 05:00:45 +0000 (05:00 +0000)]
Replace GLuint with GLbitfield where appropriate.  Also replace GLuint
with GLboolean in a few places.

18 years agoCode clean-ups, reorg.
Brian Paul [Thu, 15 Sep 2005 03:58:52 +0000 (03:58 +0000)]
Code clean-ups, reorg.

18 years agosilence warning
Brian Paul [Thu, 15 Sep 2005 01:58:39 +0000 (01:58 +0000)]
silence warning

18 years agoRemove a bunch texel fetch functions that can be handled by the new
Brian Paul [Thu, 15 Sep 2005 01:55:40 +0000 (01:55 +0000)]
Remove a bunch texel fetch functions that can be handled by the new
adaptor functions.

18 years agoupdated comments
Brian Paul [Thu, 15 Sep 2005 01:08:24 +0000 (01:08 +0000)]
updated comments

18 years agoNew set_fetch_functions() to set a gl_texture_image's FetchTexel functions
Brian Paul [Thu, 15 Sep 2005 01:06:19 +0000 (01:06 +0000)]
New set_fetch_functions() to set a gl_texture_image's FetchTexel functions
from the gl_texture_format's functions.
Added "adaptor" functions to allow sampling a float-valued texture with
GLchans and vice versa.  This will allow trimming down the number of
texture fetch routines.

18 years agoreplace s_texture.[ch] with s_texcombine.[ch] and s_texfilter.[ch]
Brian Paul [Thu, 15 Sep 2005 01:00:20 +0000 (01:00 +0000)]
replace s_texture.[ch] with s_texcombine.[ch] and s_texfilter.[ch]

18 years agoUpdate includes post-splitting of s_texture.c
Brian Paul [Thu, 15 Sep 2005 00:58:03 +0000 (00:58 +0000)]
Update includes post-splitting of s_texture.c

18 years agoSplit the s_texture.c file into two new files:
Brian Paul [Thu, 15 Sep 2005 00:57:00 +0000 (00:57 +0000)]
Split the s_texture.c file into two new files:
  s_texcombine.c - for texture combining/application
  s_texfilter.c - for texture sampling/filtering

18 years agoremove unused vars
Brian Paul [Wed, 14 Sep 2005 18:21:05 +0000 (18:21 +0000)]
remove unused vars

18 years agoremove _tnl_MakeCurrent call
Brian Paul [Wed, 14 Sep 2005 18:09:15 +0000 (18:09 +0000)]
remove _tnl_MakeCurrent call

18 years agoinitial 6.5 release notes
Brian Paul [Wed, 14 Sep 2005 14:34:54 +0000 (14:34 +0000)]
initial 6.5 release notes

18 years agoRemove _tnl_MakeCurrent() and the unused ctx->Driver.MakeCurrent() callback.
Brian Paul [Wed, 14 Sep 2005 14:32:20 +0000 (14:32 +0000)]
Remove _tnl_MakeCurrent() and the unused ctx->Driver.MakeCurrent() callback.

18 years agofix breakage from Brians changes earlier
Dave Airlie [Wed, 14 Sep 2005 12:08:32 +0000 (12:08 +0000)]
fix breakage from Brians changes earlier

18 years agoclean-up some _mesa_make_current() code
Brian Paul [Wed, 14 Sep 2005 03:11:36 +0000 (03:11 +0000)]
clean-up some _mesa_make_current() code

18 years agoremove rm -f line
Brian Paul [Wed, 14 Sep 2005 02:18:43 +0000 (02:18 +0000)]
remove rm -f line

18 years agoremove .a file before creating new one
Brian Paul [Wed, 14 Sep 2005 02:18:09 +0000 (02:18 +0000)]
remove .a file before creating new one

18 years agopageflip change from radeon driver
Brian Paul [Wed, 14 Sep 2005 00:49:09 +0000 (00:49 +0000)]
pageflip change from radeon driver

18 years agoInstead of calling _mesa_ResizeBuffersMESA() in the Viewport function,
Brian Paul [Wed, 14 Sep 2005 00:42:33 +0000 (00:42 +0000)]
Instead of calling _mesa_ResizeBuffersMESA() in the Viewport function,
call driUpdateFramebufferSize() when window size/position changes.

18 years agomake some funcs static
Brian Paul [Wed, 14 Sep 2005 00:37:10 +0000 (00:37 +0000)]
make some funcs static

18 years agoInstead of calling _mesa_ResizeBuffersMESA() in the Viewport function,
Brian Paul [Wed, 14 Sep 2005 00:36:27 +0000 (00:36 +0000)]
Instead of calling _mesa_ResizeBuffersMESA() in the Viewport function,
call driUpdateFramebufferSize() when window size/position changes.

18 years agouse mklib script to make drivers instead of gcc -shared
Brian Paul [Wed, 14 Sep 2005 00:33:03 +0000 (00:33 +0000)]
use mklib script to make drivers instead of gcc -shared

18 years agoupdated comment
Brian Paul [Wed, 14 Sep 2005 00:11:30 +0000 (00:11 +0000)]
updated comment

18 years agomake some functions static
Brian Paul [Wed, 14 Sep 2005 00:10:56 +0000 (00:10 +0000)]
make some functions static

18 years agoInstead of calling _mesa_ResizeBuffersMESA() in the Viewport function,
Brian Paul [Wed, 14 Sep 2005 00:10:27 +0000 (00:10 +0000)]
Instead of calling _mesa_ResizeBuffersMESA() in the Viewport function,
call driUpdateFramebufferSize() when we detect changes in window size/
position in radeonGetLock().

18 years agoadded driUpdateFramebufferSize()
Brian Paul [Wed, 14 Sep 2005 00:09:09 +0000 (00:09 +0000)]
added driUpdateFramebufferSize()

18 years agoMove _mesa_add_soft_renderbuffers() from framebuffer.c to renderbuffer.c
Brian Paul [Tue, 13 Sep 2005 23:37:50 +0000 (23:37 +0000)]
Move _mesa_add_soft_renderbuffers() from framebuffer.c to renderbuffer.c
Update some comments, code, etc.

18 years agoupdate like for MD2 viewer
Brian Paul [Tue, 13 Sep 2005 18:18:47 +0000 (18:18 +0000)]
update like for MD2 viewer

18 years agoreplace semicolon with &&
Brian Paul [Tue, 13 Sep 2005 15:04:30 +0000 (15:04 +0000)]
replace semicolon with &&

18 years agoprint version with debug info
Brian Paul [Tue, 13 Sep 2005 14:48:28 +0000 (14:48 +0000)]
print version with debug info

18 years agofix FreeBSD problem (bug 4435)
Brian Paul [Tue, 13 Sep 2005 13:36:47 +0000 (13:36 +0000)]
fix FreeBSD problem (bug 4435)

18 years agoFix libGL build on FreeBSD by respecting ASM_FLAGS.
Eric Anholt [Tue, 13 Sep 2005 05:19:02 +0000 (05:19 +0000)]
Fix libGL build on FreeBSD by respecting ASM_FLAGS.

Submitted by: Diego Pettenò <flameeyes@gentoo.org>

18 years agoReplace ctx->Driver.StencilOp/Func/Mask() functions with
Brian Paul [Tue, 13 Sep 2005 04:42:09 +0000 (04:42 +0000)]
Replace ctx->Driver.StencilOp/Func/Mask() functions with
ctx->Driver.Stencil*Separate() functions.

18 years agoOpenGL 2.0's two-sided stencil feature wasn't implemented correctly.
Brian Paul [Tue, 13 Sep 2005 02:59:53 +0000 (02:59 +0000)]
OpenGL 2.0's two-sided stencil feature wasn't implemented correctly.
See comment near top of stencil.c for info about OpenGL 2.0 vs.
GL_EXT_stencil_two_side.

18 years agojust some reformatting
Brian Paul [Tue, 13 Sep 2005 02:57:07 +0000 (02:57 +0000)]
just some reformatting

18 years agoClear either 8 or 16-bit stencil buffers.
Brian Paul [Tue, 13 Sep 2005 02:03:06 +0000 (02:03 +0000)]
Clear either 8 or 16-bit stencil buffers.

18 years agoUse GLuint/GLint intead of GLstencil for stencil state.
Brian Paul [Tue, 13 Sep 2005 02:02:03 +0000 (02:02 +0000)]
Use GLuint/GLint intead of GLstencil for stencil state.

18 years agoMove the ctx->FirstTimeCurrent initialization
Brian Paul [Tue, 13 Sep 2005 01:19:29 +0000 (01:19 +0000)]
Move the ctx->FirstTimeCurrent initialization

18 years agoinit StencilOpSeparate to NULL
Brian Paul [Tue, 13 Sep 2005 01:17:01 +0000 (01:17 +0000)]
init StencilOpSeparate to NULL

18 years agoadd GL_ATI_fragment_shader support for r200
Roland Scheidegger [Mon, 12 Sep 2005 23:45:05 +0000 (23:45 +0000)]
add GL_ATI_fragment_shader support for r200

18 years agoadded a return upon out-of-memory, remove a needless assignment
Brian Paul [Mon, 12 Sep 2005 23:18:21 +0000 (23:18 +0000)]
added a return upon out-of-memory, remove a needless assignment

18 years agorestore brace lost in previous check-in
Brian Paul [Mon, 12 Sep 2005 21:41:45 +0000 (21:41 +0000)]
restore brace lost in previous check-in

18 years agoadd complete support for ATI_fragment_shader for the r200. Most of the new code is...
Roland Scheidegger [Mon, 12 Sep 2005 21:20:10 +0000 (21:20 +0000)]
add complete support for ATI_fragment_shader for the r200. Most of the new code is in the new file r200_fragshader.c. Reverse engeneered by Dave Airlie and me

18 years agoremove unnecessary Swizzle parameter from struct (forgotten when the code was refactored)
Roland Scheidegger [Mon, 12 Sep 2005 17:21:40 +0000 (17:21 +0000)]
remove unnecessary Swizzle parameter from struct (forgotten when the code was refactored)

18 years agouse ASM_API variable, bug 4415
Brian Paul [Mon, 12 Sep 2005 15:19:19 +0000 (15:19 +0000)]
use ASM_API variable, bug 4415

18 years agomake lookup_query_object() static
Brian Paul [Mon, 12 Sep 2005 15:05:57 +0000 (15:05 +0000)]
make lookup_query_object() static

18 years agoremove rendundant r,g,b,a vars (bug 4331)
Brian Paul [Mon, 12 Sep 2005 13:59:29 +0000 (13:59 +0000)]
remove rendundant r,g,b,a vars (bug 4331)

18 years agoadd 1002:5460 M22 X300 card
Dave Airlie [Sun, 11 Sep 2005 04:02:41 +0000 (04:02 +0000)]
add 1002:5460 M22 X300 card

18 years agofix dri drivers build
Dave Airlie [Sun, 11 Sep 2005 03:58:29 +0000 (03:58 +0000)]
fix dri drivers build

18 years agoSilence some warnings.
Brian Paul [Sun, 11 Sep 2005 01:45:04 +0000 (01:45 +0000)]
Silence some warnings.

18 years agobunch of updates
Brian Paul [Sat, 10 Sep 2005 16:57:22 +0000 (16:57 +0000)]
bunch of updates

18 years agoput GLUT sources into a separate tarball
Brian Paul [Sat, 10 Sep 2005 16:54:05 +0000 (16:54 +0000)]
put GLUT sources into a separate tarball

18 years agoClean-up of sources/Makefile, bug 4111
Brian Paul [Sat, 10 Sep 2005 16:41:17 +0000 (16:41 +0000)]
Clean-up of sources/Makefile, bug 4111

18 years agofix a problem w/ color index mode when CHAN_BITS=16
Brian Paul [Sat, 10 Sep 2005 16:27:51 +0000 (16:27 +0000)]
fix a problem w/ color index mode when CHAN_BITS=16

18 years agomake some vars static
Brian Paul [Sat, 10 Sep 2005 16:20:47 +0000 (16:20 +0000)]
make some vars static

18 years agofix GLubyte/GLchan inconsistencies (bug 4331)
Brian Paul [Sat, 10 Sep 2005 16:19:36 +0000 (16:19 +0000)]
fix GLubyte/GLchan inconsistencies (bug 4331)

18 years agonew demo to test ATI_fragment_shader, not very creative but easy to know if the outpu...
Roland Scheidegger [Sat, 10 Sep 2005 01:02:25 +0000 (01:02 +0000)]
new demo to test ATI_fragment_shader, not very creative but easy to know if the output is correct. Tests single-pass as well as multi-pass shader (only pseudo-dependant texture read though, and no tex coord swizzling), src and dst modifiers, src repetition, dst masks, constants, and some ops. Both shaders run succesfully with swrast as well as r200.

18 years agoadd the new drm packets needed for ATI_fragment_shader to the sanity code of the...
Roland Scheidegger [Sat, 10 Sep 2005 00:31:11 +0000 (00:31 +0000)]
add the new drm packets needed for ATI_fragment_shader to the sanity code of the r200 and radeon driver

18 years agoadd reverse-engeneered register bits needed for ATI_fragment_shader (Dave Airlie...
Roland Scheidegger [Sat, 10 Sep 2005 00:11:27 +0000 (00:11 +0000)]
add reverse-engeneered register bits needed for ATI_fragment_shader (Dave Airlie, me)

18 years agoAdd offset and pitch fields to intelRegion. Remove frontOffset, frontPitch,
Brian Paul [Sat, 10 Sep 2005 00:10:15 +0000 (00:10 +0000)]
Add offset and pitch fields to intelRegion.  Remove frontOffset, frontPitch,
backOffset, backPitch, depthOffset, depthPitch, textureOffset fields.

18 years agoadd _tnl_arb_vertex_program_stage to all drivers which already have _tnl_vertex_progr...
Roland Scheidegger [Fri, 9 Sep 2005 23:31:31 +0000 (23:31 +0000)]
add _tnl_arb_vertex_program_stage to all drivers which already have _tnl_vertex_program_stage. Fixes crashes when using vertex programs. Tested on r200 only (fix by Keith Whitwell)

18 years agoremove the redundant textureSize field, use tex.size instead, it's always the same...
Brian Paul [Fri, 9 Sep 2005 22:57:05 +0000 (22:57 +0000)]
remove the redundant textureSize field, use tex.size instead, it's always the same value

18 years agodon't generate selection hits for glBitmap, glDraw/CopyPixels. Misc clean-ups
Brian Paul [Fri, 9 Sep 2005 16:40:47 +0000 (16:40 +0000)]
don't generate selection hits for glBitmap, glDraw/CopyPixels.  Misc clean-ups

18 years agofix some bugs with handling of GL_DOT4_ATI, GL_DOT3_ATI and GL_DOT2_ADD_ATI ATI_fs...
Roland Scheidegger [Fri, 9 Sep 2005 15:43:11 +0000 (15:43 +0000)]
fix some bugs with handling of GL_DOT4_ATI, GL_DOT3_ATI and GL_DOT2_ADD_ATI ATI_fs instructions.

18 years agoadd missing fallback string for ARB_vertex_program
Roland Scheidegger [Fri, 9 Sep 2005 12:51:38 +0000 (12:51 +0000)]
add missing fallback string for ARB_vertex_program

18 years agoFix wrong fallback bit being set by the tcl fallback caused by ARB_vertex_program...
Roland Scheidegger [Fri, 9 Sep 2005 01:38:21 +0000 (01:38 +0000)]
Fix wrong fallback bit being set by the tcl fallback caused by ARB_vertex_program. Disable ARB_vertex_program by default - it is incredibly slow, and just plain doesn't work anyway (arbvptorus fails an assertion, arbvpmesh has bogus output)

18 years agouse an explicit reserved field, rather than magic number in bound
Keith Whitwell [Thu, 8 Sep 2005 21:40:10 +0000 (21:40 +0000)]
use an explicit reserved field, rather than magic number in bound

18 years agoFix the comment for the 'bound' field: it's a bitmask, not an index.
Brian Paul [Thu, 8 Sep 2005 18:47:36 +0000 (18:47 +0000)]
Fix the comment for the 'bound' field: it's a bitmask, not an index.
In driTexturesGone(), set bound = 0, not 99.

18 years agoKeep NumTemporaries uptodate.
Keith Whitwell [Thu, 8 Sep 2005 18:45:03 +0000 (18:45 +0000)]
Keep NumTemporaries uptodate.
Make sure oC alpha is populated when separate_specular enabled.

18 years agoTreat NegateBase as a bitfield, not a boolean.
Keith Whitwell [Thu, 8 Sep 2005 18:36:39 +0000 (18:36 +0000)]
Treat NegateBase as a bitfield, not a boolean.

18 years agobe consistent in populating NegateBase field
Keith Whitwell [Thu, 8 Sep 2005 18:35:48 +0000 (18:35 +0000)]
be consistent in populating NegateBase field

18 years agocheck for either GL_ARB_depth_texture or GL_SGIX_depth_texture in a few places
Brian Paul [Thu, 8 Sep 2005 15:28:45 +0000 (15:28 +0000)]
check for either GL_ARB_depth_texture or GL_SGIX_depth_texture in a few places

18 years agofix precision problem in depth clearing (bug 4395)
Brian Paul [Thu, 8 Sep 2005 13:55:05 +0000 (13:55 +0000)]
fix precision problem in depth clearing (bug 4395)

18 years agofix incorrect swizzling handling. fix code so it can potentially handle implementatio...
Roland Scheidegger [Thu, 8 Sep 2005 13:41:54 +0000 (13:41 +0000)]
fix incorrect swizzling handling. fix code so it can potentially handle implementations with less than 6 texture units correctly.

18 years ago Committing in .
Jouk Jansen [Thu, 8 Sep 2005 10:05:37 +0000 (10:05 +0000)]
 Committing in .

 Define suseconds_t for OpenVMS

 Modified Files:
  Mesa/src/mesa/drivers/x11/xm_dd.c
 ----------------------------------------------------------------------

18 years agoadd a bunch of FLUSH_VERTICES to some of the ATI_fs functions, most notably when...
Roland Scheidegger [Thu, 8 Sep 2005 00:12:57 +0000 (00:12 +0000)]
add a bunch of FLUSH_VERTICES to some of the ATI_fs functions, most notably when changing the global ati fragment shader constants.

18 years agosome clean-up and re-org for renderbuffers
Brian Paul [Wed, 7 Sep 2005 23:28:41 +0000 (23:28 +0000)]
some clean-up and re-org for renderbuffers

18 years agosome updates, but code still out of date
Brian Paul [Wed, 7 Sep 2005 23:26:01 +0000 (23:26 +0000)]
some updates, but code still out of date

18 years agonew comment
Brian Paul [Wed, 7 Sep 2005 23:21:59 +0000 (23:21 +0000)]
new comment

18 years agominor tweaks to _mesa_ResizeBuffersMESA()
Brian Paul [Wed, 7 Sep 2005 23:21:40 +0000 (23:21 +0000)]
minor tweaks to _mesa_ResizeBuffersMESA()

18 years agofix bug with ATI_fragment_shader in swrast (need to copy all 4 values due to later...
Roland Scheidegger [Wed, 7 Sep 2005 21:59:30 +0000 (21:59 +0000)]
fix bug with ATI_fragment_shader in swrast (need to copy all 4 values due to later applied srcRep)

18 years agotry to fix renderbuffer breakage, primarily in calculate_buffer_parameters()
Brian Paul [Wed, 7 Sep 2005 18:32:29 +0000 (18:32 +0000)]
try to fix renderbuffer breakage, primarily in calculate_buffer_parameters()

18 years agominor formatting fix
Brian Paul [Tue, 6 Sep 2005 21:22:16 +0000 (21:22 +0000)]
minor formatting fix

18 years agoadded viaRenderbufferStorage() function
Brian Paul [Tue, 6 Sep 2005 20:42:23 +0000 (20:42 +0000)]
added viaRenderbufferStorage() function

18 years agojust changes/updates to comments
Brian Paul [Tue, 6 Sep 2005 14:47:57 +0000 (14:47 +0000)]
just changes/updates to comments

18 years agoadded -Wmissing-prototypes to WARN_FLAGS
Brian Paul [Tue, 6 Sep 2005 03:13:18 +0000 (03:13 +0000)]
added -Wmissing-prototypes to WARN_FLAGS

18 years agoUse mklib script instead of ar. Make libmesa.a instead of mesa.a
Brian Paul [Tue, 6 Sep 2005 03:02:01 +0000 (03:02 +0000)]
Use mklib script instead of ar.  Make libmesa.a instead of mesa.a

18 years agoremove DEFARRAY, CHECKARRAY stuff
Brian Paul [Tue, 6 Sep 2005 02:56:51 +0000 (02:56 +0000)]
remove DEFARRAY, CHECKARRAY stuff

18 years agominor clean-up of texture_combine()
Brian Paul [Tue, 6 Sep 2005 02:55:34 +0000 (02:55 +0000)]
minor clean-up of texture_combine()

18 years agodon't use DEFARRAY/CHECKARRAY stuff
Brian Paul [Tue, 6 Sep 2005 02:44:00 +0000 (02:44 +0000)]
don't use DEFARRAY/CHECKARRAY stuff

18 years agomake some functions static
Brian Paul [Mon, 5 Sep 2005 21:17:44 +0000 (21:17 +0000)]
make some functions static

18 years agomake r128SpanRenderStart/Finish static
Brian Paul [Mon, 5 Sep 2005 21:09:22 +0000 (21:09 +0000)]
make r128SpanRenderStart/Finish static

18 years agoremove obsolete CurrentBufferBit
Brian Paul [Mon, 5 Sep 2005 21:04:22 +0000 (21:04 +0000)]
remove obsolete CurrentBufferBit

18 years agoremove unused var
Brian Paul [Mon, 5 Sep 2005 21:03:48 +0000 (21:03 +0000)]
remove unused var