mesa.git
16 years agoMerge branch 'i915tex_privbuffers' into softpipe_0_1_branch
Keith Whitwell [Tue, 17 Jul 2007 10:06:02 +0000 (11:06 +0100)]
Merge branch 'i915tex_privbuffers' into softpipe_0_1_branch

16 years agoFix for-loop in interp() so we don't go out of bounds.
Brian [Fri, 13 Jul 2007 18:28:42 +0000 (12:28 -0600)]
Fix for-loop in interp() so we don't go out of bounds.

Improved comments for that loop.
Added some sanity check assertions regarding vertex layout.

16 years agoset INTERP_CONSTANT when appropriate
Brian [Fri, 13 Jul 2007 18:26:09 +0000 (12:26 -0600)]
set INTERP_CONSTANT when appropriate

Not really signficant now since draw_flat stage copies the provoking
vertex color to all prim verts.

16 years agocomments
Brian [Fri, 13 Jul 2007 18:23:34 +0000 (12:23 -0600)]
comments

16 years agoEnable Keith's branch-less stipple code - it works.
Brian [Fri, 13 Jul 2007 17:16:13 +0000 (11:16 -0600)]
Enable Keith's branch-less stipple code - it works.

16 years agoAdd 'prim' field to quad so that stipple and aa coverage stages can do the right...
Brian [Fri, 13 Jul 2007 17:15:10 +0000 (11:15 -0600)]
Add 'prim' field to quad so that stipple and aa coverage stages can do the right thing.

16 years agoImplement AA points and AA coverage application in quad pipeline.
Brian [Fri, 13 Jul 2007 16:33:48 +0000 (10:33 -0600)]
Implement AA points and AA coverage application in quad pipeline.

16 years agopress 's' to toggle smoothing
Brian [Fri, 13 Jul 2007 16:32:56 +0000 (10:32 -0600)]
press 's' to toggle smoothing

16 years agoAdded basic occlusion counting
Brian [Fri, 13 Jul 2007 15:25:57 +0000 (09:25 -0600)]
Added basic occlusion counting

16 years agominor rename
Brian [Fri, 13 Jul 2007 15:23:41 +0000 (09:23 -0600)]
minor rename

16 years agoAdd conditional-free implementation (disabled, not tested)
Keith Whitwell [Fri, 13 Jul 2007 10:28:42 +0000 (11:28 +0100)]
Add conditional-free implementation (disabled, not tested)

16 years agoSimplify slightly.
Keith Whitwell [Fri, 13 Jul 2007 10:27:57 +0000 (11:27 +0100)]
Simplify slightly.

Don't bother trying to save a small memcpy.

16 years agominor changes, comments about multiple color buffers, MRT.
Brian [Thu, 12 Jul 2007 22:17:14 +0000 (16:17 -0600)]
minor changes, comments about multiple color buffers, MRT.

16 years agoAdd a quad 'bufloop' stage to handle glDrawBuffer(GL_FRONT_AND_BACK).
Brian [Thu, 12 Jul 2007 20:13:48 +0000 (14:13 -0600)]
Add a quad 'bufloop' stage to handle glDrawBuffer(GL_FRONT_AND_BACK).

This removes the notion of multiple color buffers from all other stages.
Will need a bit more work when shaders with multiple render targets arrive.

16 years agoXXX comment about skipping stipple for points/lines
Brian [Thu, 12 Jul 2007 19:44:43 +0000 (13:44 -0600)]
XXX comment about skipping stipple for points/lines

16 years agos/prim_setup/sp_draw_render_stage/, new comments
Brian [Thu, 12 Jul 2007 19:43:33 +0000 (13:43 -0600)]
s/prim_setup/sp_draw_render_stage/, new comments

16 years agoRemove dead code
Brian [Thu, 12 Jul 2007 19:33:33 +0000 (13:33 -0600)]
Remove dead code

16 years agoRename prim_stage -> draw_stage
Brian [Thu, 12 Jul 2007 19:32:31 +0000 (13:32 -0600)]
Rename prim_stage -> draw_stage

16 years agoAdded colormask, dither, multisample state. Implement colormasking stage.
Brian [Thu, 12 Jul 2007 18:20:14 +0000 (12:20 -0600)]
Added colormask, dither, multisample state.  Implement colormasking stage.

16 years agofront/back-face determination was wrong
Brian [Thu, 12 Jul 2007 17:59:43 +0000 (11:59 -0600)]
front/back-face determination was wrong

16 years agoculling was inverted
Brian [Thu, 12 Jul 2007 17:59:15 +0000 (11:59 -0600)]
culling was inverted

16 years agohandle edge flags for GL_POLYGONs
Brian [Thu, 12 Jul 2007 17:50:52 +0000 (11:50 -0600)]
handle edge flags for GL_POLYGONs

