summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_copypix.c
Commit message (Collapse)AuthorAgeFilesLines
* swrast: define, use SWRAST_MAX_WIDTH/HEIGHTBrian Paul2012-02-241-1/+1
| | | | We'll get rid of MAX_WIDTH, MAX_HEIGHT soon.
* swrast: remove MAX_WIDTH arrays in s_copypix.cBrian Paul2012-02-241-5/+20
|
* swrast: use swrast_renderbuffer instead of gl_renderbufferBrian Paul2012-01-241-3/+7
|
* swrast: stop using Put/GetRow/Values() in swrast codeBrian Paul2012-01-241-0/+47
| | | | | 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.
* swrast: remove dstType param from _swrast_read_rgba_span()Brian Paul2012-01-241-2/+2
| | | | It was always GL_FLOAT.
* swrast: Fix use of uninitialized value in rbmapping changes.Eric Anholt2012-01-061-1/+1
| | | | | | | | | I'm so surprised that gcc didn't catch this that I feel like I must be misreading. srcMap is what we initialize (along with dstMap) from this map value right after this check. Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* swrast: Use the fast copypixels code to implement fast glBlitFramebuffer().Eric Anholt2012-01-061-6/+7
| | | | | | | | They were meaning to do the same thing of memcpying rows, so just write the code once. Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* swrast: Move the check for fast_copy_pixels() ability to caller.Eric Anholt2012-01-061-9/+5
| | | | | | | | I'm going to reuse this function from glBlitFramebuffer() handling, which wants to do the same thing. Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* swrast: remove the copy_depth_stencil_pixels() functionBrian Paul2011-12-241-178/+3
| | | | | | | | | Hopefully glCopyPixels(GL_DEPTH_STENCIL) will be handled by the fast copy function. Otherwise, just do the copy with separate depth + stencil copies. That's effectively what the removed code did anyway. Reviewed-by: Eric Anholt <[email protected]>
* swrast: stop using depth/stencil wrappers in CopyPixels codeBrian Paul2011-12-241-8/+21
| | | | | | | | | | | The functions that read depth/stencil values understand all (packed) depth/stencil buffer formats now so there's no reason to use the wrappers. Also, improve the format checks in fast_copy_pixels() to catch mismatched depth/stencil cases. v2: fix the test for combined depth+stencil buffers, per Eric.
* swrast: do fast_copy_pixels() with Map/UnmapRenderbuffer()Brian Paul2011-12-241-43/+89
| | | | | | v2: use memmove() instead of memcpy() in case of overlap Reviewed-by: Eric Anholt <[email protected]>
* swrast: use malloc instead of MAX_WIDTH arrays in glCopyPixels, zoom codeBrian Paul2011-12-081-1/+9
| | | | | Reviewed-by: Jose Fonseca <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* mesa: replace GLstencil with GLubyteBrian Paul2011-11-151-8/+8
|
* mesa: split up the image.c fileBrian Paul2010-10-231-1/+1
| | | | | | New files: pack.c - image/row packing/unpacking functions pixeltransfer.c - pixel scale/bias/lookup functions
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-7/+7
|
* mesa: Remove EXT_convolution.Eric Anholt2010-09-231-103/+0
| | | | More optional code.
* mesa: Remove EXT_histogram.Eric Anholt2010-09-231-22/+18
| | | | This has always been optional, and not useful.
* swrast: Remove support for CopyPixels to / from a color-index bufferIan Romanick2010-03-031-112/+5
| | | | Signed-off-by: Ian Romanick <[email protected]>
* Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg2010-02-191-18/+18
|
* Remove _mesa_memcpy in favor of plain memcpy.Kenneth Graunke2010-02-191-7/+7
| | | | This may break the SUNOS4 build, but it's no longer relevant.
* Merge branch 'mesa_7_7_branch'Jakob Bornecrantz2010-01-141-2/+0
|\ | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c src/gallium/auxiliary/util/Makefile src/gallium/drivers/r300/r300_state_derived.c
| * swrast: Remove unnecessary headers from s_copypix.c.Vinson Lee2010-01-131-2/+0
| |
* | swrast: add check for conditional renderingBrian Paul2009-12-311-0/+4
|/
* 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
|