mesa.git
17 years agoremove debug printf
Brian [Tue, 10 Jul 2007 21:29:17 +0000 (15:29 -0600)]
remove debug printf

17 years agoFix line clipping bug. New comments.
Brian [Tue, 10 Jul 2007 21:24:31 +0000 (15:24 -0600)]
Fix line clipping bug.  New comments.

Need to use a new prim_header for the post-clipped line.  Otherwise,
we were changing the header passed to us from the vb code.  That messed
up the vertex pointers for the next line primitive.

17 years agoclean-up, comments
Brian [Tue, 10 Jul 2007 20:46:15 +0000 (14:46 -0600)]
clean-up, comments

17 years agoclamp after offsetting, new comments
Brian [Tue, 10 Jul 2007 20:38:10 +0000 (14:38 -0600)]
clamp after offsetting, new comments

17 years agoremove unneeded casts, added comments
Brian [Tue, 10 Jul 2007 20:36:10 +0000 (14:36 -0600)]
remove unneeded casts, added comments

17 years agoDo depth testing with integer values.
Brian [Tue, 10 Jul 2007 19:53:21 +0000 (13:53 -0600)]
Do depth testing with integer values.

Using floats (and float->ushort->float conversion) introduces errors.
Only GLushort depth buffers work for now...

17 years agofix problems with polygon offset
Brian [Tue, 10 Jul 2007 19:34:23 +0000 (13:34 -0600)]
fix problems with polygon offset

17 years agocomments, clean-up
Brian [Tue, 10 Jul 2007 19:33:45 +0000 (13:33 -0600)]
comments, clean-up

17 years agoadded comments
Brian [Tue, 10 Jul 2007 17:54:16 +0000 (11:54 -0600)]
added comments

17 years agoFix front/back mix-up. added comments.
Brian [Tue, 10 Jul 2007 17:54:03 +0000 (11:54 -0600)]
Fix front/back mix-up. added comments.

17 years agopress 'f' to toggle GL_CCW/GL_CW front face
Brian [Tue, 10 Jul 2007 17:53:27 +0000 (11:53 -0600)]
press 'f' to toggle GL_CCW/GL_CW front face

17 years agouse 'c' to cycle through polygon cull modes
Brian [Tue, 10 Jul 2007 17:39:08 +0000 (11:39 -0600)]
use 'c' to cycle through polygon cull modes

17 years agouse cursor keys to translate triangle
Brian [Tue, 10 Jul 2007 17:33:10 +0000 (11:33 -0600)]
use cursor keys to translate triangle

17 years agoComments, minor clean-up.
Brian [Tue, 10 Jul 2007 17:03:51 +0000 (11:03 -0600)]
Comments, minor clean-up.

17 years agocomments
Brian [Tue, 10 Jul 2007 17:00:24 +0000 (11:00 -0600)]
comments

17 years agoAdded comments, assertions.
Brian [Tue, 10 Jul 2007 16:53:57 +0000 (10:53 -0600)]
Added comments, assertions.

17 years agoFix EMIT_ATTR() to populate the draw->vf_attr_to_slot[] array.
Brian [Tue, 10 Jul 2007 16:53:29 +0000 (10:53 -0600)]
Fix EMIT_ATTR() to populate the draw->vf_attr_to_slot[] array.

Note that attribute index has to be biased by two, since vertex->data[]
starts after the header and clipcoord fields.  See comments for details.
Added a bunch of comments/docs.

17 years agoremove some dead/disabled stuff
Brian [Tue, 10 Jul 2007 16:24:28 +0000 (10:24 -0600)]
remove some dead/disabled stuff

17 years agoRemove softpipe includes
Brian [Mon, 9 Jul 2007 22:21:18 +0000 (16:21 -0600)]
Remove softpipe includes

17 years agos/G_/SP_/
Brian [Mon, 9 Jul 2007 22:20:16 +0000 (16:20 -0600)]
s/G_/SP_/

17 years agoRename G_NEW_* tokens to SP_NEW_*
Brian [Mon, 9 Jul 2007 22:17:50 +0000 (16:17 -0600)]
Rename G_NEW_* tokens to SP_NEW_*

17 years agoObsolete file.
Brian [Mon, 9 Jul 2007 22:15:20 +0000 (16:15 -0600)]
Obsolete file.

