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.
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.
Brian Paul [Tue, 13 Sep 2005 02:57:07 +0000 (02:57 +0000)]
just some reformatting
Brian Paul [Tue, 13 Sep 2005 02:03:06 +0000 (02:03 +0000)]
Clear either 8 or 16-bit stencil buffers.
Brian Paul [Tue, 13 Sep 2005 02:02:03 +0000 (02:02 +0000)]
Use GLuint/GLint intead of GLstencil for stencil state.
Brian Paul [Tue, 13 Sep 2005 01:19:29 +0000 (01:19 +0000)]
Move the ctx->FirstTimeCurrent initialization
Brian Paul [Tue, 13 Sep 2005 01:17:01 +0000 (01:17 +0000)]
init StencilOpSeparate to NULL
Roland Scheidegger [Mon, 12 Sep 2005 23:45:05 +0000 (23:45 +0000)]
add GL_ATI_fragment_shader support for r200
Brian Paul [Mon, 12 Sep 2005 23:18:21 +0000 (23:18 +0000)]
added a return upon out-of-memory, remove a needless assignment
Brian Paul [Mon, 12 Sep 2005 21:41:45 +0000 (21:41 +0000)]
restore brace lost in previous check-in
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
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)
Brian Paul [Mon, 12 Sep 2005 15:19:19 +0000 (15:19 +0000)]
use ASM_API variable, bug 4415
Brian Paul [Mon, 12 Sep 2005 15:05:57 +0000 (15:05 +0000)]
make lookup_query_object() static
Brian Paul [Mon, 12 Sep 2005 13:59:29 +0000 (13:59 +0000)]
remove rendundant r,g,b,a vars (bug 4331)
Dave Airlie [Sun, 11 Sep 2005 04:02:41 +0000 (04:02 +0000)]
add 1002:5460 M22 X300 card
Dave Airlie [Sun, 11 Sep 2005 03:58:29 +0000 (03:58 +0000)]
fix dri drivers build
Brian Paul [Sun, 11 Sep 2005 01:45:04 +0000 (01:45 +0000)]
Silence some warnings.
Brian Paul [Sat, 10 Sep 2005 16:57:22 +0000 (16:57 +0000)]
bunch of updates
Brian Paul [Sat, 10 Sep 2005 16:54:05 +0000 (16:54 +0000)]
put GLUT sources into a separate tarball
Brian Paul [Sat, 10 Sep 2005 16:41:17 +0000 (16:41 +0000)]
Clean-up of sources/Makefile, bug 4111
Brian Paul [Sat, 10 Sep 2005 16:27:51 +0000 (16:27 +0000)]
fix a problem w/ color index mode when CHAN_BITS=16
Brian Paul [Sat, 10 Sep 2005 16:20:47 +0000 (16:20 +0000)]
make some vars static
Brian Paul [Sat, 10 Sep 2005 16:19:36 +0000 (16:19 +0000)]
fix GLubyte/GLchan inconsistencies (bug 4331)
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.
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
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)
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.
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)
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
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
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.
Roland Scheidegger [Fri, 9 Sep 2005 12:51:38 +0000 (12:51 +0000)]
add missing fallback string for 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)
Keith Whitwell [Thu, 8 Sep 2005 21:40:10 +0000 (21:40 +0000)]
use an explicit reserved field, rather than magic number in bound
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.
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.
Keith Whitwell [Thu, 8 Sep 2005 18:36:39 +0000 (18:36 +0000)]
Treat NegateBase as a bitfield, not a boolean.
Keith Whitwell [Thu, 8 Sep 2005 18:35:48 +0000 (18:35 +0000)]
be consistent in populating NegateBase field
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
Brian Paul [Thu, 8 Sep 2005 13:55:05 +0000 (13:55 +0000)]
fix precision problem in depth clearing (bug 4395)
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.
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
----------------------------------------------------------------------
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.
Brian Paul [Wed, 7 Sep 2005 23:28:41 +0000 (23:28 +0000)]
some clean-up and re-org for renderbuffers
Brian Paul [Wed, 7 Sep 2005 23:26:01 +0000 (23:26 +0000)]
some updates, but code still out of date
Brian Paul [Wed, 7 Sep 2005 23:21:59 +0000 (23:21 +0000)]
new comment
Brian Paul [Wed, 7 Sep 2005 23:21:40 +0000 (23:21 +0000)]
minor tweaks to _mesa_ResizeBuffersMESA()
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)
Brian Paul [Wed, 7 Sep 2005 18:32:29 +0000 (18:32 +0000)]
try to fix renderbuffer breakage, primarily in calculate_buffer_parameters()
Brian Paul [Tue, 6 Sep 2005 21:22:16 +0000 (21:22 +0000)]
minor formatting fix
Brian Paul [Tue, 6 Sep 2005 20:42:23 +0000 (20:42 +0000)]
added viaRenderbufferStorage() function
Brian Paul [Tue, 6 Sep 2005 14:47:57 +0000 (14:47 +0000)]
just changes/updates to comments
Brian Paul [Tue, 6 Sep 2005 03:13:18 +0000 (03:13 +0000)]
added -Wmissing-prototypes to WARN_FLAGS
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
Brian Paul [Tue, 6 Sep 2005 02:56:51 +0000 (02:56 +0000)]
remove DEFARRAY, CHECKARRAY stuff
Brian Paul [Tue, 6 Sep 2005 02:55:34 +0000 (02:55 +0000)]
minor clean-up of texture_combine()
Brian Paul [Tue, 6 Sep 2005 02:44:00 +0000 (02:44 +0000)]
don't use DEFARRAY/CHECKARRAY stuff
Brian Paul [Mon, 5 Sep 2005 21:17:44 +0000 (21:17 +0000)]
make some functions static
Brian Paul [Mon, 5 Sep 2005 21:09:22 +0000 (21:09 +0000)]
make r128SpanRenderStart/Finish static
Brian Paul [Mon, 5 Sep 2005 21:04:22 +0000 (21:04 +0000)]
remove obsolete CurrentBufferBit
Brian Paul [Mon, 5 Sep 2005 21:03:48 +0000 (21:03 +0000)]
remove unused var
Karl Schultz [Mon, 5 Sep 2005 14:48:39 +0000 (14:48 +0000)]
Add support for memory contexts (Thomas Kaltofen). Cleanup compilation warnings.
Karl Schultz [Mon, 5 Sep 2005 14:08:51 +0000 (14:08 +0000)]
remove _swrast_DrawBuffer
Karl Schultz [Mon, 5 Sep 2005 14:03:41 +0000 (14:03 +0000)]
Windows mesa.def file had been moved to the drivers dir tree some time ago. This copy is not needed.
Karl Schultz [Mon, 5 Sep 2005 13:45:23 +0000 (13:45 +0000)]
fix var declaration so that a C compiler can build it.
Brian Paul [Sun, 4 Sep 2005 22:55:57 +0000 (22:55 +0000)]
just formatting clean-ups
Brian Paul [Sun, 4 Sep 2005 22:20:07 +0000 (22:20 +0000)]
Simplify radeonSetCliprects(). Remove the 'mode' parameter.
Brian Paul [Sun, 4 Sep 2005 22:16:08 +0000 (22:16 +0000)]
Further clean-up and simplification of the span-related functions.
Brian Paul [Sun, 4 Sep 2005 22:13:42 +0000 (22:13 +0000)]
Add new void *addr and __DRIdrawablePrivate parameters to
driNewRenderbuffer().
Brian Paul [Sun, 4 Sep 2005 16:15:38 +0000 (16:15 +0000)]
Fix UpdatePageFlipping() function. Always call driFlipRenderbuffers()
with pfCurrentPage value, in case it's initially 1 instead of 0.
Brian Paul [Sun, 4 Sep 2005 15:03:36 +0000 (15:03 +0000)]
minor clean-ups
Brian Paul [Sun, 4 Sep 2005 15:02:48 +0000 (15:02 +0000)]
replace GET_SRC_PTR, GET_DST_PTR with GET_PTR
Brian Paul [Sun, 4 Sep 2005 15:01:33 +0000 (15:01 +0000)]
Use InitPointers helper
Brian Paul [Sun, 4 Sep 2005 15:00:04 +0000 (15:00 +0000)]
Combine GET_DST_PTR and GET_SRC_PTR into just GET_PTR.
Brian Paul [Sun, 4 Sep 2005 14:59:34 +0000 (14:59 +0000)]
Added InitPointers helper function
Brian Paul [Sun, 4 Sep 2005 14:59:18 +0000 (14:59 +0000)]
replace assertion with a conditional return
Brian Paul [Sat, 3 Sep 2005 17:33:16 +0000 (17:33 +0000)]
fudge set_component_sizes() a bit, see comments
Brian Paul [Sat, 3 Sep 2005 16:57:58 +0000 (16:57 +0000)]
Remove last remnants of pre-renderbuffer code.
Brian Paul [Sat, 3 Sep 2005 16:55:02 +0000 (16:55 +0000)]
renderbuffer updates
Brian Paul [Sat, 3 Sep 2005 16:54:20 +0000 (16:54 +0000)]
SetBuffer, renderbuffer changes
Brian Paul [Sat, 3 Sep 2005 16:49:35 +0000 (16:49 +0000)]
use new InitStencil/DepthPointer functions
Brian Paul [Sat, 3 Sep 2005 16:48:48 +0000 (16:48 +0000)]
remove dead code
Brian Paul [Sat, 3 Sep 2005 16:47:30 +0000 (16:47 +0000)]
remove SetBuffer
Brian Paul [Sat, 3 Sep 2005 16:43:02 +0000 (16:43 +0000)]
SetBuffer, renderbuffer changes
Brian Paul [Sat, 3 Sep 2005 16:42:19 +0000 (16:42 +0000)]
added flippedData field for page flipping, code to flip stereo color buffers
Brian Paul [Sat, 3 Sep 2005 16:41:30 +0000 (16:41 +0000)]
added SetStencil/DepthPointer functions
Brian Paul [Sat, 3 Sep 2005 16:40:44 +0000 (16:40 +0000)]
remove SetBuffer(). Misc renderbuffer changes.
Brian Paul [Sat, 3 Sep 2005 16:39:57 +0000 (16:39 +0000)]
silence misc warnings
Dave Airlie [Fri, 2 Sep 2005 23:52:05 +0000 (23:52 +0000)]
Check for ATI_fragment_shader enabled
Brian Paul [Fri, 2 Sep 2005 17:07:00 +0000 (17:07 +0000)]
fix some strict aliasing problems related to choosing framebuffer configs (Matthias Hopf)
Brian Paul [Fri, 2 Sep 2005 14:02:44 +0000 (14:02 +0000)]
GL_EXT_timer_query
Brian Paul [Fri, 2 Sep 2005 13:55:50 +0000 (13:55 +0000)]
comments
Brian Paul [Fri, 2 Sep 2005 13:43:26 +0000 (13:43 +0000)]
added GL_EXT_timer_query token
Brian Paul [Fri, 2 Sep 2005 13:42:49 +0000 (13:42 +0000)]
Prototype implementation of new GL_EXT_timer_query extension (not finalized yet).
Extends the query mechanism to query elapsed time while rendering.
Brian Paul [Fri, 2 Sep 2005 13:40:09 +0000 (13:40 +0000)]
replace -1 with PROGRAM_UNDEFINED when initializing instructions
Brian Paul [Fri, 2 Sep 2005 13:20:20 +0000 (13:20 +0000)]
set depthHasSurface for stencil renderbuffer
Roland Scheidegger [Fri, 2 Sep 2005 12:05:38 +0000 (12:05 +0000)]
ATI_fragment_shader fixes: fix bug in passTexCoord (caused by recent changes). Fix sampling from wrong texture unit. Apply swizzling before texture sampling, and hopefully get non-projected coordinates from swrast. (still does not work at all with sw doom3, way too dark just the same as with the doom3 arb2 path)
Brian Paul [Fri, 2 Sep 2005 03:39:31 +0000 (03:39 +0000)]
change scratch pointer from _int32_t to u_int32_t to silence warning. Is this field actually used for anything?
Brian Paul [Fri, 2 Sep 2005 03:36:41 +0000 (03:36 +0000)]
remove unneeded assertion in stencil/depth LOCAL_DEPTH_VARS code