aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_copypix.c
Commit message (Collapse)AuthorAgeFilesLines
* swrast: replace RENDER_START/FINISH macros with inline functionsBrian Paul2009-01-301-2/+2
|
* mesa: prefix a bunch of #include lines with "main/".Brian Paul2008-09-181-9/+9
| | | | | This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
* Simplify ctx->_NumColorDrawBuffers, _ColorDrawBuffers and fix bug 13835.Brian2008-01-061-2/+2
| | | | | | | | | | | These fields are no longer indexed by shader output. Now, we just have a simple array of renderbuffer pointers. If the shader writes to gl_FragData[i], send those colors to the N _ColorDrawBuffers. Otherwise, replicate the single gl_FragColor (or the fixed-function color) to the N _ColorDrawBuffers. A few more changes and simplifications can follow from this...
* fix copypixels overlap test bug (#12417)Brian2007-09-141-2/+9
|
* simplify INIT_SPAN codeBrian2007-06-291-4/+9
|
* Undo some prev glDraw/CopyPixel changes which fixed a bug in which colors ↵Brian2007-06-291-12/+5
| | | | | | | 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().
* Another round of fixing attribute interpolation for glDraw/CopyPixels.Brian2007-06-211-3/+11
| | | | | | | | | | Need to turn off FRAG_BIT_COL0 in swrast->_ActiveAttribMask when doing glRead/CopyPixels to prevent the user's colors from getting overwritten when a fragment program is active. This was happening in the DRI drivers when MaintainTexEnv program was used (the texenv fragment program was enabled when _swrast_DrawPixels was called). This still isn't an ideal solution, but fixes things for now.
* Overhaul/simplify SWvertex and SWspan attribute handling.Brian2007-05-201-25/+4
| | | | | Instead of separate fog/specular/texcoord/varying code, just treat all of them as generic attributes. Simplifies the point/line/triangle functions.
* Fix color sum bug 10688.Brian2007-04-211-6/+3
|
* as with prev commit, also fix color index mode zoomed depth copies (bug 10608)Brian2007-04-111-1/+1
|
* fix zoomed depth copies (bug 10608)Brian2007-04-111-2/+1
|
* fix color storage bug in convolution pathBrian2007-04-051-1/+1
|
* Overlapping copies with zoomZ=-1 were broken. See bug 10521.Brian2007-04-041-47/+47
| | | | | Need to check for overlapping src/dest regions before computing bottom-to-top vs. top-to-bottom order.
* Add _swrast_span_default_secondary_color() for use with glBitmap, ↵Brian2007-03-261-1/+6
| | | | | | | glDrawPixels, etc. Secondary color wasn't getting added to post-texture color when drawing bitmaps, images. See bug 10409.
* merge from masterBrian2007-03-211-1/+6
|\
| * 1D convolution (and post-conv scale/bias) were inadvertantly applied to 2D ↵Brian2007-03-211-1/+6
| | | | | | | | image transfers.
* | Merge branch 'origin' into glsl-compiler-1Brian2007-02-221-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/main/state.c src/mesa/shader/program.c src/mesa/shader/program.h src/mesa/shader/programopt.c src/mesa/shader/slang/slang_execute.c src/mesa/sources src/mesa/swrast/s_arbshader.c src/mesa/swrast/s_context.c src/mesa/swrast/s_span.c src/mesa/swrast/s_zoom.c src/mesa/tnl/t_context.c src/mesa/tnl/t_save_api.c src/mesa/tnl/t_vb_arbprogram.c src/mesa/tnl/t_vp_build.c src/mesa/tnl/t_vtx_eval.c
| * fixes for C++ warnings/errorsBrian2007-01-231-2/+2
| |
* | New SWspanarrays attribs[] array.Brian2007-02-011-1/+1
|/ | | | | | | 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.
* silence used var warningsBrian Paul2006-10-221-1/+2
|
* cut and paste error: s/Width/Height/Brian Paul2006-10-141-1/+1
|
* Consolidate, move, fix code related to color index and stencil image transferBrian Paul2006-10-131-25/+5
| | | | operations (shift, offset, table lookup, etc).
* s/GLuint/GLbitfield/Brian Paul2006-10-131-1/+1
|
* Lots of changes to support runtime renderbuffer depths.Brian Paul2006-10-121-138/+148
| | | | | | _swrast_read_rgba_span() now takes a datatype parameter. New optimization for glReadPixels(format=GL_RGB). New glCopyPixels optimization for the simple, common cases.
* use GLvoid * for _swrast_write_zoomed_rgb/rgba_span() functionsBrian Paul2006-10-111-4/+4
|
* New SWspan and SWspanarrays typedefs.Brian Paul2006-10-011-4/+4
|
* Check for overflow when converting floating pt Z values to 32-bit GLuint.Brian Paul2006-05-061-8/+39
|
* Removed the GL_SGIX/SGIS_pixel_texture extensions. Same thing can beBrian Paul2005-12-141-12/+0
| | | | done with fragment programs nowadays.
* s/MEMCPY/_mesa_memcpy/ and fix typoBrian Paul2005-11-171-5/+5
|
* Use new gl_framebuffer _Depth/_StencilBuffer fields instead ofBrian Paul2005-11-161-5/+5
| | | | | Attachment[BUFFER_DEPTH/STENCIL].Renderbuffer. The former may be wrappers around combined depth/stencil renderbuffers attached at the later points.
* check swrast->_FogEnabled instead of ctx->Fog.EnabledBrian Paul2005-10-311-4/+8
|
* implement CopyPixels for GL_DEPTH_STENCIL_EXTBrian Paul2005-09-291-15/+189
|
* Rewrite much of the pixel zoom code.Brian Paul2005-09-291-24/+20
| | | | Zoomed DrawPixels of packed depth/stencil works now.
* Initial work for GL_EXT_packed_depth_stencil extension.Brian Paul2005-09-281-0/+13
| | | | glReadPixels done, glDrawPixels mostly done.
* Lift all the format/type error checking out of the _swrast_Draw/Read/CopyPixelsBrian Paul2005-09-271-25/+20
| | | | functions into the _mesa_Draw/Read/CopyPixels functions.
* When testing visual attributes, use the Draw/Read buffer, not the context.Brian Paul2005-09-221-8/+8
|
* replace GLdepth with GLuint and remove GLdepthBrian Paul2005-09-211-3/+1
|
* Update includes post-splitting of s_texture.cBrian Paul2005-09-151-1/+0
|
* don't use DEFARRAY/CHECKARRAY stuffBrian Paul2005-09-061-5/+1
|
* Remove last remnants of pre-renderbuffer code.Brian Paul2005-09-031-51/+1
|
* Remove last of the old span code.Brian Paul2005-06-021-19/+3
|
* Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul2005-05-041-19/+63
| | | | | | | Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
* fix convolution regression from revision 1.48 to 1.49Brian Paul2004-11-011-3/+2
|
* added support for GL_ARB_draw_buffersBrian Paul2004-10-021-3/+3
|
* Remove clamp parameter from _mesa_unpack_color_span_float(). Pass theBrian Paul2004-02-281-44/+51
| | | | | | IMAGE_CLAMP_BIT if needed. Added ClampVertexColors and ClampFragmentColors to GLcontext in anticipation of upcoming extensions (not fully used yet).
* consolidate image transfer operations in new _mesa_apply_rgba_transfer_ops() ↵Brian Paul2004-02-281-93/+12
| | | | function
* move _swrast_texture_table_lookup() to _mesa_lookup_rgba_chan()Brian Paul2004-02-281-6/+6
|
* Fix a front/back CopyPixels glitch.Brian Paul2003-12-051-8/+28
|
* Added ctx->Texture._EnabledCoordUnits bitfield.Brian Paul2003-04-081-2/+0
| | | | | | Fixed some vertex array / vertex program glitches with glDrawElements. Fixed some fragment program runtime bugs. Non-trivial Cg programs are running now.
* replace _mesa_ prefix with _swrast_, remove s_histogram.[ch]Brian Paul2003-03-251-32/+32
|