17 years agoNew 'draw' module for primitive drawing (clipping, culling, etc).
Brian [Mon, 9 Jul 2007 22:14:26 +0000 (16:14 -0600)]
New 'draw' module for primitive drawing (clipping, culling, etc).

17 years agoNew 'draw' module for handling the various stages of primitive drawing (clipping...
Brian [Mon, 9 Jul 2007 22:12:13 +0000 (16:12 -0600)]
New 'draw' module for handling the various stages of primitive drawing (clipping, culling, etc).

17 years agoRename/move some files to modularize the primitive/draw code.
Brian [Mon, 9 Jul 2007 22:04:08 +0000 (16:04 -0600)]
Rename/move some files to modularize the primitive/draw code.

17 years agoFix function names.
michal [Fri, 6 Jul 2007 16:57:47 +0000 (18:57 +0200)]
Fix function names.

17 years agoIndent.
michal [Fri, 6 Jul 2007 16:53:55 +0000 (18:53 +0200)]
Indent.
Fix function prototype.

17 years agoMerge branch 'master' of git+ssh://michal@git.freedesktop.org/git/mesa/mesa into...
michal [Fri, 6 Jul 2007 15:53:44 +0000 (17:53 +0200)]
Merge branch 'master' of git+ssh://michal@git.freedesktop.org/git/mesa/mesa into softpipe_0_1_branch

17 years agoSoftpipe: import TGSI tree. Not hooked-up yet.
michal [Thu, 5 Jul 2007 17:55:38 +0000 (19:55 +0200)]
Softpipe: import TGSI tree. Not hooked-up yet.

17 years agostencil pixel map didn't work in _mesa_unpack_stencil_span(), bug 11475
Brian [Thu, 5 Jul 2007 15:37:46 +0000 (09:37 -0600)]
stencil pixel map didn't work in _mesa_unpack_stencil_span(), bug 11475

17 years agoBe more consistant with paths in #includes. Eventually, eliminate a bunch of -I...
Brian [Wed, 4 Jul 2007 19:15:20 +0000 (13:15 -0600)]
Be more consistant with paths in #includes.  Eventually, eliminate a bunch of -I flags.

17 years agosupport more modes, added -f cmd line option
Brian [Wed, 4 Jul 2007 15:23:12 +0000 (09:23 -0600)]
support more modes, added -f cmd line option

17 years agoassorted clean-ups
Brian [Wed, 4 Jul 2007 15:22:15 +0000 (09:22 -0600)]
assorted clean-ups

17 years agofix LogicOp/bitmap problem, bug 11133
Eric Anholt [Wed, 4 Jul 2007 13:37:14 +0000 (07:37 -0600)]
fix LogicOp/bitmap problem, bug 11133

17 years agoadd fbdev/ to DEMO_FILES
Brian [Tue, 3 Jul 2007 21:46:38 +0000 (15:46 -0600)]
add fbdev/ to DEMO_FILES

17 years agor300: only init swtcl on tcl-less cards
Dave Airlie [Wed, 4 Jul 2007 05:29:31 +0000 (15:29 +1000)]
r300: only init swtcl on tcl-less cards

17 years agoSIMD comments
Brian [Tue, 3 Jul 2007 23:31:59 +0000 (17:31 -0600)]
SIMD comments

17 years agohook in state tracking for blend color
Brian [Tue, 3 Jul 2007 23:19:30 +0000 (17:19 -0600)]
hook in state tracking for blend color

17 years agoadded blend_color
Brian [Tue, 3 Jul 2007 23:13:45 +0000 (17:13 -0600)]
added blend_color

17 years agoBlend MIN/MAX modes are special: the src/dest terms are always one.
Brian [Tue, 3 Jul 2007 23:13:04 +0000 (17:13 -0600)]
Blend MIN/MAX modes are special: the src/dest terms are always one.

17 years agoRewrite blending in terms of SIMD operations.
Brian [Tue, 3 Jul 2007 23:12:11 +0000 (17:12 -0600)]
Rewrite blending in terms of SIMD operations.

17 years agoadded vec2(vec4) constructor, bug 11404
Brian [Tue, 3 Jul 2007 17:41:56 +0000 (11:41 -0600)]
added vec2(vec4) constructor, bug 11404

17 years agoadd code for stpq, rgba writemasks in make_writemask(), bug 11404
Brian [Tue, 3 Jul 2007 17:41:21 +0000 (11:41 -0600)]
add code for stpq, rgba writemasks in make_writemask(), bug 11404

17 years agoclarify that line_stipple_factor is in [0,255] corresponding to GL's range of [1...
Brian [Tue, 3 Jul 2007 16:58:03 +0000 (10:58 -0600)]
clarify that line_stipple_factor is in [0,255] corresponding to GL's range of [1,256].

17 years agofix StepX/StepY typo
Brian [Tue, 3 Jul 2007 16:06:13 +0000 (10:06 -0600)]
fix StepX/StepY typo

17 years agouse _mesa_unpack_stencil_span() in draw_stencil_pixels(), bug 11457
Brian [Tue, 3 Jul 2007 14:53:49 +0000 (08:53 -0600)]
use _mesa_unpack_stencil_span() in draw_stencil_pixels(), bug 11457

17 years agofix GL_DOT3_RGBA texture combiner mode in generated fragment programs (bug #11030)
Roland Scheidegger [Tue, 3 Jul 2007 12:27:41 +0000 (14:27 +0200)]
fix GL_DOT3_RGBA texture combiner mode in generated fragment programs (bug #11030)

17 years agorename a few structs (use _state suffix consistantly), reorder/sort fields in some...
Brian [Mon, 2 Jul 2007 21:32:12 +0000 (15:32 -0600)]
rename a few structs (use _state suffix consistantly), reorder/sort fields in some structs

17 years agoadd const to wglSetPixelFormat() to match .h declaration
Brian [Mon, 2 Jul 2007 16:16:02 +0000 (10:16 -0600)]
add const to wglSetPixelFormat() to match .h declaration

17 years agoavoid unnecessary clamping of depth values (bug 11448)
Brian [Mon, 2 Jul 2007 14:46:57 +0000 (08:46 -0600)]
avoid unnecessary clamping of depth values (bug 11448)

17 years agor300: fix compiz crash on swtcl - doesn't fix compiz though.
Dave Airlie [Mon, 2 Jul 2007 07:21:45 +0000 (17:21 +1000)]
r300: fix compiz crash on swtcl - doesn't fix compiz though.

Compiz for some reason looks like ass, everything with textures
looks like it has a 2x width/height multiplier on the texture coords...

17 years agoCompute the amount of time to sleep on idle event using timers as reference.
Claudio Ciccani [Sun, 1 Jul 2007 10:24:44 +0000 (12:24 +0200)]
Compute the amount of time to sleep on idle event using timers as reference.

17 years agoFixed initialization of render buffer and deinitialization of context.
Claudio Ciccani [Sun, 1 Jul 2007 10:23:12 +0000 (12:23 +0200)]
Fixed initialization of render buffer and deinitialization of context.

17 years agor300: oops wrong logic for swtcl
Dave Airlie [Sun, 1 Jul 2007 09:27:26 +0000 (19:27 +1000)]
r300: oops wrong logic for swtcl

17 years agor300: oops turn back off cmd buf debugging
Dave Airlie [Sun, 1 Jul 2007 08:52:47 +0000 (18:52 +1000)]
r300: oops turn back off cmd buf debugging

17 years agoMerge branch 'r300-swtcl'
Dave Airlie [Sun, 1 Jul 2007 08:50:14 +0000 (18:50 +1000)]
Merge branch 'r300-swtcl'

17 years agofix tabbing
Dave Airlie [Sun, 1 Jul 2007 08:46:39 +0000 (18:46 +1000)]
fix tabbing

17 years agor300: add authorship
Dave Airlie [Sun, 1 Jul 2007 08:43:22 +0000 (18:43 +1000)]
r300: add authorship

17 years agor300: remove some unused code
Dave Airlie [Sun, 1 Jul 2007 08:42:27 +0000 (18:42 +1000)]
r300: remove some unused code

17 years agor300: cleanup some of the swtcl code
Dave Airlie [Sun, 1 Jul 2007 08:40:26 +0000 (18:40 +1000)]
r300: cleanup some of the swtcl code

17 years agor300: fixup manytex, we needed to emit the vic/vir/vof every time
Dave Airlie [Sun, 1 Jul 2007 08:29:23 +0000 (18:29 +1000)]
r300: fixup manytex, we needed to emit the vic/vir/vof every time

17 years agor300: fix tabbing
Dave Airlie [Sun, 1 Jul 2007 07:15:50 +0000 (17:15 +1000)]
r300: fix tabbing

17 years agosimplify INIT_SPAN code
Brian [Sat, 30 Jun 2007 03:52:18 +0000 (21:52 -0600)]
simplify INIT_SPAN code

17 years agos/SPAN_RGBA/SPAN_INDEX/ in clear_ci_buffer_with_masking()
Brian [Sat, 30 Jun 2007 03:33:59 +0000 (21:33 -0600)]
s/SPAN_RGBA/SPAN_INDEX/ in clear_ci_buffer_with_masking()

17 years agoUndo some prev glDraw/CopyPixel changes which fixed a bug in which colors were overwr...
Brian [Sat, 30 Jun 2007 03:29:30 +0000 (21:29 -0600)]
Undo some prev glDraw/CopyPixel changes which fixed a bug in which colors were overwritten by interpolating attributes.

Now just set the span->arrayAttribs mask in glDraw/CopyPixels and be sure
we don't overwrite the values in interpolate_active_attribs().

17 years agoObsolete
Brian [Sat, 30 Jun 2007 03:13:20 +0000 (21:13 -0600)]
Obsolete

17 years agooverhaul point rasterization, no longer use s_pointtemp.h
Brian [Sat, 30 Jun 2007 03:12:46 +0000 (21:12 -0600)]
overhaul point rasterization, no longer use s_pointtemp.h

17 years agoadded buffer_data(), buffer_sub_data() to pipe_buffer
Brian [Fri, 29 Jun 2007 19:10:47 +0000 (13:10 -0600)]
added buffer_data(), buffer_sub_data() to pipe_buffer

17 years agomore work on tex objects, surfaces, mappable buffers
Brian [Fri, 29 Jun 2007 19:03:01 +0000 (13:03 -0600)]
more work on tex objects, surfaces, mappable buffers

17 years agoadded texture types and mapping types
Brian [Fri, 29 Jun 2007 18:59:58 +0000 (12:59 -0600)]
added texture types and mapping types

17 years agotexture object construction
Brian [Fri, 29 Jun 2007 18:59:02 +0000 (12:59 -0600)]
texture object construction

17 years agos/G_CONTEXT_H/SP_CONTEXT_H/
Brian [Fri, 29 Jun 2007 18:16:37 +0000 (12:16 -0600)]
s/G_CONTEXT_H/SP_CONTEXT_H/

17 years agoregenerated
Brian [Fri, 29 Jun 2007 13:52:43 +0000 (07:52 -0600)]
regenerated

17 years agonouveau: match drm changes (0.0.7)
Ben Skeggs [Sat, 9 Jun 2007 17:05:05 +0000 (03:05 +1000)]
nouveau: match drm changes (0.0.7)

17 years agonouveau: NV30_TCL viewport/scissor fixes
Ben Skeggs [Fri, 8 Jun 2007 03:27:57 +0000 (13:27 +1000)]
nouveau: NV30_TCL viewport/scissor fixes

17 years agobring over 7.0 doc changes
Brian [Thu, 28 Jun 2007 22:44:24 +0000 (16:44 -0600)]
bring over 7.0 doc changes

17 years agoAdd a few missing GL 2.0 entrypoints, regenerate related files.
Brian [Thu, 28 Jun 2007 22:34:40 +0000 (16:34 -0600)]
Add a few missing GL 2.0 entrypoints, regenerate related files.

Specifically:
  glVertexAttrib4bv
  glVertexAttrib4iv
  glVertexAttrib4ubv
  glVertexAttrib4uiv
  glVertexAttrib4usv

17 years agoa variety of fixes for MingW
zhang [Thu, 28 Jun 2007 14:12:52 +0000 (08:12 -0600)]
a variety of fixes for MingW

17 years agoremove t_save_api.c and some other obsolete files, may be more
Brian [Thu, 28 Jun 2007 13:18:43 +0000 (07:18 -0600)]
remove t_save_api.c and some other obsolete files, may be more

17 years agoremove obsolete t_save_api.c
Brian [Thu, 28 Jun 2007 13:15:37 +0000 (07:15 -0600)]
remove obsolete t_save_api.c

17 years agouse larger point/sprite size
Brian [Thu, 28 Jun 2007 13:15:11 +0000 (07:15 -0600)]
use larger point/sprite size

17 years agoincrease MAX_POINT_SIZE to 60
Brian [Thu, 28 Jun 2007 13:13:39 +0000 (07:13 -0600)]
increase MAX_POINT_SIZE to 60

17 years agoXXX comment about point clamping
Brian [Thu, 28 Jun 2007 13:13:20 +0000 (07:13 -0600)]
XXX comment about point clamping

17 years agoadded comment, remove dead code
Brian [Thu, 28 Jun 2007 13:12:55 +0000 (07:12 -0600)]
added comment, remove dead code

17 years agoconsolidate point/line state into pipe_setup_state
Brian [Tue, 26 Jun 2007 23:35:24 +0000 (17:35 -0600)]
consolidate point/line state into pipe_setup_state

17 years agofix logic error in updating of quad's Z values. Basic depth testing works now
Brian [Mon, 25 Jun 2007 15:46:04 +0000 (09:46 -0600)]
fix logic error in updating of quad's Z values.  Basic depth testing works now

17 years agoclean-ups
Brian [Mon, 25 Jun 2007 15:45:10 +0000 (09:45 -0600)]
clean-ups

17 years agoemit quad->outputs.depth[], hack need_z
Brian [Mon, 25 Jun 2007 15:44:28 +0000 (09:44 -0600)]
emit quad->outputs.depth[], hack need_z

17 years agocode for functional Z buffer surface
Brian [Mon, 25 Jun 2007 15:43:02 +0000 (09:43 -0600)]
code for functional Z buffer surface

17 years agobetter triangle Z coords
Brian [Mon, 25 Jun 2007 15:41:49 +0000 (09:41 -0600)]
better triangle Z coords

17 years agor300: Initial work on merging the real and generated vertex program functions.
Oliver McFadden [Wed, 20 Jun 2007 14:24:04 +0000 (14:24 +0000)]
r300: Initial work on merging the real and generated vertex program functions.

17 years agor300: Should use inst_count not 0 for R300_PVS_CNTL_3_PROGRAM_UNKNOWN_SHIFT.
Oliver McFadden [Wed, 20 Jun 2007 12:42:19 +0000 (12:42 +0000)]
r300: Should use inst_count not 0 for R300_PVS_CNTL_3_PROGRAM_UNKNOWN_SHIFT.

17 years agor300: The vpi, vpp, and vps counts are already initialized; don't do it twice.
Oliver McFadden [Wed, 20 Jun 2007 12:23:47 +0000 (12:23 +0000)]
r300: The vpi, vpp, and vps counts are already initialized; don't do it twice.

17 years agor300: Clean up the vertex program state code slightly; still needs lots of work.
Oliver McFadden [Wed, 20 Jun 2007 12:13:44 +0000 (12:13 +0000)]
r300: Clean up the vertex program state code slightly; still needs lots of work.

17 years agor300: Vertex program position end bits are known.
Oliver McFadden [Wed, 20 Jun 2007 12:03:42 +0000 (12:03 +0000)]
r300: Vertex program position end bits are known.

Possibly performance may improve by setting it to the last instruction that
writes result.position, rather than the last instruction in the vertex program.

17 years agor300: Removed unused vap_param structure.
Oliver McFadden [Wed, 20 Jun 2007 11:45:07 +0000 (11:45 +0000)]
r300: Removed unused vap_param structure.

17 years agor300: Cleaned up long lines in the vertex functions.
Oliver McFadden [Wed, 20 Jun 2007 11:42:53 +0000 (11:42 +0000)]
r300: Cleaned up long lines in the vertex functions.

17 years agor300: Setup the default state for polygon offset point/line.
Oliver McFadden [Wed, 20 Jun 2007 03:02:34 +0000 (03:02 +0000)]
r300: Setup the default state for polygon offset point/line.

I believe there are still bugs with all polygon offset types. The point and line
types may need to be handled specially, too.

This shouldn't break anything because it just enabled the occlusion control bits
for polygon offset.

17 years agor300: Cleaned up the r300SetupVertexShader function.
Oliver McFadden [Wed, 20 Jun 2007 02:37:44 +0000 (02:37 +0000)]
r300: Cleaned up the r300SetupVertexShader function.

17 years agor300: Cleaned up the r300SetupPixelShader function.
Oliver McFadden [Wed, 20 Jun 2007 02:31:35 +0000 (02:31 +0000)]
r300: Cleaned up the r300SetupPixelShader function.