16 years agofix MIN/MAX mix-up
Brian [Thu, 12 Jul 2007 16:43:33 +0000 (10:43 -0600)]
fix MIN/MAX mix-up

16 years agoremove unused hw_data_offset
Brian [Wed, 11 Jul 2007 22:17:23 +0000 (16:17 -0600)]
remove unused hw_data_offset

16 years agodisable debug printfs
Brian [Wed, 11 Jul 2007 19:13:00 +0000 (13:13 -0600)]
disable debug printfs

16 years agoremove glDepthFunc(GL_LEQUAL) change from prev commit
Brian [Wed, 11 Jul 2007 19:12:33 +0000 (13:12 -0600)]
remove glDepthFunc(GL_LEQUAL) change from prev commit

16 years agoFix broken depth offset.
Brian [Wed, 11 Jul 2007 19:02:03 +0000 (13:02 -0600)]
Fix broken depth offset.

The edge vectors were totally wrong.
Need to multiply bias units by the min resolvable depth delta.

16 years agoObsolete file.
Brian [Wed, 11 Jul 2007 17:36:22 +0000 (11:36 -0600)]
Obsolete file.

16 years agoImplement polygon stipple state tracking, application.
Brian [Wed, 11 Jul 2007 17:34:19 +0000 (11:34 -0600)]
Implement polygon stipple state tracking, application.

16 years agoFix screen corruption on resize.
Keith Whitwell [Wed, 11 Jul 2007 16:01:30 +0000 (17:01 +0100)]
Fix screen corruption on resize.

Move buffer resize check to immediately after swapbuffers.

Update cliprects inside the locked region of swapbuffers.

16 years agoneed to clamp floats to [0,1] in write functions
Brian [Wed, 11 Jul 2007 15:56:46 +0000 (09:56 -0600)]
need to clamp floats to [0,1] in write functions

16 years agofix stencil logic error, use proper front/back face value
Brian [Wed, 11 Jul 2007 15:52:32 +0000 (09:52 -0600)]
fix stencil logic error, use proper front/back face value

16 years agoCompute quad.facing from prim->det and polygon winding.
Brian [Wed, 11 Jul 2007 15:52:00 +0000 (09:52 -0600)]
Compute quad.facing from prim->det and polygon winding.

Updated comments/questions about area vs. prim->det.

16 years agoremove bogus assertion, change drawable updates
Roland Scheidegger [Wed, 11 Jul 2007 15:30:01 +0000 (17:30 +0200)]
remove bogus assertion, change drawable updates

don't update driDrawable information until later at all
(blit needs fixing).

16 years agodrop some more code no longer needed
Roland Scheidegger [Wed, 11 Jul 2007 14:08:14 +0000 (16:08 +0200)]
drop some more code no longer needed

16 years agosome fixes, fake frontbuffer
Roland Scheidegger [Wed, 11 Jul 2007 12:20:39 +0000 (14:20 +0200)]
some fixes, fake frontbuffer

still doesn't work quite right (resize).
Fake frontbuffer doesn't copy in real frontbuffer.
Don't even think about doing rotation/page flip/triple buffering for now...
More cleanups needed (fake cliprects etc.)

16 years agoCheckpoint: stencil roughly working, some bugs to fix...
Brian [Wed, 11 Jul 2007 00:59:17 +0000 (18:59 -0600)]
Checkpoint: stencil roughly working, some bugs to fix...

16 years agoBegin hooking up stenciling.
Brian [Tue, 10 Jul 2007 22:37:18 +0000 (16:37 -0600)]
Begin hooking up stenciling.

16 years agoclean-ups
Brian [Tue, 10 Jul 2007 22:37:03 +0000 (16:37 -0600)]
clean-ups

16 years agoFill in remaining switch cases. Only call next stage if quad->mask != 0.
Brian [Tue, 10 Jul 2007 22:25:43 +0000 (16:25 -0600)]
Fill in remaining switch cases.  Only call next stage if quad->mask != 0.

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

16 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.

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

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

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

16 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...

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

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

16 years agocopybuffer/cliprect fixups
Roland Scheidegger [Tue, 10 Jul 2007 17:56:44 +0000 (19:56 +0200)]
copybuffer/cliprect fixups

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

16 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.

16 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

16 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

16 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

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

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

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

16 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.

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

16 years agoFirst attempt at using private back/z buffers.
Roland Scheidegger [Tue, 10 Jul 2007 16:07:38 +0000 (18:07 +0200)]
First attempt at using private back/z buffers.

Allocate and use private back and z/stencil buffers.
This is still very broken.

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

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

16 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_*

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

16 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).

16 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).

16 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.

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

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

16 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

16 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.

16 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

16 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.

16 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

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

16 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

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

16 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

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

16 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

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

16 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.

16 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.

16 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

16 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

16 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].

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

16 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

16 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)

16 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

16 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

16 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)

16 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...

16 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.

16 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.

16 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

16 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

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

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

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