Brian Paul
0ff817f200
swrast: stop using Put/GetRow/Values() in swrast code
...
All color buffer rendering is now done by accessing mapped renderbuffer
memory. We're now able to get rid of all the GetRow/PutRow stuff.
2012-01-24 14:12:15 -07:00
Brian Paul
ff57b0f037
swrast: make _swrast_get_values(), _swrast_get_row() static
...
They were only called from in s_span.c
2012-01-24 14:12:07 -07:00
Brian Paul
267fb17884
swrast: remove dstType param from _swrast_read_rgba_span()
...
It was always GL_FLOAT.
2012-01-24 14:12:06 -07:00
Brian Paul
64be85540f
swrast: remove unused _swrast_put_row()
2012-01-24 14:12:05 -07:00
Brian Paul
8dffb6bdab
swrast: s/GLbitfield/GLbitfield64/ for sw_span::arrayAttribs
...
This is a bitfield of FRAG_BIT_x values so it should be 64-bits now.
2012-01-07 14:16:27 -07:00
Brian Paul
4d53fb525d
mesa: move last bits of GLchan stuff into swrast
...
This removes the last remnants of the GLchan datatype and associated
macros out of core Mesa and into swrast.
2011-09-20 20:17:42 -06:00
Vinson Lee
3e2ea145b1
swrast: Clean up header file inclusion in s_span.h.
2010-12-24 20:17:18 -08:00
Kristian Høgsberg
f9995b3075
Drop GLcontext typedef and use struct gl_context instead
2010-10-13 09:43:25 -04:00
Ian Romanick
dc14ce9e36
swrast: Remove SPAN_INDEX
...
Also adjust the bits that appear after it to fill in the gap.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com >
2010-03-03 12:37:04 -08:00
Ian Romanick
7ce12c9024
swrast: Remove _swrast_read_index_span
...
After all the recent color-index rendering removal,
_swrast_read_index_span is no longer used anywhere.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com >
2010-03-03 12:37:04 -08:00
Ian Romanick
c00282102a
swrast: Remove _swrast_write_index_span and associated code
...
After all the recent color-index rendering removal,
_swrast_write_index_span is no longer used anywhere.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com >
2010-03-03 12:37:04 -08:00
Brian Paul
6a3004b9ae
swrast: fix span clipping bug
...
If a horizontal span of pixels was located at x < 0 we could sometimes
read/write outside of renderbuffer bounds.
2009-05-07 09:43:15 -06:00
Brian Paul
bbd287103d
mesa: prefix a bunch of #include lines with "main/".
...
This is another step toward removing a whole bunch of -I flags from
the cc commands. Still need to address driver code...
2008-09-18 12:26:54 -06:00
Brian
f4b103dc99
simplify INIT_SPAN code
2007-06-29 21:52:18 -06:00
Brian
9e8a961dd7
Overhaul/simplify SWvertex and SWspan attribute handling.
...
Instead of separate fog/specular/texcoord/varying code, just treat all of
them as generic attributes. Simplifies the point/line/triangle functions.
2007-05-20 12:27:39 -06:00
Brian
38a1c2b495
Add _swrast_span_default_secondary_color() for use with glBitmap, glDrawPixels, etc.
...
Secondary color wasn't getting added to post-texture color when drawing
bitmaps, images. See bug 10409.
2007-03-26 11:30:05 -06:00
Brian
da55430952
comment about SPAN_* vs FRAG_BIT_* values
2007-03-13 10:58:23 -06:00
Brian
9ab512ad8c
Replace color, z, w, texture interpolants with new generic attrib interpolants.
2007-02-02 11:01:01 -07:00
Brian
462d8f5faf
New span attrStart/attrStepX/attrStepY fields to replace fog, specular, etc. fields. More to come.
2007-02-02 09:46:43 -07:00
Brian
4e7fd7ad96
get rid of unused span->start field
2007-02-02 09:09:13 -07:00
Brian
abeca8d17d
comments
2007-02-01 10:08:07 -07:00
Brian
f3e507ef9f
New SWspanarrays attribs[] array.
...
Replace texcoord[], varying[], etc. arrays with single attribs[] array, indexed
by FRAG_ATTRIB_* values.
Eliminates need to copy data into fragment program machine input registers.
Will lead to future clean-ups.
2007-02-01 09:51:48 -07:00
Brian
3866558c98
move span-related types/tokens into s_span.h
2007-02-01 08:24:02 -07:00
Brian Paul
76e778dce5
Lots of changes to support runtime renderbuffer depths.
...
_swrast_read_rgba_span() now takes a datatype parameter.
New optimization for glReadPixels(format=GL_RGB).
New glCopyPixels optimization for the simple, common cases.
2006-10-12 23:17:02 +00:00
Brian Paul
cdb27e8242
New SWspan and SWspanarrays typedefs.
2006-10-01 16:03:05 +00:00
Brian Paul
a50b7dbc3b
Initial work for supporting different renderbuffer color depths at runtime.
2006-09-25 23:57:39 +00:00
Brian Paul
f493a04be0
added _swrast_get_row()
2005-09-30 03:00:03 +00:00
Brian Paul
3fd819aef8
added _swrast_put_row()
2005-09-29 04:27:47 +00:00
Brian Paul
6707433272
Fix potential segfault when trying to read pixels outside renderbuffer bounds.
...
Use _swrast_get_values() which does clipping.
2005-09-16 21:15:27 +00:00
Brian Paul
e4b2356c07
Major check-in of changes for GL_EXT_framebuffer_object extension.
...
Main driver impacts:
- new code for creating the Mesa GLframebuffer
- new span/pixel read/write code
Some drivers not yet updated/tested.
2005-05-04 20:11:35 +00:00
Brian Paul
a803b0c891
Consolidate _swrast_write_texture_span() into _swrast_write_rgba_span().
2004-12-18 22:03:07 +00:00
Ian Romanick
9ac51f57ef
Removed all RCS / CVS tags (Id, Header, Date, etc.) from everything.
2003-06-05 00:50:18 +00:00
Brian Paul
45bc887da2
replace _mesa_ prefix with _swrast_, remove s_histogram.[ch]
2003-03-25 02:23:44 +00:00
Brian Paul
350353adcd
Fix up some fragment program texture enable issues.
...
Implemented TXD instruction.
2003-03-15 17:33:25 +00:00
Brian Paul
4753d60dd0
Added ctx parameter to _mesa_debug()
...
Added _mesa_printf()
Updated SetDrawBuffer() function in all drivers (ala 4.0.3)
Import 4.0.3/DRI changes.
2002-06-15 02:38:15 +00:00
Brian Paul
b7f5e92f17
Klaus Niederkrueger's latest changes: use INIT_SPAN() to init span primitive
...
type, width, interp mask and array mask.
2002-04-12 15:39:58 +00:00
Brian Paul
711e27fda2
Simplified fog code.
2002-02-17 17:30:57 +00:00
Brian Paul
7956292a76
More span improvements. Removed _mesa_write_monocolor_span().
...
Removed last of span.filled* flags and Klaus's macros.
More simplification of triangle functions.
2002-01-28 03:42:28 +00:00
Brian Paul
f1e2369878
More span clean-up, mostly texture-related.
...
_mesa_rasterize_span() is gone, replaced by new _mesa_write_textured_span().
Removed some unneeded triangle functions - more simplification possible.
2002-01-28 00:07:33 +00:00
Brian Paul
2a182a9897
LOTS of changes, building upon Klaus's work.
...
struct sw_span is used throughout span/fragment processing.
This is leading to less code and more chances for optimization.
2002-01-27 18:32:03 +00:00
Brian Paul
2ef866d1fc
Klaus's latest patches and some clean-up
2002-01-21 18:12:34 +00:00
Brian Paul
78940758e9
latest changes from Klaus
2002-01-16 16:00:03 +00:00
Brian Paul
9927f1978d
Klaus's latest patches: change texcoord[3] to texcoord[4] everywhere
2002-01-10 16:54:28 +00:00
Brian Paul
10f30eb438
first checkpoint commit of Klaus's new span code (struct sw_span)
2001-12-17 04:54:35 +00:00
Brian Paul
71340e861e
More span rendering optimizations from Klaus Niederkrueger
2001-11-19 01:18:28 +00:00
Brian Paul
5071b0812f
Apply antialiasing coverage factor to alpha after texture application,
...
not before.
2001-05-15 21:30:26 +00:00
Brian Paul
1b3528fe63
interpolate fog valus as floats, not fixed - fixed the swrast fog problem
2001-05-03 22:13:32 +00:00
Gareth Hughes
22144ab755
Consistent copyright info (version number, date) across all files.
2001-03-12 00:48:37 +00:00
Brian Paul
0883634178
lots of gl_*() to _mesa_*() namespace clean-up
2001-03-03 20:33:27 +00:00
Jouk Jansen
5e3bc0c2a2
Committing in .
...
Modified Files:
Mesa/macos/gli_api/gliapi1.h Mesa/macos/gli_api/gliapi2.h
Mesa/macos/gli_api/gliapiext.h Mesa/macos/src-gli/fxgli.c
Mesa/macos/src-gli/fxgli.h Mesa/macos/src-gli/fxgli2.c
Mesa/macos/src-gli/fxgli_tridebug.c Mesa/src/accum.c
Mesa/src/accum.h Mesa/src/all.h Mesa/src/alpha.c
Mesa/src/alpha.h Mesa/src/attrib.c Mesa/src/attrib.h
Mesa/src/bitmap.c Mesa/src/bitmap.h Mesa/src/blend.c
Mesa/src/blend.h Mesa/src/buffers.c Mesa/src/buffers.h
Mesa/src/clip.c Mesa/src/clip.h Mesa/src/colortab.h
Mesa/src/config.c Mesa/src/context.c Mesa/src/context.h
Mesa/src/convolve.c Mesa/src/convolve.h Mesa/src/copypix.c
Mesa/src/copypix.h Mesa/src/debug.c Mesa/src/depth.c
Mesa/src/depth.h Mesa/src/dlist.c Mesa/src/dlist.h
Mesa/src/drawpix.c Mesa/src/drawpix.h Mesa/src/enable.c
Mesa/src/enable.h Mesa/src/eval.c Mesa/src/eval.h
Mesa/src/extensions.c Mesa/src/extensions.h
Mesa/src/feedback.c Mesa/src/feedback.h Mesa/src/fog.c
Mesa/src/fog.h Mesa/src/get.c Mesa/src/get.h Mesa/src/glapi.c
Mesa/src/glthread.h Mesa/src/highpc.c Mesa/src/hint.h
Mesa/src/histogram.h Mesa/src/image.c Mesa/src/image.h
Mesa/src/imports.c Mesa/src/light.c Mesa/src/light.h
Mesa/src/lines.c Mesa/src/lines.h Mesa/src/logic.c
Mesa/src/logic.h Mesa/src/masking.c Mesa/src/masking.h
Mesa/src/matrix.c Mesa/src/matrix.h Mesa/src/pixel.c
Mesa/src/pixel.h Mesa/src/points.c Mesa/src/points.h
Mesa/src/polygon.c Mesa/src/polygon.h Mesa/src/rastpos.c
Mesa/src/readpix.c Mesa/src/scissor.c Mesa/src/scissor.h
Mesa/src/state.c Mesa/src/state.h Mesa/src/stencil.c
Mesa/src/stencil.h Mesa/src/teximage.c Mesa/src/teximage.h
Mesa/src/texobj.c Mesa/src/texobj.h Mesa/src/texstate.c
Mesa/src/texstate.h Mesa/src/texture.c Mesa/src/texture.h
Mesa/src/texutil.c Mesa/src/texutil.h Mesa/src/varray.c
Mesa/src/varray.h Mesa/src/X/fakeglx.c Mesa/src/X/xm_api.c
Mesa/src/X/xm_dd.c Mesa/src/X/xm_line.c Mesa/src/X/xm_span.c
Mesa/src/X/xm_tri.c Mesa/src/swrast/s_aaline.c
Mesa/src/swrast/s_aaline.h Mesa/src/swrast/s_aatriangle.h
Mesa/src/swrast/s_accum.h Mesa/src/swrast/s_alpha.h
Mesa/src/swrast/s_alphabuf.h Mesa/src/swrast/s_blend.h
Mesa/src/swrast/s_context.c Mesa/src/swrast/s_context.h
Mesa/src/swrast/s_depth.h Mesa/src/swrast/s_drawpix.h
Mesa/src/swrast/s_feedback.h Mesa/src/swrast/s_fog.h
Mesa/src/swrast/s_histogram.h Mesa/src/swrast/s_lines.h
Mesa/src/swrast/s_logic.h Mesa/src/swrast/s_masking.h
Mesa/src/swrast/s_pb.h Mesa/src/swrast/s_pixeltex.h
Mesa/src/swrast/s_points.h Mesa/src/swrast/s_quads.c
Mesa/src/swrast/s_quads.h Mesa/src/swrast/s_scissor.h
Mesa/src/swrast/s_span.h Mesa/src/swrast/s_stencil.h
Mesa/src/swrast/s_texture.h Mesa/src/swrast/s_triangle.h
Mesa/src/swrast/s_zoom.h Mesa/src/swrast/swrast.h
Mesa/src/swrast_setup/ss_context.h
Mesa/src/swrast_setup/ss_triangle.c
Mesa/src/swrast_setup/ss_triangle.h
Mesa/src/swrast_setup/ss_vb.h Mesa/src/tnl/t_clip.c
Mesa/src/tnl/t_clip.h Mesa/src/tnl/t_context.c
Mesa/src/tnl/t_context.h Mesa/src/tnl/t_cva.c
Mesa/src/tnl/t_cva.h Mesa/src/tnl/t_debug.c
Mesa/src/tnl/t_debug.h Mesa/src/tnl/t_dlist.h
Mesa/src/tnl/t_eval.c Mesa/src/tnl/t_eval.h
Mesa/src/tnl/t_fog.c Mesa/src/tnl/t_fog.h
Mesa/src/tnl/t_light.c Mesa/src/tnl/t_light.h
Mesa/src/tnl/t_pipeline.c Mesa/src/tnl/t_pipeline.h
Mesa/src/tnl/t_shade.c Mesa/src/tnl/t_shade.h
Mesa/src/tnl/t_stages.c Mesa/src/tnl/t_stages.h
Mesa/src/tnl/t_texture.c Mesa/src/tnl/t_texture.h
Mesa/src/tnl/t_trans_elt.c Mesa/src/tnl/t_trans_elt.h
Mesa/src/tnl/t_varray.c Mesa/src/tnl/t_varray.h
Mesa/src/tnl/t_vb.c Mesa/src/tnl/t_vb.h
Mesa/src/tnl/t_vbcull.c Mesa/src/tnl/t_vbcull.h
Mesa/src/tnl/t_vbfill.c Mesa/src/tnl/t_vbfill.h
Mesa/src/tnl/t_vbindirect.c Mesa/src/tnl/t_vbindirect.h
Mesa/src/tnl/t_vbrender.c Mesa/src/tnl/t_vbrender.h
Mesa/src/tnl/t_vbxform.c Mesa/src/tnl/t_vbxform.h
Mesa/src/tnl/tnl.h
Added Files:
Mesa/src/mtypes.h
Removed Files:
Mesa/src/types.h
Changed Mesa/src/types to Mesa/src/mtypes.h to avoid conflicts while
compiling on a VMS system.
----------------------------------------------------------------------
2000-11-22 07:32:16 +00:00